Qaiser Mehmood

Qaiser Mehmood

  • NA
  • 105
  • 0

onclick+postbackurl

Feb 12 2009 5:39 AM

say  i have this code

for first time it validate  if  checkbox=true but if i uncheck  then i have to  push button twise for post back  why . 

 

 

protected void Button1_Click(object sender, EventArgs e)

{

 

if ((Chk1.Checked==true))

{

Response.Write("Please check");

}

else

Button1.PostBackUrl = "Detail.aspx";

}


Answers (1)