J
Jerry C
I have a gridview on a clientcontrol .ascx I am using the tutorial22 from
MSDN and it is not working. The jave confirm box comes up but when I click OK
the page does not post back.
MSDN page:
http://msdn2.microsoft.com/en-us/library/bb428868.aspx
Section:
Step 3: Configuring the OnClientClick Property for the Delete Button in a
CommandField
The Jave for the page is:
<input type="button" value="Delete" onclick="return confirm('Are you sure
you want to delete this record.
');javascript:__doPostBack('PRBPCreativeBrief1$gdApproval','Delete$0')"
class="ms-topnav" />
The Java for the confirm is there but the next java for the post back does
not run.
The vb code is:
Dim btnDelete As Button = CType(e.Row.Cells(5).Controls(0), Button)
btnDelete.OnClientClick = "return confirm('Are you sure you want to delete
this record. ');"
Thank you
MSDN and it is not working. The jave confirm box comes up but when I click OK
the page does not post back.
MSDN page:
http://msdn2.microsoft.com/en-us/library/bb428868.aspx
Section:
Step 3: Configuring the OnClientClick Property for the Delete Button in a
CommandField
The Jave for the page is:
<input type="button" value="Delete" onclick="return confirm('Are you sure
you want to delete this record.
');javascript:__doPostBack('PRBPCreativeBrief1$gdApproval','Delete$0')"
class="ms-topnav" />
The Java for the confirm is there but the next java for the post back does
not run.
The vb code is:
Dim btnDelete As Button = CType(e.Row.Cells(5).Controls(0), Button)
btnDelete.OnClientClick = "return confirm('Are you sure you want to delete
this record. ');"
Thank you