I installed Windows 2003 Standard Edition, then VS.NET and SQL Server 2K with SP3. When I build web project connecting to the database in VS.NET, the compiler gives me the following error:Login failed for user ‘NT AUTHORITY\NETWORK SERVICE’,why?
Add NT AUTHORITY\NETWORK SERVICE account to SQL Server , which will be in the local group. Make sure to give it the required database access and permissions
I get error message at runtime ‘Value null was found where an instance of an object was required’ when using Application state variables. why?
Application State variables must be initialized in C# before any operation is performed on them. For example.: You need to assign value to Counter state variable before performing the case (int)Session[‘Counter’].
Why do I get error message ‘System.Threading.ThreadAbortException: Thread was being aborted’ while using Response.Redirect
Response.Redirect will cause a ThreadAbort exception. To resolve this use VB.NET Response.Redirect(url,false) C# Response.Redirect(url,false) ;
How to call the Page_load procedure from any event on the page
VB.NET Dim strval As String = ‘a’ If strval = ‘a’ Then Call Page_Load(sender, e) End If C# string strval =’a’; if( strval ==’a’) { Page_Load(sender,e); }
How can I use a Calendar Control in readonly mode. i.e no links for the day and month cells.
In the DayRender Event of calendar Control VB.NET If e.Day.IsOtherMonth Then e.Cell.Text = ‘ ‘ Else e.Cell.Text = e.Day.DayNumberText End If C# if (e.Day.IsOtherMonth ) { e.Cell.Text = ‘ ‘; } else { e.Cell.Text = e.Day.DayNumberText; }