User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,489 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,715 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 2742 | Replies: 0
Reply
Join Date: Aug 2007
Posts: 23
Reputation: culebrin is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
culebrin culebrin is offline Offline
Newbie Poster

ControlParameter DropDownList not recognized on a ObjectDataSource

  #1  
Sep 21st, 2007
Hi Friends,

I'm having a kind of anoying problem, I have a ObjectDataSource with a Select with parameters, one of them receives its value from a DropDownList and the others from textboxes, this dropdownlist parameter seem to not working, and the textboxes are working fine...

The gridview just dont show anything, but when I change the dropdownlist parameter with a parameter with a defaultvalue starts to work.

I checked the passed dropdownlist parameter with javascript before send and works just fine

What do you recommend?

here's my code:

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetDataBy" TypeName="DataSet3TableAdapters.SUPERVISIONTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="TextBox1" DefaultValue="" Name="Param1" PropertyName="Text"
Type="DateTime" />
<asp:ControlParameter ControlID="TextBox2" DefaultValue="" Name="Param2" PropertyName="Text"
Type="DateTime" />
<asp:ControlParameter ControlID="DropDownList1" DefaultValue="" Name="Param3" PropertyName="SelectedValue"
Type="string" />
<asp:ControlParameter ControlID="TextBox3" DefaultValue="" Name="Param4" PropertyName="Text"
Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 3:14 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC