Click here to Skip to main content
15,893,381 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Database Exception Pin
SreejithAchutan3-Jan-08 20:10
SreejithAchutan3-Jan-08 20:10 
GeneralRe: Database Exception Pin
Michael Sync3-Jan-08 20:50
Michael Sync3-Jan-08 20:50 
GeneralRe: Database Exception Pin
SreejithAchutan3-Jan-08 21:39
SreejithAchutan3-Jan-08 21:39 
GeneralRe: Database Exception Pin
Michael Sync3-Jan-08 21:54
Michael Sync3-Jan-08 21:54 
GeneralRe: Database Exception Pin
Paul Conrad4-Jan-08 6:52
professionalPaul Conrad4-Jan-08 6:52 
GeneralRe: Database Exception Pin
SreejithAchutan3-Jan-08 21:49
SreejithAchutan3-Jan-08 21:49 
GeneralRe: Database Exception Pin
SreejithAchutan3-Jan-08 22:28
SreejithAchutan3-Jan-08 22:28 
Questionupdate button in grid view Pin
Sonia Gupta3-Jan-08 19:53
Sonia Gupta3-Jan-08 19:53 
CODE UNDER ROW BOUND DATA 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
ACTUALLY IT SHOULD GIVE THE DATE IN DD/MM/YYYY FORMAT 12/12/2000.


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: update button in grid view Pin
Michael Sync3-Jan-08 19:57
Michael Sync3-Jan-08 19:57 
GeneralRe: update button in grid view Pin
Sonia Gupta3-Jan-08 20:10
Sonia Gupta3-Jan-08 20:10 
GeneralRe: update button in grid view [modified] Pin
Michael Sync3-Jan-08 20:20
Michael Sync3-Jan-08 20:20 
GeneralRe: update button in grid view Pin
Sonia Gupta3-Jan-08 20:24
Sonia Gupta3-Jan-08 20:24 
GeneralRe: update button in grid view Pin
Michael Sync3-Jan-08 20:48
Michael Sync3-Jan-08 20:48 
GeneralRe: update button in grid view Pin
Sonia Gupta3-Jan-08 20:55
Sonia Gupta3-Jan-08 20:55 
GeneralRe: update button in grid view Pin
Michael Sync3-Jan-08 21:03
Michael Sync3-Jan-08 21:03 
General- Pin
Michael Sync3-Jan-08 20:05
Michael Sync3-Jan-08 20:05 
GeneralRe: update button in grid view Pin
janet20083-Jan-08 21:15
janet20083-Jan-08 21:15 
GeneralRe: update button in grid view Pin
N a v a n e e t h3-Jan-08 22:10
N a v a n e e t h3-Jan-08 22:10 
GeneralRe: update button in grid view Pin
Sonia Gupta3-Jan-08 22:30
Sonia Gupta3-Jan-08 22:30 
GeneralColumns Width Pin
~V~3-Jan-08 19:44
~V~3-Jan-08 19:44 
GeneralRe: Columns Width Pin
Michael Sync3-Jan-08 19:54
Michael Sync3-Jan-08 19:54 
GeneralRe: Columns Width Pin
~V~3-Jan-08 19:58
~V~3-Jan-08 19:58 
GeneralRe: Columns Width Pin
Michael Sync3-Jan-08 20:02
Michael Sync3-Jan-08 20:02 
GeneralRe: Columns Width Pin
~V~3-Jan-08 20:09
~V~3-Jan-08 20:09 
GeneralRe: Columns Width Pin
Michael Sync3-Jan-08 20:59
Michael Sync3-Jan-08 20:59 

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.