Thursday, March 29, 2012
newbie - resize a label at runtime
I know this is a simple question, but I can't figure this out. I have a web
form with label on it, I would like the length of the label to go from the
left edge of the browser window to the right edge of the browser window. I
am using VS 2003 framework 1.1. Everything looks fine when I browse the sit
e
inside the IDE, but when I open the website in IE the right edge of the labe
l
stops half way across the page.
I know I can set this in the page load event, but I am not sure how to
determine what the value shuold be?
ThanksUse css to control the width of the label
"Chris" <Chris@.discussions.microsoft.com> wrote in message
news:235AD7C4-A417-4358-94C1-FED1803F0719@.microsoft.com...
> Hi everyone,
> I know this is a simple question, but I can't figure this out. I have a
> web
> form with label on it, I would like the length of the label to go from the
> left edge of the browser window to the right edge of the browser window.
> I
> am using VS 2003 framework 1.1. Everything looks fine when I browse the
> site
> inside the IDE, but when I open the website in IE the right edge of the
> label
> stops half way across the page.
> I know I can set this in the page load event, but I am not sure how to
> determine what the value shuold be?
> Thanks
>
Do you have an example or link to an example of this, I 've never worked wit
h
CSS so I am not sure how to do this. I appreciate the help.
Thanks
"Showjumper" wrote:
> Use css to control the width of the label
> "Chris" <Chris@.discussions.microsoft.com> wrote in message
> news:235AD7C4-A417-4358-94C1-FED1803F0719@.microsoft.com...
>
>
newbie - resize a label at runtime
I know this is a simple question, but I can't figure this out. I have a web
form with label on it, I would like the length of the label to go from the
left edge of the browser window to the right edge of the browser window. I
am using VS 2003 framework 1.1. Everything looks fine when I browse the site
inside the IDE, but when I open the website in IE the right edge of the label
stops half way across the page.
I know I can set this in the page load event, but I am not sure how to
determine what the value shuold be?
ThanksUse css to control the width of the label
"Chris" <Chris@.discussions.microsoft.comwrote in message
news:235AD7C4-A417-4358-94C1-FED1803F0719@.microsoft.com...
Quote:
Originally Posted by
Hi everyone,
I know this is a simple question, but I can't figure this out. I have a
web
form with label on it, I would like the length of the label to go from the
left edge of the browser window to the right edge of the browser window.
I
am using VS 2003 framework 1.1. Everything looks fine when I browse the
site
inside the IDE, but when I open the website in IE the right edge of the
label
stops half way across the page.
>
I know I can set this in the page load event, but I am not sure how to
determine what the value shuold be?
>
Thanks
>
Do you have an example or link to an example of this, I 've never worked with
CSS so I am not sure how to do this. I appreciate the help.
Thanks
"Showjumper" wrote:
Quote:
Originally Posted by
>
Use css to control the width of the label
"Chris" <Chris@.discussions.microsoft.comwrote in message
news:235AD7C4-A417-4358-94C1-FED1803F0719@.microsoft.com...
Quote:
Originally Posted by
Hi everyone,
I know this is a simple question, but I can't figure this out. I have a
web
form with label on it, I would like the length of the label to go from the
left edge of the browser window to the right edge of the browser window.
I
am using VS 2003 framework 1.1. Everything looks fine when I browse the
site
inside the IDE, but when I open the website in IE the right edge of the
label
stops half way across the page.
I know I can set this in the page load event, but I am not sure how to
determine what the value shuold be?
Thanks
>
>
>
>
Monday, March 26, 2012
Newbie combo question
set the combo to a certain value when the page loads. (The value will change
depending on other variables when the page loads.)
Thanks
NickArrest me if I'm wrong, but from what I know there is no ComboBox available
in ASP.NET
Are you using a Custom Control?
Shawn
"Nick" <Nick@.NTWorks.no.spam.fsnet.co.uk> wrote in message
news:eNGWFRV$EHA.3840@.tk2msftngp13.phx.gbl...
> Hi - I've loaded the values into a combo box at runtime, but can't see how
I
> set the combo to a certain value when the page loads. (The value will
change
> depending on other variables when the page loads.)
> Thanks
> Nick
>
I mean this one:
System.Web.UI.WebControls.DropDownList
Nick
"Shawn" <bossman100@.hotmail.com> wrote in message
news:ubG7qYV$EHA.1904@.TK2MSFTNGP14.phx.gbl...
> Arrest me if I'm wrong, but from what I know there is no ComboBox
> available
> in ASP.NET
> Are you using a Custom Control?
> Shawn
>
> "Nick" <Nick@.NTWorks.no.spam.fsnet.co.uk> wrote in message
> news:eNGWFRV$EHA.3840@.tk2msftngp13.phx.gbl...
> I
> change
>
If you are using .NET Framework 1.1 then you can use:
myDropDownList.SelectedValue
In .NET Framework 1.0 you can use SelectedIndex and then do a search for
your value, like this:
myDropDownList.SelectedIndex =
myDropDownList.Items.IndexOf(myDropDownList.Items.FindByValue(myValue))
or
myDropDownList.SelectedIndex =
myDropDownList.Items.IndexOf(myDropDownList.Items.FindByText(myText))
Hope this helps,
Shawn
"Nick" <Nick@.NTWorks.no.spam.fsnet.co.uk> wrote in message
news:uwNcZdV$EHA.1188@.tk2msftngp13.phx.gbl...
> I mean this one:
> System.Web.UI.WebControls.DropDownList
> Nick
> "Shawn" <bossman100@.hotmail.com> wrote in message
> news:ubG7qYV$EHA.1904@.TK2MSFTNGP14.phx.gbl...
>
Newbie combo question
set the combo to a certain value when the page loads. (The value will change
depending on other variables when the page loads.)
Thanks
NickArrest me if I'm wrong, but from what I know there is no ComboBox available
in ASP.NET
Are you using a Custom Control?
Shawn
"Nick" <Nick@.NTWorks.no.spam.fsnet.co.uk> wrote in message
news:eNGWFRV$EHA.3840@.tk2msftngp13.phx.gbl...
> Hi - I've loaded the values into a combo box at runtime, but can't see how
I
> set the combo to a certain value when the page loads. (The value will
change
> depending on other variables when the page loads.)
> Thanks
> Nick
I mean this one:
System.Web.UI.WebControls.DropDownList
Nick
"Shawn" <bossman100@.hotmail.com> wrote in message
news:ubG7qYV$EHA.1904@.TK2MSFTNGP14.phx.gbl...
> Arrest me if I'm wrong, but from what I know there is no ComboBox
> available
> in ASP.NET
> Are you using a Custom Control?
> Shawn
>
> "Nick" <Nick@.NTWorks.no.spam.fsnet.co.uk> wrote in message
> news:eNGWFRV$EHA.3840@.tk2msftngp13.phx.gbl...
>> Hi - I've loaded the values into a combo box at runtime, but can't see
>> how
> I
>> set the combo to a certain value when the page loads. (The value will
> change
>> depending on other variables when the page loads.)
>>
>> Thanks
>>
>> Nick
>>
>>
If you are using .NET Framework 1.1 then you can use:
myDropDownList.SelectedValue
In .NET Framework 1.0 you can use SelectedIndex and then do a search for
your value, like this:
myDropDownList.SelectedIndex =
myDropDownList.Items.IndexOf(myDropDownList.Items. FindByValue(myValue))
or
myDropDownList.SelectedIndex =
myDropDownList.Items.IndexOf(myDropDownList.Items. FindByText(myText))
Hope this helps,
Shawn
"Nick" <Nick@.NTWorks.no.spam.fsnet.co.uk> wrote in message
news:uwNcZdV$EHA.1188@.tk2msftngp13.phx.gbl...
> I mean this one:
> System.Web.UI.WebControls.DropDownList
> Nick
> "Shawn" <bossman100@.hotmail.com> wrote in message
> news:ubG7qYV$EHA.1904@.TK2MSFTNGP14.phx.gbl...
> > Arrest me if I'm wrong, but from what I know there is no ComboBox
> > available
> > in ASP.NET
> > Are you using a Custom Control?
> > Shawn
> > "Nick" <Nick@.NTWorks.no.spam.fsnet.co.uk> wrote in message
> > news:eNGWFRV$EHA.3840@.tk2msftngp13.phx.gbl...
> >> Hi - I've loaded the values into a combo box at runtime, but can't see
> >> how
> > I
> >> set the combo to a certain value when the page loads. (The value will
> > change
> >> depending on other variables when the page loads.)
> >>
> >> Thanks
> >>
> >> Nick
> >>
> >>