Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Just getting started

Reply
Thread Tools

Just getting started

 
 
abillmeier
Guest
Posts: n/a
 
      03-07-2006
I am just getting started messing with ASP 2.0, and am working on creating a
quick data entry web hooked to a SQL database.

I am using stored procedures to get and push data.

I am having a problem isolating individual fields in a FormView. I am
trying to manually add some values to a Dropdownlist in the EditMode of the
Formview.

I have a serious of dropdownlists in the formview that are populated from
SqlDataSource objects, and the overall Formview is populated via a
SqlDataSource object as well. I need to be able to add a couple aditional
items to the list of items in the dropdownlists before the overall formview
is bound.

I currently get an error like "DropDownBlah has a SelectedValue which is
Invalid because it does not exist in the list of items." I have not been
able to figure out where to grab a reference to the dropdown and add the
additional options.

I have tried the following basic code, but it is not working.
**************
If UnitDetailForm.CurrentMode = FormViewMode.Edit Then
AssigneeDropDownList =
CType(UnitDetailForm.FindControl("ddUsers"), DropDownList)
AssigneeDropDownList.Items.Add(New ListItem("None", "None"))
End If
**************

Any tips would be appreaciated.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Just Getting Started with Python on MS XP Pro W. Watson Python 18 01-08-2007 09:09 AM
Help. Just getting started Eric C++ 8 02-02-2005 04:22 PM
Just getting started Dave ASP .Net 3 08-09-2004 04:37 PM
Just getting started looking into certifications... Marko MCSE 2 07-15-2003 03:19 PM
Re: Just getting started looking into certifications... Lady MCSE 2 07-15-2003 01:33 PM



Advertisments