Click here to Skip to main content
15,899,754 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiongrid view problem Pin
nikhil123418-Mar-07 23:39
nikhil123418-Mar-07 23:39 
AnswerRe: grid view problem Pin
ritu432119-Mar-07 0:24
ritu432119-Mar-07 0:24 
GeneralRe: grid view problem Pin
nikhil123419-Mar-07 0:36
nikhil123419-Mar-07 0:36 
GeneralRe: grid view problem Pin
ritu432119-Mar-07 0:39
ritu432119-Mar-07 0:39 
QuestionSession Variable Pin
vengaqua18-Mar-07 23:36
vengaqua18-Mar-07 23:36 
AnswerRe: Session Variable Pin
ritu432119-Mar-07 0:26
ritu432119-Mar-07 0:26 
AnswerRe: Session Variable Pin
enjoycrack19-Mar-07 0:38
enjoycrack19-Mar-07 0:38 
Questiondropdownlist Pin
Oga M18-Mar-07 22:31
Oga M18-Mar-07 22:31 
I really don't know what's wrong with my dropdownlist,they can't display the values in the control.Have connected my application in to the database and entered the values into the fields,please check my code and tell me what might be the problem
**********
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Page.IsPostBack = False Then
LoadClientSite()

End If
End Sub
*******
Private Sub LoadClientSite()
Dim ds As New Data.DataSet
Dim objdata As Businesslayer.ClientSite = New Businesslayer.ClientSite
ds = objdata.GetUsers
cmbClientSite.DataSource = ds
cmbClientSite.DataBind()
cmbClientSite.Items.Add(New ListItem("Select Client Site", ""))
cmbClientSite.Items.Item(cmbClientSite.Items.Count - 1).Selected = True
End Sub
*******
My class

Public Function GetClientSite() As Data.DataSet

Dim strSQL As String
Dim obj As Datalayer.Database = New Datalayer.Database

strSQL = "Select Client_id,Client_site from ClientSite(nolock) "
GetClientSite = obj.GetDataSet(strSQL)
obj.Close()
Exit Function
End Function

**********

CONTROL-PROPERTY

DataTextField=ClientSite
DataValueFielld_ClientSite_Id

Ola m
AnswerRe: dropdownlist Pin
Tirthadip18-Mar-07 22:52
Tirthadip18-Mar-07 22:52 
GeneralRe: dropdownlist Pin
Oga M18-Mar-07 23:06
Oga M18-Mar-07 23:06 
AnswerRe: dropdownlist Pin
Harini N K18-Mar-07 23:09
Harini N K18-Mar-07 23:09 
AnswerRe: dropdownlist Pin
Sun Rays18-Mar-07 23:12
Sun Rays18-Mar-07 23:12 
AnswerRe: dropdownlist Pin
vengaqua18-Mar-07 23:24
vengaqua18-Mar-07 23:24 
Questionserver control datagrid with ajax Pin
aminowest18-Mar-07 22:12
aminowest18-Mar-07 22:12 
QuestionASP.NET Pin
vineethuae18-Mar-07 21:24
vineethuae18-Mar-07 21:24 
QuestionAdd and update TreeView Pin
nannapanenikamalnath18-Mar-07 21:19
nannapanenikamalnath18-Mar-07 21:19 
AnswerRe: Add and update TreeView Pin
Frank Kerrigan19-Mar-07 1:35
Frank Kerrigan19-Mar-07 1:35 
QuestionTreeView HTML code Pin
nannapanenikamalnath18-Mar-07 21:10
nannapanenikamalnath18-Mar-07 21:10 
QuestionHow to Convert existing C# Windows Application to C# Web Application.. Pin
MPS_DotNet18-Mar-07 21:08
MPS_DotNet18-Mar-07 21:08 
AnswerRe: How to Convert existing C# Windows Application to C# Web Application.. Pin
V.18-Mar-07 23:35
professionalV.18-Mar-07 23:35 
AnswerRe: How to Convert existing C# Windows Application to C# Web Application.. Pin
Colin Angus Mackay19-Mar-07 1:21
Colin Angus Mackay19-Mar-07 1:21 
AnswerRe: How to Convert existing C# Windows Application to C# Web Application.. Pin
Dave Kreskowiak19-Mar-07 1:44
mveDave Kreskowiak19-Mar-07 1:44 
AnswerRe: How to Convert existing C# Windows Application to C# Web Application.. Pin
Vasudevan Deepak Kumar19-Mar-07 5:33
Vasudevan Deepak Kumar19-Mar-07 5:33 
QuestionSalvaging source code with Reflector, recompiling code with changes. Pin
Nostromo7718-Mar-07 19:53
Nostromo7718-Mar-07 19:53 
AnswerRe: Salvaging source code with Reflector, recompiling code with changes. Pin
Sun Rays18-Mar-07 20:23
Sun Rays18-Mar-07 20:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.