What is sequence of code in retrieving data from database?
Answer Posted / chandra
system.data.oledb
dim oledb as new oledbconnection
oledbconnection1.open()
dim com as new oledbcommand("select empname from emp where
empid=100".oledbconnection)
dim dr as oledbdatareader=com.executereader()
if dr.read() then
textbox1.text=dr(0)
end if
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Diff between web user control and web custom control?
What is the life cycle of an asp.net page?
How do you identify that the page is postback?
What is runat?
How does asp page work?
What is view state and how it works in asp net?
What is the difference between web.config and machine.config in ASP.NET?
What is difference between session and cookie?
What is the difference between typeof() vs gettype()?
What is difference between Lambda Expression and LINQ in ASP.NET?
How do you open a page in a new window?
Explain authorization levels in .net ?
Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?
What are Master Pages in ASP.NET?
What is session and application variable in asp net?