472,143 Members | 1,499 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

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 1220

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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.