Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8393239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:43:49+00:00 2026-06-09T19:43:49+00:00

I am using Visual Studio 2010 along with the Infragistics WebDropDown tool for ASP.NET

  • 0

I am using Visual Studio 2010 along with the Infragistics WebDropDown tool for ASP.NET (which is still new to me). I am using the ‘drag-and-drop’ approach along with the setup wizards for design and simplicity (although I prefer manual programming).

I have a Web User Control (“ClientSelect.ascx”). Into that form I added the necessary ScriptManager, and I also dropped in a WebDropDown tool. Using the WebDropDown Wizard, I established the WebDropDown’s data source (which adds a connection to the database). The Wizard allows you to test the SQL query, and the results I got back are correct.

However, when the site loads, the values are “System.Data.DataRowView” instead of the actual value (“0001″,”0002” etc.). Is there anyway to “ToString()” these results. I’m just not seeing how my query returns the right results, but the WebDropDown outputs something else.

Here’s my code:

    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>

    <ig:WebDropDown ID="WebDropDown1" runat="server" Width="112px" 
     DataSourceID="SqlDataSource1" Height="20px">
    </ig:WebDropDown>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionString5 %>" 
    SelectCommand="SELECT DISTINCT clientNum FROM myTable">
    </asp:SqlDataSource>

Thank you in advance for any advice.

ANSWER: I changed the query to “SELECT DISTINCT clientNum AS clients FROM myTable”. I then added the attribute TextField = “clients”. Thanks to MrZulu and ggonslav

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:43:51+00:00Added an answer on June 9, 2026 at 7:43 pm

    place DataTextField="clientNum" as an attribute <ig:WebDropDown ...>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Visual Studio 2010 to create a setup project for my .NET
I'm using Visual Studio 2010 RTM with .NET/Entity Framework 4 RTM with a model
i am using visual studio 2010. i have a three dimensional structure array which,
I am using Visual Studio 2010. I've donwloaded an updated class (i.e. UpdatedClass.cs) which
Good Day All, I’m new to programming. I’m using Visual Studio 2010. I’m taking
I am using Visual Studio 2010 along with Team Foundation Server. I know that
I am into a Winforms application using C# and Visual Studio 2010 along with
Using Visual Studio 2010 .Net Framework 4 C# Linq to Entities Issue I would
I'm using Visual Studio 2010 with VB.NET, in a 4.0 project, with Team Foundation
We are using Visual Studio 2010 connected to Team Foundation Server 2010 and we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.