Click here to Skip to main content
15,881,588 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to disable the back button of browser ? Pin
D4ever31-Aug-08 0:00
D4ever31-Aug-08 0:00 
QuestionHow we can frequently Update data in ASP.NET page? Pin
piyush_patel111128-Aug-08 0:18
piyush_patel111128-Aug-08 0:18 
AnswerRe: How we can frequently Update data in ASP.NET page? Pin
Christian Graus28-Aug-08 0:22
protectorChristian Graus28-Aug-08 0:22 
AnswerRe: How we can frequently Update data in ASP.NET page? Pin
eyeseetee28-Aug-08 0:49
eyeseetee28-Aug-08 0:49 
GeneralRe: How we can frequently Update data in ASP.NET page? Pin
Christian Graus28-Aug-08 0:57
protectorChristian Graus28-Aug-08 0:57 
GeneralRe: How we can frequently Update data in ASP.NET page? Pin
eyeseetee28-Aug-08 1:23
eyeseetee28-Aug-08 1:23 
GeneralRe: How we can frequently Update data in ASP.NET page? Pin
Manas Bhardwaj28-Aug-08 5:08
professionalManas Bhardwaj28-Aug-08 5:08 
QuestionDataview Paging Pin
reogeo200828-Aug-08 0:13
reogeo200828-Aug-08 0:13 
Hi all,

This is my dataview

<asp:GridView ID="bcgrid" runat="server" DataKeyNames="testi_ID" EditRowStyle-Font-Size="XX-Small" EditRowStyle-Font-Bold="true" Font-Names="Verdana" Font-Size="XX-Small" ForeColor="DimGray" Width="368px" AutoGenerateColumns="False" HorizontalAlign="Center" >
<Columns>
<asp:TemplateField HeaderText="Language"><ItemTemplate>
<asp:Label ID="p" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.testi_Language").ToString() %>'>
</asp:Label></ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Description"><ItemTemplate>
<asp:Label ID="Lab" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.testi_Description").ToString() %>'></asp:Label>
</ItemTemplate> </asp:TemplateField>
<asp:TemplateField HeaderText="Category"><ItemTemplate>


<asp:Label ID="Lab" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.testi_Category").ToString() %>'></asp:Label>
</ItemTemplate> </asp:TemplateField>
<asp:TemplateField HeaderText="Title"><ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.testi_Title").ToString() %>' NavigateUrl='<%#GetUrl(DataBinder.Eval(Container, "DataItem.testi_Name").ToString()) %>'></asp:HyperLink>
</ItemTemplate> </asp:TemplateField>
</Columns>
<EditRowStyle Font-Bold="True" Font-Names="Verdana" Font-Size="XX-Small" />
<RowStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />

</asp:GridView>

This is the function for databinding


public void GetData()
{
// Create Instance of Connection and Command Object
SqlConnection conn = new SqlConnection("data source=ADMIN-6CB835BC2\\SQLEXPRESS;initial catalog=Gospel;integrated security=SSPI;Trusted_Connection=Yes");
conn.Open();
string sqlselect = "select * from Testimonial";
SqlCommand myCommand = new SqlCommand(sqlselect, conn);
SqlDataReader result = myCommand.ExecuteReader();
bcgrid.DataSource = result;
bcgrid.DataBind();
if (bcgrid.Rows.Count == 0)
{
bcgrid.Visible = false;
lblInfn.Visible = true;

}
else
{
bcgrid.Visible = true;
}


}

How can i apply paging to this grid.I am totally confused .Help me out with detailed information. Cry | :((
AnswerRe: Dataview Paging Pin
Imran Khan Pathan28-Aug-08 0:18
Imran Khan Pathan28-Aug-08 0:18 
GeneralRe: Dataview Paging Pin
reogeo200828-Aug-08 1:16
reogeo200828-Aug-08 1:16 
AnswerRe: Dataview Paging Pin
The Web Developer28-Aug-08 0:23
The Web Developer28-Aug-08 0:23 
QuestionThird party date control Pin
Ramakrishna GS27-Aug-08 23:58
Ramakrishna GS27-Aug-08 23:58 
AnswerRe: Third party date control Pin
Ashfield28-Aug-08 1:28
Ashfield28-Aug-08 1:28 
Questionproblem connecting to my sql Pin
Krazy Programmer27-Aug-08 23:56
Krazy Programmer27-Aug-08 23:56 
AnswerRe: problem connecting to my sql Pin
Blue_Boy28-Aug-08 0:01
Blue_Boy28-Aug-08 0:01 
GeneralRe: problem connecting to my sql Pin
Krazy Programmer28-Aug-08 0:11
Krazy Programmer28-Aug-08 0:11 
GeneralRe: problem connecting to my sql Pin
Blue_Boy28-Aug-08 0:15
Blue_Boy28-Aug-08 0:15 
AnswerRe: problem connecting to my sql Pin
NeverHeardOfMe28-Aug-08 0:17
NeverHeardOfMe28-Aug-08 0:17 
GeneralRe: problem connecting to my sql Pin
Krazy Programmer28-Aug-08 0:24
Krazy Programmer28-Aug-08 0:24 
QuestionVisualWebGUI Pin
MatthysDT27-Aug-08 23:27
MatthysDT27-Aug-08 23:27 
AnswerRe: VisualWebGUI Pin
NeverHeardOfMe27-Aug-08 23:48
NeverHeardOfMe27-Aug-08 23:48 
QuestionStore ISeriable Object in ViewState ? Pin
Sandilian27-Aug-08 23:27
Sandilian27-Aug-08 23:27 
AnswerRe: Store ISeriable Object in ViewState ? Pin
Paddy Boyd28-Aug-08 2:20
Paddy Boyd28-Aug-08 2:20 
GeneralRe: Store ISeriable Object in ViewState ? Pin
Sandilian31-Aug-08 17:15
Sandilian31-Aug-08 17:15 
QuestionDataList Pin
mpavas27-Aug-08 22:27
mpavas27-Aug-08 22:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.