What is the difference between Server.Transfer and Server.Execute
Server.Transfer is used to End the current weform and begin executing a new webform. This method works only when navigating to a Web Forms page (.aspx) Server.Execute is used to begin executing a new webform while still displaying the current web form. The contents of both forms are combined. This method works only when navigating to a webform page(.aspx)
Can I use a DataReader to update/insert/delete a record
No. DataReader provides a means of reading a forward-only stream of rows from a database.
How to automatically get the latest version of all the asp.net solution items from Source Safe when opening the solution?
In VS.NET you can go to Tools > Options > Source Control > General and check the checkbox for Get everything when a solution opens. This retrieves the latest version of all solution items when you open the solution.
Why do I get the error message ‘Object must implement IConvertible’. How can I resolve it
The common cause for this error is specifying a control as a SqlParameter’s Value instead of the control’s text value. For example, if you write code as below you’ll get the above error: VB.NET Dim nameParameter As SqlParameter = command.Parameters.Add(‘@name’, SqlDbType.NVarChar, 50) nameParameter.Value = txtName C# SqlParameter nameParameter = command.Parameters.Add(‘@name’, SqlDbType.NVarChar, 50); nameParameter.Value = txtName ; To resolve it, specify the control’s Text property instead of the control itself. VB.NET nameParameter.Value = txtName.Text C# nameParameter.Value =txtName.Text;
Why is default.aspx page not opened if i specify http://localhost. I am able to view this page if i hardcode it as http://localhost/default.aspx
If some other default page comes higher in the list, adjust the default.aspx to be the number one entry inside the IIS configuration. If you have multiple websites inside IIS, make sure the configuration is applied on the right website (or on all websites by applying the configuration on the server-level using the properties dialog, configure WWW service).