Error while accessing the uploaded website
Hi,recently I deployed a website using godaddy.Com.But while accessing the website we r not getting internal pages.I m getting an error likean error has occurred while establishing a connection to the server. When connecting to SQL server 2005, this failure may be caused by the fact that under the...
What does clr do after the il is generated and machinelanguage is generated .Will it look for main method ?
When assembly is loaded for execution CLR component -JIT compiler convert it into machine specific code, after that CLR loads the required references and dll required by assembly and then fo...
Once IL and Machine Language is generated, by using CLR, JIT(just in time) compiles the IL files, where it converts the code to Operating System understandable.CLR translates this MSIL code ...
What is tooltip class? How it was implemented?
ToolTip Class is used to create a custome tooltip message for the any controls and associated with controls.
ToolTip objPictureBox=new ToolTip();
objPictureBox.Text="This is picturebox control";
PictureBox1.Controls.Add(objPictureBox);
This provider allows you to show help massage to user when they hovers the mouse over the control.For using tool tip control, you need to drag and drop component in to the component tray. After that, ...
How to find out how many calender days are there between two dates in c#.Net?
Answered by: wyverex
Member Since May-2008 | Answered On : May 13th, 2008
DateTime t1 = new DateTime(2008, 5, 13);
DateTime t2 = new DateTime(2004, 2, 22);
Console.WriteLine(span.TotalDays);
Here is the better answer:
DateTime fDate = DateTime.Now;
int thisDay = fDate.DayOfYear; //if today's date is 31/12/2008, thisDay will be 365 and if today's date is 01/01/2009, thisDay will be 1.
Therefore, you can use DayOfYear propery to get the day number in a year.
public void DateDiff(){ DateTime startDate = DateTime.Parse("11/12/2008"); DateTime endDate = DateTime.Parse("11/12/2009"); &n...
How to alter the rows in a datagrid?
You can use DataGrid's OnItemCreated and OnItemDataBound events. OnItemCreated event is fired once a row is created but the values are not yet binded.OnItemDataBound will fire for every row that i...
How do you post a current page to different aspx page?
Responce.Redirect("Newpage.aspx",false);
protected void Page_Load { Response.Redirect("webform.aspx&...
How to change the column name by using alter?
I tried by giving......................... Alter table table name rename column tocolumn name was changed but it's not giving entire table with altered column name.It's giving only the altered column.
to change name of one column alter table <table name>rename column <old columnname> to <new columnname>;if we want to change more than one column a...
sp_rename 'TableName.OldColumnName','NewColumnName' is correct
Check whether you uploded SQL Server or not.
Start SQL Server agent service in windows services