How we can bind textbox,listbox and datagrid to sql server
database in asp.net using visualstudio.net language (vb.net)?

Answers were Sorted based on User's Feedback



How we can bind textbox,listbox and datagrid to sql server database in asp.net using visualstudio...

Answer / ninad

TextBox1.Text=Dataset.Tables(0).Rows(0).Columns(0);
Textbox1.DataBind();

Is This Answer Correct ?    1 Yes 0 No

How we can bind textbox,listbox and datagrid to sql server database in asp.net using visualstudio...

Answer / kulal

hai..,
use a textbox and a dataset for fetching data from the
database,and bind to the textbox

textbox1.text = dataset.Tables(0).Rows(0).Item(1)
textbox1.databind

Is This Answer Correct ?    17 Yes 25 No

Post New Answer

More ASP.NET Interview Questions

Explain cookies with example.

0 Answers  


What is difference between datalist and gridview?

0 Answers  


Explain the main function of razor in asp.net? : asp.net mvc

0 Answers  


Differentiate session and cookie

1 Answers  


How many types of session state management options available in asp.net?

0 Answers  






You are using the try? catch block seen in the following code segment, but no exceptions are ever caught by the catch block. What is the problem? SqlConnection cn =new sqlConnection(strSQL); SqlDataSet ds; try { cn.open(); //perform the data processing steps ??.. } catch (OleDbException e) { ?.. } a) The exception class is wrong; it should be sqlErrors. b) The exception class is wrong; it should be sqlSyntaxExceptios. c) The exception class is wrong; it should be sqlExceptions. d) The exception class is wrong; it should be sqlExcptions.

2 Answers   Microsoft, Syntax Softtech,


How to disable validator control by client side JavaScript?

0 Answers  


Explain the life cycle of an ASP .NET page.

2 Answers  


Explain http handlers? Where we can use the http handlers?

0 Answers   Accenture,


Explain difference between friend and protected friend?

0 Answers  


What are clr?cts?cls?

4 Answers   e4e, HCL, Microsoft, Tata Communications,


Difference between dynamic query and static query ?

1 Answers   DELL,


Categories