GeekInterview.com
Submitted Questions

Error while accessing the uploaded website

Asked By: ushalakshmi | Asked On: Nov 5th, 2008

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...

Answered by: iaskalyani45 on: Jan 18th, 2013

Check whether you uploded SQL Server or not.

Answered by: Phani Kiran Gullapalli on: May 20th, 2011

Start SQL Server agent service in windows services

Database convertion

Asked By: ushalakshmi | Asked On: Nov 4th, 2008

How to convert .Mdf to .SQL or .Xml?

Clr

Asked By: ushalakshmi | Asked On: Jun 19th, 2008

What does clr do after the il is generated and machinelanguage is generated .Will it look for main method ?

Answered by: SeeSharp on: Feb 20th, 2010

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...

Answered by: v_n_r on: Dec 23rd, 2009

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 ...

Tooltip class

Asked By: ushalakshmi | Asked On: Jun 11th, 2008

What is tooltip class? How it was implemented?

Answered by: annathurai.subbaiah on: Mar 4th, 2010

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);


 

Answered by: jack2009 on: Nov 13th, 2009

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, ...

C# calender days

Asked By: ushalakshmi | Asked On: May 9th, 2008

How to find out how many calender days are there between two dates in c#.Net?

Star Read Best Answer

Editorial / Best Answer

Answered by: wyverex

View all answers 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);


TimeSpan span = (t1 > t2 ? t1 - t2 : t2 - t1);


Console.WriteLine(span.TotalDays);

Answered by: ngobeseb on: Nov 4th, 2009

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.


Answered by: dhanu_mitra on: Dec 31st, 2008

public void DateDiff(){     DateTime startDate = DateTime.Parse("11/12/2008");      DateTime endDate = DateTime.Parse("11/12/2009"); &n...

Datagrid alter rows

Asked By: ushalakshmi | Asked On: Apr 22nd, 2008

How to alter the rows in a datagrid?

Answered by: Veerapally on: Jun 21st, 2008

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...

Page posting

Asked By: ushalakshmi | Asked On: Apr 18th, 2008

How do you post a current page to different aspx page?

Answered by: Chiri on: Sep 10th, 2010

Responce.Redirect("Newpage.aspx",false);

Answered by: nithincninan on: Dec 8th, 2008

 protected void Page_Load             {             Response.Redirect("webform.aspx&...

How to change the column name by using alter?

Asked By: ushalakshmi | Asked On: Apr 16th, 2008

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.

Answered by: malapati on: Oct 8th, 2008

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...

Answered by: mv_sivavardhan on: Aug 6th, 2008

sp_rename 'TableName.OldColumnName','NewColumnName' is correct

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: