473,473 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

HtmlButton

Hi,
I have an htmlinputbutton on a webform, which i want to disable /enable
using code in the code behind file. How do I access the said button in the
code behind ?
Thanks.
Nov 17 '05 #1
2 1515
VB.NET

Protected WithEvents Button1 As System.Web.UI.WebControls.Button

Button1.Enabled = False

"Anita C" <an****@ptm-software.com> wrote in message
news:Og**************@TK2MSFTNGP09.phx.gbl...
Hi,
I have an htmlinputbutton on a webform, which i want to disable /enable
using code in the code behind file. How do I access the said button in the
code behind ?
Thanks.

Nov 17 '05 #2
Hi,
The button is not a webcontrol but an html control.

"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:O0*************@tk2msftngp13.phx.gbl...
VB.NET

Protected WithEvents Button1 As System.Web.UI.WebControls.Button

Button1.Enabled = False

"Anita C" <an****@ptm-software.com> wrote in message
news:Og**************@TK2MSFTNGP09.phx.gbl...
Hi,
I have an htmlinputbutton on a webform, which i want to disable /enable
using code in the code behind file. How do I access the said button in the code behind ?
Thanks.


Nov 17 '05 #3

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

Similar topics

2
by: Jenny | last post by:
Hi, I'm using a button, generated in the code behind: Dim button As New System.Web.UI.HtmlControls.HtmlButton button.Attributes.Add("value", "I'm a Button") button.Style.Add("width", "100px")...
3
by: vladvadeanu | last post by:
I have this problem... I want to add controls to a WebForm (any kind of controls... panels, buttons, datagrids,...) at runtime and I could do that with HtmlControls :" Label myLabel = new Label();...
3
by: Jeremy | last post by:
I have an ASPX page with a bunch of System.Web.UI.WebControls.Button controls on it. By default, clicking on any of these causes a Postback. I'd like to have it so that for a couple of these...
0
by: Oz | last post by:
Hi Using VS.NET 2003, Windows XP SP1, We have a page which has been developed using ASP.NET. On it, is a button which when clicked is supposed to add some data to a table. When the button is...
1
by: Michael | last post by:
Only difference I noticed is in VS.NET, where I can see the events in the Properties window for the Button Web server control. Thanks.
4
by: vatech1993 | last post by:
I'm stumped on this problem. I've created a user control that dynamically creates 5 linkbuttons in the CreateChildControls method. Each of these child controls is linked to a commandeventhandler,...
4
by: John Mason | last post by:
Hi! I hope someone can assist... this has been driving me crazy!! I have dynamically added several htmlbuttons to a placeholder control using... AddHandler btnReports.ServerClick, AddressOf...
4
by: Marcin | last post by:
Hi, Can anybody tell me why asp Button control always renders as <input type="submit" ...>??? Or, what is more important for me, how to force it to render as <input type="button" ...>? Any...
3
by: Bob | last post by:
Hi, I 'm starting asp.net and i saw two ways to make buttons. Which way to use? Are the htmlbuttons in specific case better than webbuttons? Are there advantages? Thanks Bob htmlbutton:...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.