Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created a table at aspx page and i want to fetch data from sql database and store in table how i will do this because it does not have id
Posted
Comments
Mohamed Mitwalli 27-May-12 9:35am    
Why you are not using Gridview ??
Rini Agrawal 28-May-12 12:50pm    
because in grid veiw i cant place textbox and i have place textbox also with that data

1 solution

i have created a table at aspx page and i want to fetch data from sql database and store in table how i will do this because it does not have id
What's the problem? You need an ID for unique identification of a row if needed, as such it's fine for retrieving data as is.

Connect DB by using a Connection String[^] and then get data. Regarding the data communication read here: Accessing data with ADO.NET[^]
 
Share this answer
 
Comments
Rini Agrawal 28-May-12 12:59pm    
i m able to retrieve data from database but not able to store in html table can u please help me?
Sandeep Mewara 28-May-12 13:15pm    
Explain.

Why not using a Grid to directly bind the datatable retrieved from DB to it? In HTML, grid is rendered as a table only.
Rini Agrawal 29-May-12 3:34am    
but in my GUI in table i have textbox also which is not possible in grid veiw
Sandeep Mewara 29-May-12 5:02am    
Who said textbox in grid is not possible? Read about Template Fields.
jagdish vaghela 8-Nov-14 10:54am    
its possible to add textbox into the grid View ....

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