473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

WebControl Attributes

In the same way you can add an event to the onclick attribute

ImageButton1.Attributes("onclick") = "javascript:alert('Hello!');"

I would like to set the 'checked' attribute of an ImageButton with similar
code

ImageButton1.Attributes("checked") = "true"

But it does not works!

It is possible to to that? How?

Thanks a lot

Frédéric Goulet


Nov 18 '05 #1
1 1713
I did exactly what you did in your code and the "checked attribute" was
written out client side.

You do realize there is no checked event for the ImageButton client side.
The client side events are for the input type="image" html control.

HTH,
bill

"Frédéric Goulet" <go*****@dfo-mpo.gc.ca> wrote in message
news:uy**************@TK2MSFTNGP12.phx.gbl...
In the same way you can add an event to the onclick attribute

ImageButton1.Attributes("onclick") = "javascript:alert('Hello!');"

I would like to set the 'checked' attribute of an ImageButton with similar
code

ImageButton1.Attributes("checked") = "true"

But it does not works!

It is possible to to that? How?

Thanks a lot

Frédéric Goulet


Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: xiko tripa | last post by:
Hi. I have an apsx page with a Panel inside. The panel has his properties Width and Height set to 590 and 390 respectively. I call a function to make up an table inside this panel. That table...
1
by: Edward | last post by:
hello, everyone, I build one tree menu using TreeView webcontrol , everything is ok, from tree node click, one sub-frame(main) can refresh its content with new url. My question is, I have...
9
by: kw | last post by:
What is the proper way to get the element ID for a client script? For example, suppose in the WebControl: TextBox t=new TextBox; t.ID=this.ClientID+"X"; .... Then elsewhere we want to access...
0
by: Mike Hofer | last post by:
Hi everyone. I could really use some help. First, the backstory: ===================== I *really* need a 3-state checkbox for my ASP.NET application. Specifically, I need one that lets me set...
0
by: Demetri | last post by:
I have created a web control that can be rendered as either a linkbutton or a button. It is a ConfirmButton control that allows a developer to force a user to confirm if they intended to click it...
0
by: Dariusz Tomon | last post by:
Hi I have got the problem with web control displaying flash (swf) object. The problem is connected with the fact that 1-st swf should loads the second one. But it doesn't. That's why I suspects...
3
by: Leandro de Souza | last post by:
I am developing a WebControl derived from a GridView As to make to codify the RowDataBound event of the GridView in the WebControl?
3
by: Guillaume Hanique | last post by:
Hi, I feel very stupid. I simply want to derive a control from system.web.ui.webcontrols.button and use that on my webform, but I just can't get it done. Can anyone tell me how to do that? I...
0
by: pagates | last post by:
Hello All, For links in my page, I would like to change the window.status to show something a little friendlier than "javascript:WebForm_DoPostBackWithOptions(.............)". I thought that...
2
by: P4trykx | last post by:
Hello I'm want to add some custom attributes to WebControls using WebControl.Attributes.Add("abc","234"); So the html output will look like this, <input type="hidden" abc="123" /etc. I know...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.