The remote name could not be resolved while using HttpWebRequest
The issue could be because of proxy setting not specified for the web application. The solution to this is to add the following conifig info in the application’s web.config...
View ArticleHTTP Error 404.3 – Not FoundThe page you are requesting cannot be served...
I was getting the above error while trying to run an ASP.NET page deployed inside IIS 8 in Windows 8 machine. The fix was to enable the ASP.NET option of the IIS feature Start -> Run ->...
View ArticleFinding no of users online ASP.NET
To do this, 1) Add a new item global.asax in your website. 2) Put the following code in it void Application_Start(object sender, EventArgs e) { // Code that runs on application startup...
View ArticleCalling Asp.NET web service from javascript (Ajax)
Here we will be calling the default helloworld webservice that is already created for us when we open a asp.net webservice project template in Visual Studio. We’ll just have a textbox(html control)...
View ArticleCalling Asp.NET web service from javascript (Ajax)-(Passing Parameter-GET)
Hi, Now we will modify the application that we developed in the previous post to work with parameters https://nishantrana.wordpress.com/2007/10/18/calling-aspnet-webservice-from-javascript-ajax/ 1)...
View ArticleCalling Asp.NET web service from javascript (Ajax)-(Passing Parameter-POST)
Hi, Now we will modify the application that we developed in the previous post to work with POST parameter...
View ArticleConfiguring ASP.NET Web Service
Hi, Well today i created a webservice which would fetch me some data from oracle database. The method signature was something like this public DataSet getEmpInfo {,,,,,,,,,,,,,} I was calling this...
View ArticleUsing Ajax in ASP.NET application -1
Hi, Here we’ll change the small application that we had written to get reponse from ASP.NET webpage rather than a webservice....
View ArticleUsing Ajax in ASP.NET application -2
In part 1 of this post we saw our response returning us a simple text which was holding a single value. But what if it is returing multiple values and it using some characters like | (pipe) or say...
View ArticleUsing Ajax in ASP.NET application -3 (JSON)
As we saw in our previous post https://nishantrana.wordpress.com/2007/10/25/using-ajax-in-aspnet-application-2/ How easy it becomes to parse the response and the values if it is in the XML rather than...
View ArticleJavascript and Asp.net
Let’s see how we can use javascript with our server side controls with very simple examples 1) One way is using controlname.attributes.add(string key,string value); Let’s see an example 1. Create a new...
View ArticleCreating and Calling ASP.NET AJAX Web Service
Hi, First we will create a new ASP.NET Ajax web site(Visual Studio 2005) or ASP.NET web site (version 3.5) if we are using Orcas(Visual studio 2008) Through Add New Item, add a new web service...
View ArticleCreating a simple Hello World ASP.NET AJAX web page.
Hi, Here we will create a simple ASP.Net Ajax webpage having a button and textbox control in it. On the click of button we will fill the textbox with “Hello world” string returned from the server...
View ArticleUsing Forms Authentication in Asp.NET
Hi All, To use form authentication in asp.net application 1- Create a new website 2- Change the name of the default.aspx to login.aspx 3- Add 2 labels one for username and password and two textboxes...
View ArticleUnable to generate a temporary class (result=1). error CS2001: Source file...
Hi, I was getting this error when I was trying to call a .NET dll from an ASP page. The dll was making use of a web service. And while searching for it I found that if we are making use of a web...
View ArticleGood site for understanding System.Net.Mail Namespace
Hi, Plzz do check out this site if you need to write code for sending mail in asp.net 2.0 http://www.systemnetmail.com/default.aspx Bye
View ArticleConsuming an Asp.NET web service using SOAP protocol from JavaScript
There are many ways we can consume a web service The three common protocols for accessing a .NET web service are HTTP GET, HTTP POST and SOAP. The trasport protocol used for them is HTTP. However a web...
View ArticleCustomizing Default IE Test Page for ASP.NET web service
Hi, When we create ASP.NET web service from visual studio and run the web service a test page opens up in which we can test our web service. We can easily customize that web service test page. The name...
View ArticleUsing Web Service as a Data Source in Sql Server Reporting Services
Suppose this is a simple web method inside a web service in ASP.NET. [WebMethod] public string HelloWorld(String FirstName, String LastName) { return “Hello “ + FirstName+ ” “ + LastName ; } Now we...
View ArticleIIS not serving ASP.NET pages
It mostly happens when IIS is installed after .NET is installed. So in this case we need to make use of aspnet_regiis.exe utility. 1) Go to command prompt 2) Go to the following path...
View ArticleUsing Encryption and Decryption in an ASP page
Hi I was looking for implementing cryptography in an ASP page. I found this following article of great use http://www.4guysfromrolla.com/webtech/010100-1.shtml The inc file <% Dim sbox(255) Dim...
View ArticleFileUpload : Page Cannot be displayed and maximum request length exceeded error
By default, ASP.NET permits only files that are 4,096 kilobytes (KB) or less to be uploaded to the Web server. To upload larger files, we must change the maxRequestLength parameter of the...
View ArticleCalling an ASP.NET web service asynchronously.
When we add a web reference to a web service behind the screen wsdl.exe is run which creates the proxy class. Proxy class contains both synchronous and asynchronous flavors of each web method.For...
View ArticleUnderstanding and Using AJAX
Suppose this is our simple ASP.NET page i.e. MyPage.aspx which would be called using AJAX Code for MyPage.aspx.cs protected void Page_Load(object sender, EventArgs e) { // no data is passed if...
View ArticlePublishing workflow as an ASP.NET Web Service.
The workflows developed using windows workflow foundation can be published as a web service. To publish a workflow as a web service, we are provided with two activities. WebServiceInput and...
View ArticleGridview SelectedIndexChanged Showing no Data
It could happen if we are dynamically creating DataTable and bounding it to our GridView. Searching for it if found the following information on one of the blog The GridView (and actually, all our...
View ArticleNice reference card for quick revision
Hi, Yesterday while browsing encountered the following site http://refcardz.dzone.com/ The site has got nice reference material written by experts. Do check out this site !! Bye …
View ArticleError : This application is already precompiled in ASP.NET
Hi, I was getting this error while trying to build one of the web site in Visual studio, on some searching found out the error was because of an existing PrecompiledApp.config within the application...
View ArticleError : The conversion of a char data type to a datetime data type resulted...
Hi, I got this error while developing an asp.net page with Sql server as database, On checking the sql query i found out that the date value was not being sent in the format expected by the database ,...
View ArticleReading querystring using javascript
Hi while searching for the same, got the following javascript q = location.search; getParam = function(arg) { if (q.indexOf(arg) >= 0) { var pntr = q.indexOf(arg) + arg.length + 1; if...
View ArticleConsuming CurrencyConverter web service through JavaScript
Hi, For getting the currency conversion rate we could use the following web service provided by Generic Objects Technologies Ltd. Check out the web services provided by them...
View ArticleServer Application Unavailable in ASP.NET 2.0
Hi, I was getting this error when trying to open a asp.net 2.0 page. However other applications developed in asp.net 1.1 were running fine. Then realized that both of them were using the same...
View ArticleBody OnLoad function in content page in ASP.NET
Hi, I wanted to certain script to run in the onload of the body for my content page. To do this we need to do the following Add an id and runat attribute to the body tag in the MASTER page <body...
View ArticleGood resources for understanding GridView
Check out these wonderful articles on GridView http://www.codersource.net/AspNet/ASPNet20/GridviewcontrolinASPNet20.aspx http://www.codersource.net/AspNet/ASPNet20/Aspnet20GridViewcontrolindepth.aspx...
View ArticleCannot read configuration file due to insufficient permissions
Was getting this issue in one of my ASP.NET application in IIS 7. Gave Read Permission to IIS_IUSRS on the site. This fixed the problem.
View ArticleThe current identity “domain\username” does not have write access to...
To reslove this error, i first tried registering ASP.NET 2.0 1. Open a command prompt. 2. Navigate to ‘C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\’ 3. Run this: aspnet_regiis.exe -i Followed by...
View ArticleHiding Columns in GridView when AutoGenerateColumns is True
Hi, If we have set AutoGenerateColumns property of the GridView as true and binding it to a data source, we will not be able to remove columns from it using the Remove or RemoveAt functions of Columns....
View ArticleHyperLinkField and RowDataBound in ASP.NET
To access the HyperLinkField control with the RowDataBound event of the GridView, we can use the following code (refer the column cell) protected void gridCaseMember_RowDataBound(object sender,...
View ArticleCS1026: ) expected error when using IFrame in Content Page
Hi I had the following iframe defined in one of my aspx page. <iframe id=”MyIframe” src=”http://www.bing.com” runat=”server” onload=”CallHello();”></iframe> The page was working...
View Article“DropDownList has a SelectedIndex which is invalid because it does not exist...
I had my drop down list defined as following <asp:DropDownList ID=”ddlNeedEFMP” runat=”server” Enabled=”False”> <asp:ListItem Value=”2″>No</asp:ListItem> <asp:ListItem...
View ArticleJWT – JSON Web Token – Introduction
As we know, HTTP is a stateless protocol where each request is treated as an independent request. For rendering static web page, this could still be fine, but what if the web application needs to track...
View Article