Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Combobox losing selected item Pin
Imran Khan Pathan11-Aug-08 2:24
Imran Khan Pathan11-Aug-08 2:24 
GeneralRe: Combobox losing selected item Pin
Imran Khan Pathan11-Aug-08 2:24
Imran Khan Pathan11-Aug-08 2:24 
AnswerRe: Combobox losing selected item Pin
omlac11-Aug-08 2:11
omlac11-Aug-08 2:11 
AnswerRe: Combobox losing selected item Pin
eyeseetee11-Aug-08 2:24
eyeseetee11-Aug-08 2:24 
AnswerRe: Combobox losing selected item Pin
omlac11-Aug-08 3:01
omlac11-Aug-08 3:01 
AnswerRe: Combobox losing selected item Pin
omlac11-Aug-08 3:52
omlac11-Aug-08 3:52 
AnswerRe: Combobox losing selected item Pin
omlac11-Aug-08 22:18
omlac11-Aug-08 22:18 
Questionhow to do this? Pin
thsa0711-Aug-08 1:07
thsa0711-Aug-08 1:07 
hai all,
i am using .net 2005.i do my project in asp.net.
i am doing master log attendace.the field names are name,fromdate,todate.
i keep tools are namedropdownlist,fromdateTextbox,todatetextbox,2 calendars and submit button.
ex-1
If i select name 'arun' from namedropdownlist,then i click june 1 2008 in first calendar,then displayed as '06/01/2008' in from date textbox.Then i click june 4 2008 in second calendar,then displayed as '06/04/2008' in todatetextbox.Then i click submit button means,the following output is display,

Name ----- 6/1/2008 --- 6/2/2008 --- 6/3/2008 --- 6/4/2008
Arun ---------- x
Arun ------------------------- x
Arun ---------------------------------------- x
Arun -------------------------------------------------------- x

in above there are 4 lines.

But i want following output in single line
Name 6/1/2008 6/2/2008 6/3/2008 6/4/2008
Arun --------- x --------- x ---------- x ---------- x

note: x is present,dash(-) indicate space.
here name is field.the above 4 date are where i selected from date as june 1 and todate as june 4.

ex-2
If i select 'All Details' from namedropdownlist,then i click june 6 2008 in first calendar,then displayed as '06/06/2008' in from date textbox.Then i click june 9 2008 in second calendar,then displayed as '06/09/2008' in todatetextbox.Then i click submit button means,the following output is display,

Name ---- 6/6/2008 --- 6/7/2008 --- 6/8/2008 --- 6/9/2008
Arun --------- x
Arun ------------------------ x
Arun --------------------------------------- x
Arun ------------------------------------------------------- x
Bala ---------- x
Bala ------------------------ x
Kumar -------- x
Kumar ------------------------------------------------------ x


But i want following output
Name ---- 6/6/2008 --- 6/7/2008 --- 6/8/2008 --- 6/9/2008
Arun --------- x ------------ x ------------ x ------------ x
Bala --------- x ------------ x
Kumar ------ x ------------------------------------------ x

note: x is present,dash(-) indicate space,empty space is absent.
here name is field.the above 4 date are where i selected from date as june 6 and todate as june 9.
the following codes are,

protected void img_submit_Click(object sender, ImageClickEventArgs e)
{
from_date = txt_fr_date.Text;
to_date = txt_to_date.Text;
emp_name = ddl_emp_name.SelectedValue;

check();
}
void check()
{
System.TimeSpan dt_diff = Convert.ToDateTime(to_date).Subtract(Convert.ToDateTime(from_date));
days = dt_diff.Days;

for (int i = 0; i <= days; i++)
{
sql_date = Convert.ToDateTime(from_date).AddDays(i).ToString("MM/dd/yyyy");
sql_date1 = Convert.ToDateTime(from_date).AddDays(i).ToString("MM/dd/yyyy");

dt.Columns.Add(new DataColumn(sql_date1, typeof(string)));
drow = dt.NewRow();

com = new SqlCommand("select * from tbl_report where emp_id='366' and datetime1='" + sql_date + "'", con);
dr = com.ExecuteReader();
while (dr.Read())
{
drow = "x";
dt.Rows.Add(drow);
}
dr.Close();
}

GV_musterrole.DataSource = new DataView(dt);
GV_musterrole.DataBind();
}
AnswerRe: how to do this? Pin
Christian Graus11-Aug-08 1:50
protectorChristian Graus11-Aug-08 1:50 
Questionerror in excel report Pin
Rinki Mukheraji11-Aug-08 0:56
Rinki Mukheraji11-Aug-08 0:56 
AnswerRe: error in excel report Pin
Christian Graus11-Aug-08 1:51
protectorChristian Graus11-Aug-08 1:51 
QuestionRun Time Error Pin
summon_1911-Aug-08 0:48
summon_1911-Aug-08 0:48 
AnswerRe: Run Time Error Pin
Sandeep Akhare11-Aug-08 1:00
Sandeep Akhare11-Aug-08 1:00 
QuestionHow to scroll content in a div using javascirpt [modified] Pin
rahul.net1111-Aug-08 0:17
rahul.net1111-Aug-08 0:17 
AnswerRe: How to scroll content in a div using javascirpt Pin
Manas Bhardwaj11-Aug-08 0:28
professionalManas Bhardwaj11-Aug-08 0:28 
GeneralRe: How to scroll content in a div using javascirpt [modified] Pin
rahul.net1111-Aug-08 0:33
rahul.net1111-Aug-08 0:33 
QuestionSending mail in ASP.NET Pin
Waleed Eissa10-Aug-08 23:24
Waleed Eissa10-Aug-08 23:24 
AnswerRe: Sending mail in ASP.NET Pin
Christian Graus10-Aug-08 23:48
protectorChristian Graus10-Aug-08 23:48 
GeneralRe: Sending mail in ASP.NET Pin
Waleed Eissa11-Aug-08 1:25
Waleed Eissa11-Aug-08 1:25 
GeneralRe: Sending mail in ASP.NET Pin
Christian Graus11-Aug-08 1:52
protectorChristian Graus11-Aug-08 1:52 
Questionautocomplete extender Pin
eyeseetee10-Aug-08 23:11
eyeseetee10-Aug-08 23:11 
AnswerRe: autocomplete extender Pin
Blue_Boy10-Aug-08 23:22
Blue_Boy10-Aug-08 23:22 
GeneralRe: autocomplete extender Pin
eyeseetee10-Aug-08 23:29
eyeseetee10-Aug-08 23:29 
GeneralRe: autocomplete extender Pin
Blue_Boy10-Aug-08 23:33
Blue_Boy10-Aug-08 23:33 
GeneralRe: autocomplete extender Pin
eyeseetee10-Aug-08 23:47
eyeseetee10-Aug-08 23:47 

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.