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

File upload issues
Hi Guys,

Can anyone see any issues with this code:
Code: $setImage= 'productimages/' . dat

Not loading image
When this function gets loaded it doesn't load the image just trying to figure out why.

Code:

I have a parse error in this query help..
Code: $query1="INSERT INTO `rating` (`item_name`, `rating`, `ip_address`, `date_rated`) VALUES

Mail functionality from localhost to server
Hi

I am facing problem of mail functionality.

When i tested mail functionality in my

Help with form post data and arrays
Hi all,

I am new to this forum... It has been awhile since i have worked with arrays, and i a

Typing math
I've added support for typesetting math using LaTeX on the forums.

Example:
Code: [Select]

Simple MySQL query...
Hello,
How could I do a mysql query that does this: SELECT * WHERE date/time < 5minutes ag

PHP - MySQL Fail
My PHP code will only execute the first part of my code...

Code: <?php

sessio

INSERT data problem!
After having an string with apostrophes ', double quotes " or any other special characters, suc

phpmailer class & pop.gmail.com?
Code: <?php
$mail->IsSMTP();
$mail->Host = "pop.gmail.com";

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