When using FormsAuthentication, how can I redirect a user to a different page other than the default page

When FormsAuthentication is used in ASP.NET, by default, it gets redirected to the default.aspx page. To redirect it to some other page other than default.aspx you have to use the code below. VB.NET FormsAuthentication.SetAuthCookie(txtUsername.Text,false) Response.Redirect(‘someotherpage.aspx’) C# FormsAuthentication.SetAuthCookie(txtUsername.Text,false); Response.Redirect(‘someotherpage.aspx’);

Can I use a src attribute with a Web Service

The .aspx pages are the only ones that support the Src attribute, and therefore it’s the only file type that supports JIT compilation of separate source files.By using the Src attribute in the page directive, you can specify which file the ASP.NET engine should compile. It cannot be used with a WebService. This means that you must precompile the code behind class that is to be used as the basis for the Web Service, either manually using the Command-line compiler or by building a Visual Studio.NET Web Service Application.

I get the error System.__ComObject when using recordset

This error occurs if you are trying to fetch the recordset value as follows rs.Fields(‘productname’) To avoid this error try VB.NET rs.Fields(‘productname’).Value.ToString() C# rs.Fields[‘productname’).Value.ToString() ;