Click here to Skip to main content
15,925,440 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncheckbox validation inside gridview using javascript Pin
santosh_gis15-Aug-07 20:28
santosh_gis15-Aug-07 20:28 
AnswerRe: checkbox validation inside gridview using javascript Pin
Imran Khan Pathan15-Aug-07 23:27
Imran Khan Pathan15-Aug-07 23:27 
Questionscrollbar for gridview Pin
biswa4715-Aug-07 20:26
biswa4715-Aug-07 20:26 
AnswerRe: scrollbar for gridview Pin
Michael Sync15-Aug-07 20:54
Michael Sync15-Aug-07 20:54 
QuestionHow to populate a Drop down list using javascript using ajax Pin
anujose15-Aug-07 20:26
anujose15-Aug-07 20:26 
AnswerRe: How to populate a Drop down list using javascript using ajax Pin
Michael Sync15-Aug-07 20:51
Michael Sync15-Aug-07 20:51 
Questionhow to populate data in ddl Pin
biswa4715-Aug-07 20:18
biswa4715-Aug-07 20:18 
AnswerRe: how to populate data in ddl Pin
Michael Sync15-Aug-07 20:47
Michael Sync15-Aug-07 20:47 
As I replied here,[^]

C#
<br />
SqlConnection dbConn = new SqlConnection(connectionString);<br />
<br />
dbConn.Open();<br />
<br />
SqlDataAdapter da = new SqlDataAdapter("SELECT empId,empName FROM emp", dbConn);<br />
DataSet ds = new DataSet();<br />
da.Fill(ds);<br />
<br />
dbConn.Close();<br />
<br />
DropDownList1.DataSource = ds.Tables[0];<br />
DropDownList1.DataTextField = "empName ";<br />
DropDownList1.DataValueField = "empId";<br />
DropDownList1.DataBind();


VB.NET
Dim dbConn As New SqlConnection(connectionString)<br />
<br />
dbConn.Open()<br />
<br />
Dim da As New SqlDataAdapter("SELECT empId,empName FROM emp", dbConn)<br />
Dim ds As New DataSet()<br />
da.Fill(ds)<br />
<br />
dbConn.Close()<br />
<br />
DropDownList1.DataSource = ds.Tables(0)<br />
DropDownList1.DataTextField = "empName "<br />
DropDownList1.DataValueField = "empId"<br />
DropDownList1.DataBind()

Hope it helps.

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)

QuestionWebService Problem Pin
jayarajmrj15-Aug-07 20:04
jayarajmrj15-Aug-07 20:04 
AnswerRe: WebService Problem Pin
Michael Sync15-Aug-07 20:12
Michael Sync15-Aug-07 20:12 
Questionthemes and skins asp2.0 Pin
saravanan0515-Aug-07 19:31
saravanan0515-Aug-07 19:31 
AnswerRe: themes and skins asp2.0 Pin
Michael Sync15-Aug-07 20:10
Michael Sync15-Aug-07 20:10 
QuestionC# to Vb.net Convert error in string place..., Pin
Member 387988115-Aug-07 19:10
Member 387988115-Aug-07 19:10 
AnswerRe: C# to Vb.net Convert error in string place..., Pin
cometburn00715-Aug-07 19:13
cometburn00715-Aug-07 19:13 
GeneralRe: C# to Vb.net Convert error in string place..., Pin
Member 387988115-Aug-07 19:37
Member 387988115-Aug-07 19:37 
GeneralRe: C# to Vb.net Convert error in string place..., Pin
koolprasad200315-Aug-07 21:05
professionalkoolprasad200315-Aug-07 21:05 
AnswerRe: C# to Vb.net Convert error in string place..., Pin
Michael Sync15-Aug-07 21:08
Michael Sync15-Aug-07 21:08 
AnswerRe: C# to Vb.net Convert error in string place..., Pin
Nouman Bhatti16-Aug-07 0:02
Nouman Bhatti16-Aug-07 0:02 
QuestionHow can i kill a mySQL server Process? Pin
cometburn00715-Aug-07 18:53
cometburn00715-Aug-07 18:53 
AnswerRe: How can i kill a mySQL server Process? Pin
Nouman Bhatti16-Aug-07 1:18
Nouman Bhatti16-Aug-07 1:18 
Questioncalling a codebehind function from javascript using ajax Pin
anujose15-Aug-07 18:52
anujose15-Aug-07 18:52 
AnswerRe: calling a codebehind function from javascript using ajax Pin
Imran Khan Pathan15-Aug-07 23:13
Imran Khan Pathan15-Aug-07 23:13 
QuestionHow to change a template and Skin to ASP.NET page Pin
mangrovecm15-Aug-07 18:27
mangrovecm15-Aug-07 18:27 
QuestionCheckboxlist Pin
n_gchaitra15-Aug-07 17:16
n_gchaitra15-Aug-07 17:16 
AnswerRe: Checkboxlist Pin
Michael Sync15-Aug-07 17:42
Michael Sync15-Aug-07 17:42 

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.