Ask a Question related to ASP.NET General, Design and Development.
-
Jenny #1
Button's text
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")
Page.Controls.Add(button)
The width statement works properly but setting the text on
the button doesn't. I also tried button.Style.Add(("value",
"I'm a Button") but it also not working?
What I'm doing wrong?
Thanks for help
Jenny
Jenny Guest
-
Coursebuilder - 5 text areas for 5 possible scores. Eachpossible answer has its own text area
I'm trying to build an inventory form that has different point values for each possible answer for a particular question. there will be 5 possible... -
current selected text to highlighted text on mouse up event through java script
hi everybody, I want to convert the current selected text to highlighted text i.e. to yellow background on mouse up event on pdf form through... -
text field including text from a text file *.txt
Hi, I would like to insert a text field which includes text from a text file. I know it must be possible but unfortunately I cannot find any help... -
Can actionscript change a "Button's" "Behavior"?
While a movie is playing in "level 0" a button is pressed to launch another movie in "level 1". Is there a way to change the button that was pressed... -
Changing button's URLs based upon text field
I have created a quiz using the Coursebuilder extensions in DWMX, which puts their score in a text field on the page (no data base is used). What I... -
Kevin Spencer #2
Re: Button's text
Try setting the InnerText of the HtmlButton.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Complex things are made up of
lots of simple things.
"Jenny" <j.malloyNO@SPAMx-mail.net> wrote in message
news:0abd01c360ac$517ffe90$a401280a@phx.gbl...> 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")
> Page.Controls.Add(button)
>
> The width statement works properly but setting the text on
> the button doesn't. I also tried button.Style.Add(("value",
> "I'm a Button") but it also not working?
>
> What I'm doing wrong?
>
> Thanks for help
>
> Jenny
Kevin Spencer Guest
-
Simon Storr #3
Re: Button's text
Just use
button.Text = "I'm a Button"
Simon
"Jenny" <j.malloyNO@SPAMx-mail.net> wrote in message
news:0abd01c360ac$517ffe90$a401280a@phx.gbl...> 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")
> Page.Controls.Add(button)
>
> The width statement works properly but setting the text on
> the button doesn't. I also tried button.Style.Add(("value",
> "I'm a Button") but it also not working?
>
> What I'm doing wrong?
>
> Thanks for help
>
> Jenny
Simon Storr Guest



Reply With Quote

