Click here to Skip to main content
15,894,825 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Page Size Pin
Socheat.Net2-May-07 18:29
Socheat.Net2-May-07 18:29 
GeneralRe: Page Size Pin
Chetan Ranpariya2-May-07 20:30
Chetan Ranpariya2-May-07 20:30 
AnswerRe: Page Size Pin
varshavmane2-May-07 18:24
varshavmane2-May-07 18:24 
GeneralRe: Page Size Pin
Socheat.Net2-May-07 18:41
Socheat.Net2-May-07 18:41 
GeneralRe: Page Size Pin
Kunal P2-May-07 20:47
Kunal P2-May-07 20:47 
GeneralRe: Page Size Pin
Socheat.Net2-May-07 21:08
Socheat.Net2-May-07 21:08 
GeneralRe: Page Size Pin
Sandeep Akhare2-May-07 20:56
Sandeep Akhare2-May-07 20:56 
QuestionNo PostBack For OnClientClick On GridView Button Pin
michaelastewartmas2-May-07 17:23
michaelastewartmas2-May-07 17:23 
I have been attempting to add a Confirmation Popup to a Button that comes from a ButtonField in a GridView. I have successfully identified the Button and added the Javascript with the code below. When I press the Button, a Confirmation Popup comes up with the "Ok" or "Cancel" buttons as usual. The problem is that when I press the "Ok" button….no post back is made. I can't figure it out. Is there some kind of special consideration that I missed with adding this kind of confirmation to a Button from a ButtonField?

Private Sub gv_MaterialGrpLegacy_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gv_MaterialGrpLegacy.RowDataBound
...
Dim RowButton As Button

RowButton = e.Row.Cells(0).Controls(0)
RowButton.OnClientClick = String.Format("javascript:return confirm('Are You Sure You Want To Remove This {0}?');", "")

Thanks to all that have help me in the past, and those who can help me with this!


AnswerRe: No PostBack For OnClientClick On GridView Button Pin
Mayank Prajapati2-May-07 18:23
Mayank Prajapati2-May-07 18:23 
AnswerRe: No PostBack For OnClientClick On GridView Button Pin
Mayank Prajapati2-May-07 18:24
Mayank Prajapati2-May-07 18:24 
AnswerRe: No PostBack For OnClientClick On GridView Button Pin
firozu3-May-07 0:40
firozu3-May-07 0:40 
AnswerRe: No PostBack For OnClientClick On GridView Button Pin
meeram3953-May-07 0:57
meeram3953-May-07 0:57 
QuestionHelp Please Pin
yasso_1152-May-07 10:11
yasso_1152-May-07 10:11 
AnswerRe: Help Please Pin
Guffa2-May-07 11:16
Guffa2-May-07 11:16 
GeneralRe: Help Please Pin
yasso_1152-May-07 11:37
yasso_1152-May-07 11:37 
GeneralRe: Help Please Pin
enjoycrack2-May-07 16:02
enjoycrack2-May-07 16:02 
GeneralRe: Help Please Pin
Ibuprofen2-May-07 17:14
Ibuprofen2-May-07 17:14 
Questionhow do i access my site by http://fedexghana.com instead of http://www.fedexghana.com Pin
dleo102-May-07 9:08
dleo102-May-07 9:08 
AnswerRe: how do i access my site by http://fedexghana.com instead of http://www.fedexghana.com Pin
Guffa2-May-07 9:35
Guffa2-May-07 9:35 
GeneralRe: how do i access my site by http://fedexghana.com instead of http://www.fedexghana.com Pin
dleo108-May-07 0:45
dleo108-May-07 0:45 
QuestionHow to conect database access with web page ? Pin
RikinPandya2-May-07 7:38
RikinPandya2-May-07 7:38 
AnswerRe: How to conect database access with web page ? Pin
Tarakeshwar Reddy2-May-07 7:59
professionalTarakeshwar Reddy2-May-07 7:59 
GeneralRe: How to conect database access with web page ? Pin
RikinPandya2-May-07 8:26
RikinPandya2-May-07 8:26 
GeneralRe: How to conect database access with web page ? Pin
Tarakeshwar Reddy2-May-07 8:35
professionalTarakeshwar Reddy2-May-07 8:35 
GeneralRe: How to conect database access with web page ? Pin
Ibuprofen2-May-07 17:28
Ibuprofen2-May-07 17:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.