469,927 Members | 1,912 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

Remove attribute doesnt work

Guys,

I have the following code in page_load event of user control

Go.Attributes.Add("onclick","if(" + search.ClientID +
".value==''){alert('" + noSearchText + "');return false;}");

Go.Attributes.Remove("border");

the add works fine however the remove does not. I have tried moving the
remove code to prerender and init methods it still wont go. The Go is

protected System.Web.UI.WebControls.ImageButton Go;

Anyone any ideas?

Regards

Ismail

Sep 22 '06 #1
0 1103

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Christopher Armstrong | last post: by
2 posts views Thread by Claudio Jolowicz | last post: by
2 posts views Thread by Josema | last post: by
reply views Thread by Jonas | last post: by
4 posts views Thread by kevanbulmer | last post: by
2 posts views Thread by Philip Limbeck | last post: by
11 posts views Thread by Richard Maher | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.