Popup message in AddButton (Event Generation)
-
Hi Friendz, I am adding records from aspx page by clicking ADD button, I want that after adding one record, it should display a pop up menu having message if you want to add another record. How can I do this, help me plz.. Prabir
-
Hi Friendz, I am adding records from aspx page by clicking ADD button, I want that after adding one record, it should display a pop up menu having message if you want to add another record. How can I do this, help me plz.. Prabir
You can do this by using javascript code in the aspx page Add Button add code: on click="return confirm('Do u want to add another record?');" Regards,
sdaniel_cst
-
Hi Friendz, I am adding records from aspx page by clicking ADD button, I want that after adding one record, it should display a pop up menu having message if you want to add another record. How can I do this, help me plz.. Prabir
Hello Prabir, the Messagebox is easy. Add following code in your Button-Handler:
If Not Me.IsStartupScriptRegistered("MsgBox") Then dim sTemp as String = "" sTemp = "" & vbCrLf sTemp += "alert ('Do you want add another record?);" & vbCrLf sTemp += "" & vbCrLf Me.RegisterStartupScript("MsgBox", sTemp) End If
If the user should take a choice replace the alert-call through a confirm-call. If this returns true the OK-Button was pressed. Regards Stephan
\\\\\\|/// \\\\ - - // ( @ @ )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz stephan.pilz@stephan-pilz.de |
| www.stephan-pilz.de |
| ICQ#: 127823481 |
+-----------------------Oooo------------------+
oooO ( )
( ) ) /
\ ( (_/
\_) -
Hi Friendz, I am adding records from aspx page by clicking ADD button, I want that after adding one record, it should display a pop up menu having message if you want to add another record. How can I do this, help me plz.. Prabir
-
Dear Sirs, Thanx for your replay,I am able to get the javascript which conforms If I want to add a record. But the problem is now, after adding I need to another pop up menu which sholud show if user want to add another record or not,basically I need to generate another event after clicking AddRecord button. Plz help me..