ClientScript.RegisterClientScriptBlock Issue


Posted on 16th Feb 2014 07:03 pm by admin

This is what I haveview plaincopy to clipboardprint?Protected Sub posrback_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles posrback.Click Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "Animation", "Animation('ddlPosition');", False) End Sub Protected Sub posrback_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles posrback.Click Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "Animation", "Animation('ddlPosition');", False) End Sub
Javascriptview plaincopy to clipboardprint?function Animation(id) { document.all("ctrl_client_assistant_btn_clnt_assistant").click(); } function Animation(id) { document.all("ctrl_client_assistant_btn_clnt_assistant").click(); }
This won't work but if I do this in the page load it will workview plaincopy to clipboardprint?posrback.Attributes.Add("onclick", "Animation('test')") posrback.Attributes.Add("onclick", "Animation('test')") I need to be able to use the clientscript becuase the event is not going to be click event. Thanks

No comments posted yet

Your Answer:

Login to answer
79 Like 17 Dislike
Previous forums Next forums
Other forums

how to get values from $_Post with onchange="form.submit();"?
Hi, I have a form that submit to itself with a file upload field and two other hidden field values.<

Newb advice
Hi all,

I'm a flash front end designer and I've taken on a project that needs some back end p

need help with date function
i have following form for date

Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01

shift numbers with paging
Hi

How would i be able to display 10 numbers 1 2 3 4 5 6 7 8 9 10
and when I click next

Unidentified index error in a simple form
I have been trying to make an HTML form that is handled by a PHP script. So far my attempts to get i

mySQL and PHP search
Hello,
I am trying to code a project and ran into a brick wall with one of my pages. I am pretty

Effort Estimation Template for Steady State Support
Hi Everyone,

Is there any SAP provided template/format for system change and enhancements

Encrypt php code?
Is it possible to encrypt php code in files,
so that it displays a load of unreadable characters

weeks in a year
hi,

i found this snippet on php.net
QuoteFor the week number for weeks starting on Sunday:

UL and LI Add Form
The idea I want here is when the user click on a character name from the drop down select bar at the

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash