onclick load the href string you just received… like: Once you have that reference, you can set the. Now on the JavaScript side you need to get a reference to the button you want to change or set the onclick of, easy. ![]() ' Also pass the hrefDetailLink to link to the GuestDetail page so they can set the prict tier for the guestī("onclick", "javascript:showPriceTierModal('" & hrefLink & "', '" & hrefDetailLink & "') return false ")ītnWorkWith.OnClientClick = " = '" & hrefLink & "' return false" ' Pass hrefLink to the showPriceTierModal(), so if Continue button is clicked, they can continue and Work With If (PriceListCode.Trim = "NP" Or PriceListCode.Trim = "") Then PersonFirstName & " " & PersonLastName & ", " &ĬompanyName & " (Rep - " & Rep & ") Pricing - " & PriceListCode & "?custtype=G"ĭim hrefLink As String = "caracole://" & HttpUtility.UrlEncode(hrefLinkParameters) ![]() Now I may not have done a good job in describing that, so it may have sounded complicated, but really it isn’t or rather shouldn’t have been.ĭim hrefLinkParameters As String = PersonId & "?text=" & hfUserName.Value & " - " & The other day I needed to generate href strings in my WebForms application, pass that href string in a button OnClientClick event to a JavaScript method that in turn would take that href string and dynamically add it to a particular button’s onclick event to set the value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |