Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a modalpopupextender with threee text fields and submit button.
All the fields are mandatory, hence I have given message to display in the modal popup.
This modalpop will be displayed when I click a linkbutton.
When I press the ok button without giving the value in any of the text boxes, the modalpopup disappears.
Again when I click the link button it shows the modalpopup with the validation message.

Thanks in advance
Posted
Updated 28-Oct-10 22:50pm
v2
Comments
Dalek Dave 29-Oct-10 4:50am    
Edited for Grammar, Spelling and Readability.

//server side 

Protected void LinkButton1_click(object sender, EventArgs e)
{
  ModalPopUpExtender1.Show();
}

// ok button click event
//check for TextBoxs values
if(TextBoxs are empty)
{
  //Redirect to Parent page.
}
else
{
 // Your code..

}
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900