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

ASP.NET

 
GeneralRe: CLEAR A TEXTBOX on SETFOCUS IN ASP.NET with C#? Pin
N a v a n e e t h19-Mar-08 20:39
N a v a n e e t h19-Mar-08 20:39 
GeneralRe: CLEAR A TEXTBOX on SETFOCUS IN ASP.NET with C#? Pin
John Sundar19-Mar-08 21:54
John Sundar19-Mar-08 21:54 
QuestionAssigning change/delete permission to a file in ASP.net applications Pin
sidbaruah19-Mar-08 19:58
sidbaruah19-Mar-08 19:58 
GeneralRe: Assigning change/delete permission to a file in ASP.net applications Pin
N a v a n e e t h19-Mar-08 20:16
N a v a n e e t h19-Mar-08 20:16 
GeneralRe: Assigning change/delete permission to a file in ASP.net applications Pin
sidbaruah19-Mar-08 20:29
sidbaruah19-Mar-08 20:29 
GeneralRe: Assigning change/delete permission to a file in ASP.net applications Pin
N a v a n e e t h19-Mar-08 20:33
N a v a n e e t h19-Mar-08 20:33 
GeneralRe: Assigning change/delete permission to a file in ASP.net applications Pin
sidbaruah19-Mar-08 20:40
sidbaruah19-Mar-08 20:40 
Questionhow to write code for ok button in confirmation box Pin
iswaryaramkumar19-Mar-08 19:28
iswaryaramkumar19-Mar-08 19:28 
i am using asp.net2.0 with c#.net
when update button is clicked i want a confirmation box , if the user presses ok i want to update the record
i have the following code in delete button code behind but i cannot get the result
ClientScript.RegisterStartupScript(typeof(Page), "pop", "<script language='javascript'>var ans=confirm('Do U Want To Update?');</script>");


if(ans==1)
{

connect = ConfigurationManager.AppSettings["connection"].ToString();
SqlConnection Sqlcon = new SqlConnection(connect);
string str = "update time set taskid='" + TextBox2.Text + "',platform='" + TextBox3.Text + "',projectname='" + TextBox4.Text + "',workdescription='" + TextBox5.Text + "',startdate='" + TextBox6.Text + "',enddate='" + TextBox7.Text + "',starttime='" + TextBox8.Text + "',endtime='" + TextBox9.Text + "',workstatus='" + TextBox10.Text + "'where sno='" + DropDownList1.SelectedItem.Text + "'";
Sqlcon.Open();
SqlCommand cmd = new SqlCommand(str, Sqlcon);
cmd.ExecuteNonQuery();
Sqlcon.Close();
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
TextBox8.Text = "";
TextBox9.Text = "";
TextBox10.Text = "";
ClientScript.RegisterStartupScript(typeof(Page), "MessagePopUp", "<script language='javascript'>alert('Data is updated');</script>");
}
it is showing error that ans does not exist in current content
AnswerRe: how to write code for ok button in confirmation box Pin
N a v a n e e t h19-Mar-08 20:11
N a v a n e e t h19-Mar-08 20:11 
QuestionHow to remove line breaks in TreeView? [modified] Pin
Sam.M19-Mar-08 19:16
Sam.M19-Mar-08 19:16 
GeneralRe: How to remove line breaks in TreeView? Pin
Paul Conrad21-Mar-08 9:22
professionalPaul Conrad21-Mar-08 9:22 
QuestionHow to add mouseover event on Hyperlink in a gridview? Pin
wajans19-Mar-08 19:08
wajans19-Mar-08 19:08 
GeneralRe: How to add mouseover event on Hyperlink in a gridview? Pin
N a v a n e e t h19-Mar-08 20:13
N a v a n e e t h19-Mar-08 20:13 
GeneralRe: How to add mouseover event on Hyperlink in a gridview? Pin
rahul.net1119-Mar-08 20:39
rahul.net1119-Mar-08 20:39 
GeneralRe: How to add mouseover event on Hyperlink in a gridview? Pin
Laddie19-Mar-08 22:39
Laddie19-Mar-08 22:39 
Generalexport crystal report in excel in asp.net(urgent) Pin
Milind Panchal19-Mar-08 19:01
Milind Panchal19-Mar-08 19:01 
GeneralRe: export crystal report in excel in asp.net(urgent) Pin
Anoop Brijmohun19-Mar-08 20:32
Anoop Brijmohun19-Mar-08 20:32 
GeneralRe: export crystal report in excel in asp.net(urgent) Pin
Vasudevan Deepak Kumar20-Mar-08 21:50
Vasudevan Deepak Kumar20-Mar-08 21:50 
GeneralReport Problem Pin
Usharva19-Mar-08 18:29
Usharva19-Mar-08 18:29 
GeneralGenerate and render reports to PDF in a loop using ReportViewer in VS2005 Pin
SlamDunk2319-Mar-08 17:15
SlamDunk2319-Mar-08 17:15 
GeneralRe: Generate and render reports to PDF in a loop using ReportViewer in VS2005 Pin
sidbaruah19-Mar-08 20:36
sidbaruah19-Mar-08 20:36 
Questionhow to export data to powerpoint using vs2005 Pin
27185324119-Mar-08 16:21
27185324119-Mar-08 16:21 
AnswerRe: how to export data to powerpoint using vs2005 Pin
sidbaruah19-Mar-08 21:47
sidbaruah19-Mar-08 21:47 
GeneralParse the selected value from ddl and fill another ddl with information + NHibernate + C# Pin
Thommie.h19-Mar-08 11:16
Thommie.h19-Mar-08 11:16 
GeneralRe: Parse the selected value from ddl and fill another ddl with information + NHibernate + C# Pin
Marco van der Linden19-Mar-08 11:50
Marco van der Linden19-Mar-08 11:50 

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.