popup window open automatically when a row inserted to the table
-
hi guys,, i want to open a model popup extender when a row inserted to the particualar table now i can open a model popup window manually but i want it to be done automatically if a row inserted to the table in sql server 2005 Please let me know as soon as possible
Ahamed Azeem software Programmer
-
hi guys,, i want to open a model popup extender when a row inserted to the particualar table now i can open a model popup window manually but i want it to be done automatically if a row inserted to the table in sql server 2005 Please let me know as soon as possible
Ahamed Azeem software Programmer
if u want to do it from codebehind, make your main div to runat="server" so that you can access it from codebehind. e.g.
my popup content
After the code for inserting a new row executes the very last thing u must now do is to show the modal. e.g.
public void InsertTableRow()
{
//here i have inserted a new row into my table..//now i will show the updates in a popup modal like so:
popupModal.Style.Value = "display:block;";
//watch here, am applying new style for this div on a div-id, which then mean that all your fancy css styles should be appended to your class(e.g. myPopupClass). if u include all your css on your id and u execute the above code to show your modal the css is going to be overwritten....
}hope that helps...
-
hi guys,, i want to open a model popup extender when a row inserted to the particualar table now i can open a model popup window manually but i want it to be done automatically if a row inserted to the table in sql server 2005 Please let me know as soon as possible
Ahamed Azeem software Programmer
You can use Open() method of ModalPopupExtender in code behind when new row is added.