Showing posts with label loads. Show all posts
Showing posts with label loads. Show all posts

Monday, March 26, 2012

Newbie combo question

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
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

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

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
> >>
> >>

Thursday, March 22, 2012

Newbie looking for a "Simple" Example

Hi All,
I`ve downloaded loads of example and the .NET SDK but am so confuded.
Does anybody know of a Example which I could download which will show me how
to ADD, Delete, and Modify Records in a ASP page connected to a SQL Server?
Many ThanksHi Wizard,
Thanks for your posting. Regarding on this issue, I've found another
duplicated thread in this group and some other community members and I have
posted reply there. I'd appreciate if you have a look there.
In addition, if you feel convenient that we continue to discuss in that
thread, please feel free to post there.
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Newbie looking for a "Simple" Example

Hi All,
I`ve downloaded loads of example and the .NET SDK but am so confuded.
Does anybody know of a Example which I could download which will show me how
to ADD, Delete, and Modify Records in a ASP page connected to a SQL Server?
Many Thankshave a read throuhg some of the examples here:
http://www.campus.ncl.ac.uk/databases/dotnet/
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"Wizard" <test@.test.com> wrote in message
news:VgOdnTaSj4CAKXvcSa8jmw@.karoo.co.uk...
> Hi All,
> I`ve downloaded loads of example and the .NET SDK but am so confuded.
> Does anybody know of a Example which I could download which will show me
how
> to ADD, Delete, and Modify Records in a ASP page connected to a SQL
Server?
> Many Thanks
>
This may help. http://www.geocities.com/jeff_louie/datagrid.htm
Regards,
Jeff
>Does anybody know of a Example which I could download which will show
me how to ADD, Delete, and Modify Records in a ASP page connected to a
SQL Server?<
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!
Thanks for John and Jeff's informative inputs,
Hi Wizard,
The ASP.NET QuickStart's DataAccess section is also very helpful for
getting start on asp.net data manipulation.
#Data Access and Customization
http://samples.gotdotnet.com/quicks...ebdatalist.aspx
Hope also helps.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Many Thanks for you help, these links i think are excatly what i was after!
I was sure there would be something out there but after many hours of
googling i couldn`t really find anything specific.
Many Thanks again All
Wizard
"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> wrote in message
news:RmlE9rd%23EHA.2732@.cpmsftngxa10.phx.gbl...
> Thanks for John and Jeff's informative inputs,
> Hi Wizard,
> The ASP.NET QuickStart's DataAccess section is also very helpful for
> getting start on asp.net data manipulation.
> #Data Access and Customization
> http://samples.gotdotnet.com/quicks...ebdatalist.aspx
> Hope also helps.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
Many Thanks for you help, these links i think are excatly what i was after!
I was sure there would be something out there but after many hours of
googling i couldn`t really find anything specific.
Many Thanks again All
Wizard
"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> wrote in message
news:RmlE9rd%23EHA.2732@.cpmsftngxa10.phx.gbl...
> Thanks for John and Jeff's informative inputs,
> Hi Wizard,
> The ASP.NET QuickStart's DataAccess section is also very helpful for
> getting start on asp.net data manipulation.
> #Data Access and Customization
> http://samples.gotdotnet.com/quicks...ebdatalist.aspx
> Hope also helps.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
Thanks for your reply,
Glad that our suggestions are of assistance.
Good luck!
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Newbie looking for a "Simple" Example

Hi All,

I`ve downloaded loads of example and the .NET SDK but am so confuded.

Does anybody know of a Example which I could download which will show me how
to ADD, Delete, and Modify Records in a ASP page connected to a SQL Server?

Many ThanksHi Wizard,

Thanks for your posting. Regarding on this issue, I've found another
duplicated thread in this group and some other community members and I have
posted reply there. I'd appreciate if you have a look there.
In addition, if you feel convenient that we continue to discuss in that
thread, please feel free to post there.
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Newbie looking for a "Simple" Example

Hi All,

I`ve downloaded loads of example and the .NET SDK but am so confuded.

Does anybody know of a Example which I could download which will show me how
to ADD, Delete, and Modify Records in a ASP page connected to a SQL Server?

Many Thankshave a read throuhg some of the examples here:

http://www.campus.ncl.ac.uk/databases/dotnet/

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Wizard" <test@.test.com> wrote in message
news:VgOdnTaSj4CAKXvcSa8jmw@.karoo.co.uk...
> Hi All,
> I`ve downloaded loads of example and the .NET SDK but am so confuded.
> Does anybody know of a Example which I could download which will show me
how
> to ADD, Delete, and Modify Records in a ASP page connected to a SQL
Server?
> Many Thanks
This may help. http://www.geocities.com/jeff_louie/datagrid.htm

Regards,
Jeff
>Does anybody know of a Example which I could download which will show
me how to ADD, Delete, and Modify Records in a ASP page connected to a
SQL Server?<

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Thanks for John and Jeff's informative inputs,

Hi Wizard,

The ASP.NET QuickStart's DataAccess section is also very helpful for
getting start on asp.net data manipulation.

#Data Access and Customization
http://samples.gotdotnet.com/quicks...ebdatalist.aspx

Hope also helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Many Thanks for you help, these links i think are excatly what i was after!

I was sure there would be something out there but after many hours of
googling i couldn`t really find anything specific.

Many Thanks again All

Wizard

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> wrote in message
news:RmlE9rd%23EHA.2732@.cpmsftngxa10.phx.gbl...
> Thanks for John and Jeff's informative inputs,
> Hi Wizard,
> The ASP.NET QuickStart's DataAccess section is also very helpful for
> getting start on asp.net data manipulation.
> #Data Access and Customization
> http://samples.gotdotnet.com/quicks...ebdatalist.aspx
> Hope also helps.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Many Thanks for you help, these links i think are excatly what i was after!

I was sure there would be something out there but after many hours of
googling i couldn`t really find anything specific.

Many Thanks again All

Wizard

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> wrote in message
news:RmlE9rd%23EHA.2732@.cpmsftngxa10.phx.gbl...
> Thanks for John and Jeff's informative inputs,
> Hi Wizard,
> The ASP.NET QuickStart's DataAccess section is also very helpful for
> getting start on asp.net data manipulation.
> #Data Access and Customization
> http://samples.gotdotnet.com/quicks...ebdatalist.aspx
> Hope also helps.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Thanks for your reply,

Glad that our suggestions are of assistance.
Good luck!

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)