Problem in dropdownlist value.

Discussion in 'ASP .Net Mobile' started by skaliyamoorthy@gmail.com, Feb 27, 2006.

  1. Guest

    Hello Gurus,

    I am new to .net development. We are developing asp.net Mobile
    application. in that we have dropdownlist. for databinding to the
    dropdownlost we are using the the following code,


    Dim dsDefects As New DataSet

    strSQL = "select
    Shortdesc,LongDesc,convert(varchar(20),Codeid)+'_'+isnull(userdefinedvalue2,'0')
    CodeID,Sortorder from codes where CodeCategoryID = 2 and
    userdefinedvalue1 = 2 order by sortorder"
    dsDefects = oUtilities.GetDataSet(strSQL, "DefectLists")


    nlst_Defect.DataSource = dsDefects
    nlst_Defect.DataMember = "DefectLists"
    nlst_Defect.DataValueField = "CodeID"
    nlst_Defect.DataTextField = "LongDesc"
    nlst_Defect.DataBind()
    nlst_Defect.Items.Insert(0, "Select One")

    Once the page is loaded in the browser, when i looked into "view
    source", the dropdownlist value is like "0,1,2,3...." instead of the
    actual "CodeID" value.

    what could be the issue. I am really stuck in here. I tried the same
    code in regular asp.net web application, everything is looks fine. I
    wanted to do some client side validation on this dropdownlist box.
    thats why, Please help me out.

    Thanks in Advance.

    Saran.
     
    , Feb 27, 2006
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Antonio D'Ottavio
    Replies:
    1
    Views:
    2,898
    Antonio D'Ottavio
    Sep 19, 2005
  2. Harry
    Replies:
    1
    Views:
    634
    Ather Ali Shaikh
    Jan 17, 2004
  3. mr2_93
    Replies:
    1
    Views:
    3,889
    mr2_93
    Oct 2, 2005
  4. =?Utf-8?B?ZGVuIDIwMDU=?=

    No Value: DropDownlist in EditItemTemplate Gridview Problem

    =?Utf-8?B?ZGVuIDIwMDU=?=, Oct 11, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    605
    =?Utf-8?B?ZGVuIDIwMDU=?=
    Oct 11, 2006
  5. Problem in dropdownlist value.

    , Feb 27, 2006, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    168
  6. Jorge
    Replies:
    1
    Views:
    282
    Mike Moore [MSFT]
    Nov 13, 2003
  7. Antonio D'Ottavio
    Replies:
    1
    Views:
    365
    Antonio D'Ottavio
    Sep 19, 2005
  8. den 2005
    Replies:
    0
    Views:
    329
    den 2005
    Oct 11, 2006
Loading...