Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
created two tables
1. Questions
2. Answers

In User Interface :
Question: Textbox
Description: Textbox(multiline)
Button:Post

i am able to insert data into questions table and able to retrieve onto repeater control
But the data into header template

how can i retrieve only one record from database and place in header template

my theme is to retrieve desired question and its respective comments on page load

What I have tried:

<asp:repeater id="rc" runat="server">
<header template></header template>
<item template="">
<%#Eval("Datase_ColumnName")%>

//here i am able to retrieve all the records from database


br mode="hold" />© waheed mohammedbr mode="hold" />
Posted

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