To generate web reference for you project use wsdl.exe and then including the generated file (.cs) into your project.
Based on the .NET framework version your wsdl.exe file will exist in corresponding path as below
In case anyone using VS 2008 (.NET v3.5) is also looking for the wsdl.exe.
I found it here:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\wsdl.exe
Future versions C:\Program Files\Microsoft SDKs\Windows\vx.xx\bin\wsdl.exe
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\wsdl.exe
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\wsdl.exe
Using any one of below command can generate proxy class
wsdl /language:CS /n:”<NameSpaceName>” <Path of wsdl file>.wsdl
wsdl.exe /language:CS <Path of wsdl file>.wsdl
wsdl.exe <Path of wsdl file>.wsdl
In Visual studio to add any reference in our project we will use ‘Add Reference Dialogue’, but in last few years apart from .net assemblies, we are started incorporate lots of 3rd party libraries(.NET open source libraries) into our projects.If you manually add any .NET open source assemblies some time it takes too much effort to make it work with the project. We can avoid this manual configuration through Nuget Packages available for VS2010 and from VS2012 this feature is comes by default during installation.
Nuget is type of Open source Package management system and it is a huge repository. Using Nuget we can include required assembly in to out application. we can make use of Package Manager Console window in VS to install any external assembly that is available in Nuget.
I’m using Visual Studio 2013 and as you probably know there is no ASP.NET Web Configuration Tool but Just now i came to know about it. Still i want to access it, so first i want to know why they remove this option. While surfing on net i came to know that this is due to removal of Visual Studio Development Server (or Cassini) from the product.
Now now let see how we will access our Web Configuration Tool
Through your VS2013 console, copy and paste below code
“C:\Program Files\IIS Express\iisexpress.exe” /path:c:\windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETWebAdminFiles /vpath:”/asp.netwebadminfiles” /port:8089 /clr:4.0 /ntlm
Please wait …. don’t exit the command prompt by pressing ‘q’.
Again copy and past the url in a browser and edit ‘[Exact_Project_Path]’ part with your physical application path
That all 🙂
When I disable ViewState for the page. It does not allow any control in the page to use ViewState even if I set ViewStateMode=”true” property of a control.
This is because I set turn page’s ViewState off, then there is no way for you to enable ViewState for specific components. This is because ViewState is serialized recursively, so when if the Page is not allowing ViewState, it will not serialize the ViewState for any of it’s child controls.
Normally if you use ‘RegularExpressionValidator’ control to validate the E-Mail, you will select ‘Internet Email address’. By default it will return ‘\w+([-+.’]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*’
Above expression will accept like ‘email@example.com’, But in my scenario it should accept only two sub domain as ‘firstname.lastname@example.org’
|<%# Eval(“”) %> | <%# Bind(“”)%>
1 |OneWay Binding | Bind is two-way
2 |Readonly databinging | Read/write databinding
Normally Bind() method is used inside the Gridview or other datacontrol to extract the data back to the datasource from the child controls in the template. Normally
the Bind() used inside the EditItemTemplate and InsertItemTemplate of databound countrol.
This String.Format method accepts a format string followed by one to many variables that are to be formatted.