Click here to Skip to main content
15,892,927 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralProblems in File download Pin
satyaki mishra3-Jan-08 1:25
satyaki mishra3-Jan-08 1:25 
GeneralRe: Problems in File download Pin
Abhijit Jana3-Jan-08 2:30
professionalAbhijit Jana3-Jan-08 2:30 
QuestionRe: Problems in File download Pin
Vasudevan Deepak Kumar3-Jan-08 3:33
Vasudevan Deepak Kumar3-Jan-08 3:33 
Questionhow to convert a string date to date in the format of dd/MM/yyyy Pin
jagan1233-Jan-08 1:24
jagan1233-Jan-08 1:24 
AnswerRe: how to convert a string date to date in the format of dd/MM/yyyy Pin
Sonia Gupta3-Jan-08 1:26
Sonia Gupta3-Jan-08 1:26 
GeneralRe: how to convert a string date to date in the format of dd/MM/yyyy Pin
jagan1233-Jan-08 1:32
jagan1233-Jan-08 1:32 
AnswerRe: how to convert a string date to date in the format of dd/MM/yyyy Pin
soni uma3-Jan-08 2:07
soni uma3-Jan-08 2:07 
QuestionPROBLEM IN UPDATE BUTTON OF GRIDVIEW Pin
Sonia Gupta3-Jan-08 1:05
Sonia Gupta3-Jan-08 1:05 
CODE UNDER ROW COMMAND IN GRIDVIEW
Button b = (Button)e.Row.FindControl("update");
if (b != null)
{
string str = ChangeDateFormat(DataBinder.Eval(e.Row.DataItem, "indate").ToString());
b.Attributes.Add("onclick", "return abc(" + str.ToString() + ");");
}

CODE IN THE JAVA SCRIPT FUNCTION

function abc(s)
{
alert(s);

return false;
}

Function Defenition
public string ChangeDateFormat(string t)
{
string dat = "";
DateTime datformat;
if (DateTime.TryParse(t, out datformat))
{
dat = datformat.ToString("dd/MM/yyyy");
return dat;
}
return dat;
}
now when i click at the upDATE BUTTON TO CHECK THE VALUE IT GIVES

.6576576575757657657
I HAVED DEBUGGED THE CODE .IT IS SENDIG THE ACCURATE DATE.

Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

GeneralRe: PROBLEM IN UPDATE BUTTON OF GRIDVIEW Pin
Paddy Boyd3-Jan-08 1:54
Paddy Boyd3-Jan-08 1:54 
GeneralRe: PROBLEM IN UPDATE BUTTON OF GRIDVIEW Pin
Sonia Gupta3-Jan-08 22:05
Sonia Gupta3-Jan-08 22:05 
Questionhandle gridview buttonfield click event Pin
mp9920053-Jan-08 0:29
mp9920053-Jan-08 0:29 
Generalgridview buttonfield click Pin
mp9920053-Jan-08 0:28
mp9920053-Jan-08 0:28 
GeneralRe: gridview buttonfield click Pin
That's Aragon3-Jan-08 1:09
That's Aragon3-Jan-08 1:09 
GeneralRe: gridview buttonfield click Pin
razanabanu14-Feb-08 20:56
razanabanu14-Feb-08 20:56 
Questionconvert to C# from VB Pin
hurrem3-Jan-08 0:24
hurrem3-Jan-08 0:24 
GeneralRe: convert to C# from VB Pin
N a v a n e e t h3-Jan-08 0:32
N a v a n e e t h3-Jan-08 0:32 
GeneralRe: convert to C# from VB Pin
hurrem3-Jan-08 0:49
hurrem3-Jan-08 0:49 
GeneralRe: convert to C# from VB Pin
Declan Bright3-Jan-08 2:27
Declan Bright3-Jan-08 2:27 
GeneralRe: convert to C# from VB Pin
Dave Doknjas3-Jan-08 13:07
Dave Doknjas3-Jan-08 13:07 
QuestionHow to get IP Address? Pin
Kasi Viswanathan3-Jan-08 0:21
Kasi Viswanathan3-Jan-08 0:21 
GeneralRe: How to get IP Address? Pin
Vasudevan Deepak Kumar3-Jan-08 3:43
Vasudevan Deepak Kumar3-Jan-08 3:43 
GeneralRegEx replace [link url= to html link Pin
Eduard Keilholz2-Jan-08 23:23
Eduard Keilholz2-Jan-08 23:23 
GeneralRe: RegEx replace [link url= to html link Pin
N a v a n e e t h3-Jan-08 0:24
N a v a n e e t h3-Jan-08 0:24 
GeneralRe: RegEx replace [link url= to html link Pin
Eduard Keilholz3-Jan-08 2:18
Eduard Keilholz3-Jan-08 2:18 
GeneralRe: RegEx replace [link url= to html link Pin
N a v a n e e t h3-Jan-08 16:46
N a v a n e e t h3-Jan-08 16:46 

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.