strange question about DropDownList

D

Detective

hi:
when i used code below and bind with access i could get the resoult what i
want, but when i use sqlserver i got an exception about
System.ArgumentOutOfRangeException which argument is lev.how can i solve this
problem ,thank you:
///////////////////////////////////////////////////////////////////////////////////////
<asp:DropDownList id="DropDownList2" Width="144px"
<asp:ListItem>test1</asp:ListItem>
<asp:ListItem>test2</asp:ListItem>
</asp:DropDownList>
 
A

Axel Dahmen

From what I see, the value you provide in the "lev" column is neither
"test1" nor is it "test2", have you checked your SQL? Perhaps you've got
different data in you SQL Server database than you had in the Access
database.

HTH,
Axel Dahmen


--------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top