Click here to Skip to main content
15,899,937 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Populating Sybase database date in three drop downlist Pin
Praneeth Babu K13-Feb-09 22:05
Praneeth Babu K13-Feb-09 22:05 
GeneralRe: Populating Sybase database date in three drop downlist Pin
Abhijit Jana13-Feb-09 22:10
professionalAbhijit Jana13-Feb-09 22:10 
GeneralRe: Populating Sybase database date in three drop downlist Pin
Praneeth Babu K13-Feb-09 22:31
Praneeth Babu K13-Feb-09 22:31 
GeneralRe: Populating Sybase database date in three drop downlist Pin
Abhijit Jana13-Feb-09 22:56
professionalAbhijit Jana13-Feb-09 22:56 
GeneralRe: Populating Sybase database date in three drop downlist Pin
ABitSmart13-Feb-09 21:50
ABitSmart13-Feb-09 21:50 
GeneralRe: Populating Sybase database date in three drop downlist Pin
Praneeth Babu K13-Feb-09 22:06
Praneeth Babu K13-Feb-09 22:06 
GeneralRe: Populating Sybase database date in three drop downlist Pin
ABitSmart13-Feb-09 22:10
ABitSmart13-Feb-09 22:10 
AnswerRe: Populating Sybase database date in three drop downlist Pin
Praneeth Babu K15-Feb-09 18:02
Praneeth Babu K15-Feb-09 18:02 
thank's guys for helping i got this,this is working code

private void GetCurentDay()
{
OdbcCommand cmd = new OdbcCommand("select convert(date,getutcdate()) as getdt", conn);
OdbcDataAdapter ad = new OdbcDataAdapter(cmd);
DataSet ds = new DataSet();

string CurrDate;

try
{
conn.Open();
cmd.ExecuteNonQuery();
ad.Fill(ds, "date");
if (ds.Tables[0].Rows.Count > 0)
{
CurrDate = ds.Tables[0].Rows[0]["getdt"].ToString();
string[] strarray;
strarray=CurrDate.Split('/');
// Response.Write(strarray[0]);
ddlFromMonth.Items.Add(strarray[0]);
ddlFromDay.Items.Add(strarray[1]);
ddlFromYear.Items.Add(strarray[2].Substring(0,4));
}
}
catch
{
}
finally
{
conn.Close();
}
}
QuestionWindows Service Pin
sjs4u13-Feb-09 19:21
sjs4u13-Feb-09 19:21 
AnswerRe: Windows Service Pin
Christian Graus13-Feb-09 22:34
protectorChristian Graus13-Feb-09 22:34 
GeneralRe: Windows Service Pin
sjs4u13-Feb-09 23:20
sjs4u13-Feb-09 23:20 
GeneralRe: Windows Service Pin
Scott Dorman14-Feb-09 15:31
professionalScott Dorman14-Feb-09 15:31 
GeneralRe: Windows Service Pin
Christian Graus14-Feb-09 22:47
protectorChristian Graus14-Feb-09 22:47 
QuestionFrame Pin
ellllllllie13-Feb-09 19:01
ellllllllie13-Feb-09 19:01 
QuestionGridview Event Problem Pin
ais0713-Feb-09 18:25
ais0713-Feb-09 18:25 
AnswerRe: Gridview Event Problem Pin
Calin Tatar14-Feb-09 14:15
Calin Tatar14-Feb-09 14:15 
QuestionHow to avoid Videos being cached [modified] Pin
.NET- India 13-Feb-09 17:49
.NET- India 13-Feb-09 17:49 
AnswerRe: How to avoid Videos being cached Pin
ABitSmart13-Feb-09 21:17
ABitSmart13-Feb-09 21:17 
GeneralRe: How to avoid Videos being cached [modified] Pin
.NET- India 13-Feb-09 21:22
.NET- India 13-Feb-09 21:22 
QuestionDOMAttrModified(firefox) vs propertychange(ie) Pin
Alomgir Miah A13-Feb-09 11:31
Alomgir Miah A13-Feb-09 11:31 
AnswerRe: DOMAttrModified(firefox) vs propertychange(ie) Pin
ABitSmart13-Feb-09 21:03
ABitSmart13-Feb-09 21:03 
GeneralRe: DOMAttrModified(firefox) vs propertychange(ie) Pin
Alomgir Miah A14-Feb-09 7:54
Alomgir Miah A14-Feb-09 7:54 
Questionshow each user pages which can access, without using membership or roles Pin
hnj_judge13-Feb-09 10:29
hnj_judge13-Feb-09 10:29 
AnswerRe: show each user pages which can access, without using membership or roles Pin
Christian Graus13-Feb-09 11:00
protectorChristian Graus13-Feb-09 11:00 
GeneralRe: show each user pages which can access, without using membership or roles Pin
hnj_judge13-Feb-09 11:31
hnj_judge13-Feb-09 11:31 

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.