Microsoft Development

48K

Solutions

32K

Contributors

Most development for the Microsoft platform is done utilizing the technologies supported by the.NET framework. Other development is done using Visual Basic for Applications (VBA) for programs like Access, Excel, Word and Outlook, with PowerShell for scripting, or with SQL for large databases.

Share tech news, updates, or what's on your mind.

Sign up to Post

I'm able to pass the query parameter successfully to the field however when the item is saved the record is not being saved to the list. What's interesting is that if I manually override the passed value by typing into the field on the form and then clicking save, the record is saved to the list .

We have a working example of this on the same site for a different list that we created about a year ago and does not have this issue.


Original Code Provided when a new form was created for the list in SPD:
<SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="New" FieldName="AttachmentsID" __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@AttachmentsID')}"/>
<SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="AttachmentsID" ControlMode="New"/>


Removed the above code and replaced with the following:                                                            
<asp:TextBox runat="server" id="ff1{$Pos}" Name="FileName" Text="{$AttachmentsID}" Value="{@AttachmentsID}" __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@AttachmentsID')}" Width="100px" Height="20px" BorderWidth="0" />
0
Introducing Cloud Class® training courses
LVL 12
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

C#.NET:  Need to write to a PDF which I password protect after I write to it.

I'll be creating a WinForms application in C#.NET and need a PDF library to read and write to a PDF and to be able to lock that file after I write to it.

Suggestions?

I prefer free, if possible.

Thanks
0
Making a cross platform Forms App for Windows, Mac, iPhone, Android

I just installed .NET CORE for Mac and selected Project > New Solution but was surprised to not find an option for Windows. iOS is iPhone and Mac, true?

Anyway, do I build the entire app once for these four platforms? Or do I build common objects and need to create custom UI's for the mobile side with Xamarin?

Thanks
0
How to read contents of a PDF file using .NET CORE?

I am new to .NET CORE but need to find if I need a library, or what I might need, in order to read the contents of a PDF report and turn it into parseable data.

I am okay exporting it to a text file, reading it into memory, or any other option.

Thanks.
0
Baby steps into .NET Core

I'm a CE.NET developer who has worked on the full .NET stack, including MVC. I used to program Windows applications using Win Forms.

What do you suggest as my first baby steps into .NET Core?

My intention is to create a cross-platform application for Windows, Mac and UNIX, but I prefer coding in Mac, if possible.

I do have Visual Studio Code on my MacBook, but I also have a Windows partition.

What options to I have for development platform?

What steps do I need to take before I can write my first Hello World application?

Tanks.
0
I have just started to deploy and learn Microsoft Power Bi. I installed the BI gateway and able to get it connected in the portal.  My question is, how to i make a BI workspace that calls to that data?  DO i need the BI desktop app or can i not create that from the portal?
0
What are the big benefits of .NET CORE?

And how do they differentiate from .NET Framework?
0
I have an MDI Form and a Login Form in VB.NET. When the user enters the data correctly, I present the mdi form that is the main one. When the user closes the MDI Form I want to present the Login Form again. So I want to know what to do to be able to present the same instance of the Login Form. I have tried several methods and none of them work for me.

Login_Form calls MDI_Form, when closing MDI_Form, present Login_Form again.

Please give me examples and what would be the best solution.

Regards...
0
Please high level what microservices can do?

And from a C# perspective, what is the best way to create them?

.NET CORE?

etc...
0
Hi,

Anyone can advice how to modify below script to find few hundred nested groups?

Tks.

Lucky  

Function Test-ADGroupMemberInfra  {
                Param ($User)

                Trap {Return "error"}
                $output= $User
                $output+= " * "
               
If (Get-ADUser -Filter "memberOf -RecursiveMatch '$((Get-ADGroup "CorpSvcs_IOE_Infra&VA").DistinguishedName)'" -SearchBase $((Get-ADUser $User).DistinguishedName)) {$output+= "True "} Else {$output+= "False "}

                $output
}


Test-ADGroupMemberInfra -User "jimmy05" >> d:\grp1.txt
0
Get your problem seen by more experts
LVL 12
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Hi, there is 'using System;' in the beginning of the file.

However  Console. WriteLine doesn't compile and requires System.Console.WriteLine.
Why? How can it be fixed?

Thanks.
0
SSRS Report Builder - Export to CSV issue; Double Quotes exist for each record.

We have a report that is scheduled to produce a CSV file.
This file is consumed by another application and requires specific formatting in order to successfully process the file.
The following entry has been configured within the 'rsreportserver.config' file:

<Extension Name="CSV (No Header)" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
                        <OverrideNames>
                              <Name Language="en-AU"> CSV No Header</Name>
                        </OverrideNames>
                        <Configuration>
                              <DeviceInfo>
                                    <NoHeader>true</NoHeader>
                                    <Extension>CSV</Extension>
                                    <Encoding>UTF-8</Encoding>
                                    <Qualifier></Qualifier>
                              </DeviceInfo>
                        </Configuration>
                  </Extension>

The file that is being generated from this contains double quotes at the start and end of each record (see below).
"""FORMAT BATCH IMPORT, STANDARD 1.0"""
"DREF1,DDATE1,DSOURCE,DCLRENTITY,DENTITYPE,LLDGCODE,LACCNBR,LAMOUNT1,LNARR1,LNARR2,LNARR3,LPRESCSTAT,LGSTTYPE,LGSTRATECODE,BIMPNAME,BCLRENTITY"
"180603,06/06/2018,AB,123,A,AB,123456789,-1234.56,Team Journal,21/05/2018 to 03/06/2018,12345,N,I,NA,TEAMJNL,123"

The output we need is shown below:
"""FORMAT BATCH IMPORT, STANDARD 1.0"""
DREF1,DDATE1,DSOURCE,DCLRENTITY,DENTITYPE,LLDGCODE,LACCNBR,LAMOUNT1,LNARR1,LNARR2,LNARR3,LPRESCSTAT,LGSTTYPE,LGSTRATECODE,BIMPNAME,BCLRENTITY
0
Hello. I need to create Offline Media to install OS and apps on some same notebooks. I need to enable Bitlocker. I have read it possible enable BitLocker in Task sequence in MDT tool. But my question is: where is kept the recovery key of Bitlocker if notebook isn’t connected to domain and all process of deployment is done from usb?
 Do you have any suggestions or best practices in this matter.
Thx in advance
0
Dear Experts,

I have an asp.net website that uses identity 2.1 (I'm pretty sure > 2.0 anyways as near as I can tell). It is written in visual basic. I ran into a weird issue the other day where people were logging in and getting this viewstate error:

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

So I followed the advice I found in the microsoft article and added a machine key to the web.config file so that no matter what it (hopefully) shouldn't get that error again.

Once the machine key was changed to one that I set now we had issues with anyone with an already existant authorization cookie on their computer, they were unable to login. I believe it's because the machine key that I set no longer matched the one that was used in their cookie. I'm not entirely clear how, but apparently it's part of how it's encrypted. If they clear their cookies, all is well - then they could login.

So one bit of advice I found searching on the web sounded super simple and super-easy. They recommended that you have some sort of set key in your web.config, like a guid or something and then you add it to your cookie also. Then, when you load the cookie, you can check the key and if it doesn't match your server key, somehow you invalidate the cookie.

I basically spent all day trying to figure out …
0
Hi everybody,

I have a question about in-class initialization and thread-safety. I searched a lot in the net about this but wasn't able to figure it out.

I (accidentally) found a IMO nice way to implement somehting like an instance counter using in-class initialization like this:
// sample 1 using a static class member
struct Test1
{
	static int current;
	int num{ current++ };
};

int Test1::current{ 0 };

// sample 2 using singleton desing pattern
struct Test2
{
	static int& current()
	{
		static int curr{ 0 };
		return curr;
	}

	int num{ current()++ };
};

Open in new window

Both methods work fine:
void foo()
{
	for ( int n = 0; n < 5; n++ )
	{
		std::cout << "T1: " << Test1{}.num << " T2: " << Test2{}.num << std::endl;
	}
}

// output is as expected:
// T1: 0 T2: 0
// T1: 1 T2: 1
// T1: 2 T2: 2
// T1: 3 T2: 3
// T1: 4 T2: 4

Open in new window

Now I'm curious if this is thread safe. I know the instantiation of current itself is thread-safe, but I'm not sure what's about the ++ operator call: especially in the second example I would guess the ++ called for the returned reference is not thread safe, but on the other side I think compilers do a lot of complicated things to make statics thread safe, so probably my suspection is wrong.

JFI: I'm not sure since which C++ standard this can be used, I use C++17 (VS 2017), but maybe it works with older versions too.

Does anyone of you know better?

Best regards,

ZOPPO
0
background: had vs2010, 2013, and 2017 community.   Just uninstalled 2010 and 2013 because of issues.  

I have a project with a component that we wrote, in vs2010 & .net 4.0.  I've created a new solution, imported the old projects within the solution.   It now have .net 4.7.1 since 4.0 is not available in the list anymore (and not downloadable apparently).   This component was using the Extensibility Tool (which i've installed on vs2017).

But i still have some errors, all related to this component:

CS0616	ProvideToolboxControlAttribute' is not an attribute class
CS0641	Attribute 'AttributeUsage' is only valid on classes derived from System.Attribute

Open in new window


Note: within this file, beside System and System.Globalization, all the other "Using" are greyed out, like if they where not used.  

Anyone can help?  These classes are deprecated? (AttributeUsage?)  How can i solve this issue?

Thanks
ProvideToolboxControlAttribute.cs
0
I setup main site on the IIS as an application and add virtual directories to it. My question is how do I address the MVC applications that would be published to the virtual directory. I try to use standard MVC addressing but it doesn't work.
Example
My site is http://server/main.
My virtual directory is vd1.
If I place index.html in vd1 the address of http://server/main/vd1/index.html works.
If I publish MVC application to vd1 the address http://server/main/vd1/home doesn't work
0
Whenever I perform a search within a document in Visual Studio it always highlights this characters below, besides the word I searched for, which makes it very hard to find what I was searching for:
 <%
%>

How can I disable highlighting those characters ?
0
Hi
I need your help . I think there is possible to use something in Visual Studio Net (2017, C#) to calculate FFT, FIR and IIR filters.  I remember I read it somewhere but
I don't remember what was it.
Do you know what can I use for very fast process?
Looking forward for your suggestions.
0
Get expert help—faster!
LVL 12
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Hello Experts,

I have a problem with deploy a desktop application in a  client machine without installing crystal reports or visual studio.

I searched on the internet and i find a lot of suggestion , but i can't find the correct way ( i can't find the files of runtime for crystal reports)

Thank you.

Regards,
0
Testing for dataset changes on form closing in WinForms 2015.

   
    If DS.HasChanges Then
            ChangesMade = True
             'Call Option to save code
        End If
        For Each dr As DataRow In DS.Tables("tCARDS").Rows
            If dr.RowState <> DataRowState.Unchanged Then
                ChangesMade = True

            End If
            If dr.HasVersion(DataRowVersion.Proposed) Then
                ChangesMade = True
            End If
        Next

Open in new window

The trouble is that when the user moves between datarows using a datagridview or bindingnavigator the Dataset is marked as changed.  It also shows the rowstate as being modified when it isn't.  The user isn't changing anything just navigating amongst records.  I'd like to figure out how to check for any true changes rather then getting the false positive?

Any ideas?


Thanks
0
I've been trying to fix this for days now. Using Xamarin and Visual Studio, I deleted the asset catalogs/media folder then I used app icon set creator to create the icons. I then went into info.plist under visual assets and hit add catalog, then dragged the icons into the slots.

No matter how many times I try this I get the same error.

Since this is xamarin, I was told I have to create an IPA file and upload using ApplicationUploader.  The file uploads but then I get an email from Apple with a build file error shown above.

Does anyone know how to fix this?

thanks!!!!

Missing Info.plist value - A value for the Info.plist key 'CFBundleIconName' is missing in the bundle

Open in new window

0
We currently use Visual Studio 2008 v9.0.  When one user opens a proc on Monday (but does not check it out as they have no intention at that time to make changes) if another user checks out the proc on Tuesday , makes changes and checks it in.  There is nothing to stop the first user from making changes to the proc as he/she  has it in front of him (fro  Monday) and overwrite the changes that user 2 made on Tues.
Is there a way to prevent this - e.g. automatically refresh, or not allow changes checked in if not using the latest file or the problem seems to be that if you have a proc open, you can directly make changes and it will then get flagged as checked out, perhaps if this could be disabled so that the only way to check out a proc would be to reopen from scratch
0
When I manually move an email to a #folder I want a popup asking me if I want to create a rule called #folder to always move mails from its #sender to the #folder.
0
I created a custom ContextMenuStrip at runtime on an overrided RichTextBox control (to enable Cancel, Cut, Copy and Paste basic functions on my overrided RichTextBox) - since the RichTextBox doesn't implement this out-of-the-box.
At runtime, I do get my ContextMenuStrip popping up when I right click on my overrided RichTextBox and the menus work well, BUT when I move the mouse over the ContextMenuStrip, I don't see the selection tracker over the menus. Why so? And how can I fix this?

       
        private void CreateContextMenuStrip()
        {
            _cms = new ContextMenuStrip();
            _cms.Items.Add(new ToolStripLabel("Annuler", null, false, cms_Clicked, "mnuCancel"));
            _cms.Items.Add(new ToolStripSeparator());
            _cms.Items.Add(new ToolStripLabel("Couper", null, false, cms_Clicked, "mnuCut"));
            _cms.Items.Add(new ToolStripLabel("Copier", null, false, cms_Clicked, "mnuCopy"));
            _cms.Items.Add(new ToolStripLabel("Coller", null, false, cms_Clicked, "mnuPaste"));
            _cms.Items.Add(new ToolStripSeparator());
            _cms.Items.Add(new ToolStripLabel("Tout sélectionner", null, false, cms_Clicked, "mnuSelectAll"));
            _cms.Items["mnuSelectAll"].Width = 150;
            _cms.Opening += new CancelEventHandler(cms_Opening);
            this.ContextMenuStrip = _cms;
        }

        private void cms_Opening(object sender, CancelEventArgs e)
        {
            // check to see if we can 

Open in new window

0

Microsoft Development

48K

Solutions

32K

Contributors

Most development for the Microsoft platform is done utilizing the technologies supported by the.NET framework. Other development is done using Visual Basic for Applications (VBA) for programs like Access, Excel, Word and Outlook, with PowerShell for scripting, or with SQL for large databases.