Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Mona Mehta   on Nov 29 In Asp.net Category.

  
Question Answered By: Tammy Sanders   on Nov 29

Sorry it has taken me a while to reply I only get to
work on this project in my spare time.

Here is a link that will show you what I did in order
to get the drop down to work inside the repeater:

www.dotnet247.com/247reference/msgs/9/46787.aspx

The reason that I am using a repeater  is so I can have
the flexiblity of a table (i.e. colspan, multiple
headers) I don't no of a way to do this with other
controls.
The drop down is the only thing that is being update
in the repeater. The reason why I wanted to put the
drop down in the repeater is so I could have the
column that held the drop down span multiple columns
and line up correctly.

The next problem that I have ran into with nesting the
drop down in the repeater is that when I click  the
save button to take what has been selected  in the drop
down and save it to the database it get this error:
Object reference not set to an instance of an object.

Here is the line of code that it errors on:
Row.Item("InsuranceStatus") =
CType(FindControl("DD_InsurPayAction"),
DropDownList).SelectedItem.Value

Any ideas?

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Dropdown nested in repeater Or get search suggestion and latest updates.


Tagged: