Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
How to retrieve Selected single table in DataList.?

Posted
Updated 12-Dec-11 22:59pm
v3
Comments
Manish.Insan 13-Dec-11 5:16am    
question is not clear... what do you mean by single table?
ythisbug 13-Dec-11 5:25am    
i mean to say..i Saved in sql table name as Registration ok..in registration table contains(FirstName,MiddleName,LastName.....etc) in Registration Table i saved five contacts..
(DataList in asp.net)
[firstname][MiddleName]
[linkbtnView]
when i click linkbuttonView i want to print only one users data in another page in datalist..how can i do dat..
ythisbug 13-Dec-11 6:23am    
anyone help yar
ythisbug 13-Dec-11 10:50am    
u people understood my question???

1 solution

you can do it using inhertance. first of all you need to create a class in which you need to create a virtual method with needed paramenter and write the code do connect database and fetch the value.


in your web form you need to inherite is using overide key word with same function name. and you can use same function on other page. if you want last recorded insert details on next page. you can store that in session and then use that and can call data using that try it.

you will get the solution.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900