Click here to Skip to main content
16,016,557 members
Home / Discussions / C#
   

C#

 
GeneralWebBrowser Question Pin
feint28-Apr-08 5:01
feint28-Apr-08 5:01 
GeneralRe: WebBrowser Question Pin
Judah Gabriel Himango28-Apr-08 5:50
sponsorJudah Gabriel Himango28-Apr-08 5:50 
GeneralRe: WebBrowser Question Pin
Spacix One28-Apr-08 7:29
Spacix One28-Apr-08 7:29 
GeneralRe: WebBrowser Question Pin
feint28-Apr-08 22:09
feint28-Apr-08 22:09 
GeneralRe: WebBrowser Question Pin
Spacix One29-Apr-08 4:34
Spacix One29-Apr-08 4:34 
GeneralMake a CAB file for PocketPc2003 Pin
AlexB4728-Apr-08 4:04
AlexB4728-Apr-08 4:04 
GeneralRe: Make a CAB file for PocketPc2003 Pin
Zoltan Balazs28-Apr-08 4:19
Zoltan Balazs28-Apr-08 4:19 
QuestionHow to display Sunday to Saturday format value from database using Gridview Pin
bruze28-Apr-08 4:00
bruze28-Apr-08 4:00 
Can any one Help,

I have Create the weekday table in sql server 2005.

Total three field is there in weekday table.
1)DayOfTheWeek
2)OfficeOpenHours
3)OfficeCloseHours

I have enter the value Sunday to Friday in DayOfTheWeek field.
I have set the primarykey in DayOfTheWeek field.
When i set the primary key its automatically set the value in ascending order format.

Before Set the Primary key in DayOfTheWeek field value
*******************************************************
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday

After Set the Primary key in DayOfTheWeek field value
*****************************************************
Friday
Monday
Saturday
Sunday
Thursday
Tuesday
Wednesday


C#
***

protected void Button1_Click(object sender, EventArgs e)
{

SqlConnection con=new SqlConnection("connection string");
con.Open()
SqlCommand cmd1 = new SqlCommand("select * from Office_Hours", con);
SqlDataAdapter da=new SqlDataAdapter(cmd1);
DataSet ds=new DataSet()
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}

How to display Sunday to Saturday format value from database using Gridview
AnswerRe: How to display Sunday to Saturday format value from database using Gridview Pin
J a a n s28-Apr-08 4:27
professionalJ a a n s28-Apr-08 4:27 
GeneralApplication.Run() Parameter Pin
saneng28-Apr-08 3:07
saneng28-Apr-08 3:07 
GeneralApplication.Run() Pin
saneng28-Apr-08 3:06
saneng28-Apr-08 3:06 
GeneralRe: Application.Run() Pin
Giorgi Dalakishvili28-Apr-08 3:36
mentorGiorgi Dalakishvili28-Apr-08 3:36 
GeneralRe: Application.Run() Pin
Colin Angus Mackay28-Apr-08 4:07
Colin Angus Mackay28-Apr-08 4:07 
GeneralProject post build events Pin
Razvan Dimescu28-Apr-08 2:26
Razvan Dimescu28-Apr-08 2:26 
QuestionText parser Pin
solutionsville28-Apr-08 2:23
solutionsville28-Apr-08 2:23 
GeneralRe: Text parser Pin
carbon_golem28-Apr-08 3:31
carbon_golem28-Apr-08 3:31 
AnswerRe: Text parser Pin
solutionsville28-Apr-08 3:51
solutionsville28-Apr-08 3:51 
GeneralRe: Text parser Pin
carbon_golem28-Apr-08 4:06
carbon_golem28-Apr-08 4:06 
AnswerRe: Text parser Pin
solutionsville28-Apr-08 4:25
solutionsville28-Apr-08 4:25 
GeneralRe: Text parser Pin
carbon_golem28-Apr-08 5:06
carbon_golem28-Apr-08 5:06 
AnswerRe: Text parser Pin
solutionsville28-Apr-08 6:02
solutionsville28-Apr-08 6:02 
AnswerRe: Text parser Pin
solutionsville28-Apr-08 8:02
solutionsville28-Apr-08 8:02 
QuestionGet username of a running process Pin
I'm a member...28-Apr-08 1:55
I'm a member...28-Apr-08 1:55 
GeneralRe: Get username of a running process Pin
Anthony Mushrow28-Apr-08 2:06
professionalAnthony Mushrow28-Apr-08 2:06 
QuestionNeed help with scheduling system Pin
Twyce28-Apr-08 1:39
Twyce28-Apr-08 1:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.