C# Pagination
Page 1 of 111 Replies - 7499 Views - Last Post: 18 November 2009 - 09:23 AM
#1
C# Pagination
Posted 17 November 2009 - 09:25 PM
I am new to C#.NET.
Please help me.
I have designed a page. In that i have put a panel to show the data on clicking a button in the grid view.
there is no problem in gridview.
just i am not able to show the data in the panel.
Also please help me is there anything to do with pagination?
Replies To: C# Pagination
#2
Re: C# Pagination
Posted 17 November 2009 - 11:08 PM
and for pagination in grid view, just select the grid view in the design and click the glyph and then just check the enable paging
This post has been edited by ramesh866: 17 November 2009 - 11:10 PM
#3
Re: C# Pagination
Posted 17 November 2009 - 11:19 PM
ramesh866, on 17 Nov, 2009 - 10:08 PM, said:
and for pagination in grid view, just select the grid view in the design and click the glyph and then just check the enable paging
@Ramesh..
Thank you very much..
Ya i have put the question in the wrong way..
Thanx a lot again..

indranilbasu, on 17 Nov, 2009 - 10:15 PM, said:
ramesh866, on 17 Nov, 2009 - 10:08 PM, said:
and for pagination in grid view, just select the grid view in the design and click the glyph and then just check the enable paging
@Ramesh..
Thank you very much..
Ya i have put the question in the wrong way..
Thanx a lot again..

Hi Ramesh,
One more query.
Please tell me how to insert a button in a gridview column..
and at the same time i want the details to be showed on clicking the button but it should not come from the database.(SQL SERVER 2008)
#4
Re: C# Pagination
Posted 17 November 2009 - 11:27 PM
#5
Re: C# Pagination
Posted 17 November 2009 - 11:41 PM
ramesh866, on 17 Nov, 2009 - 10:27 PM, said:
Ok.
Actually i am developing a Travel Application System.
I am tryin to make a dashboard where a manager on clicking a button would be shown with a form that is in a panel.
So by clicking on a button which is renamed as "Show Details" he will be able to se the list of the travel requisition made.
Therefore on clickin Approve button the manger approves the associate's reqisition.
i have attached the screen shot of the design.
Please help me and advise me as i am a beginner in C# ASP.NET
#6
Re: C# Pagination
Posted 17 November 2009 - 11:52 PM
#7
Re: C# Pagination
Posted 18 November 2009 - 12:14 AM
aah itz lyk the manager can see the details of all the travels made by the associate by clickin on the button(Show Details).Now again on this click he would be provided with a pop up window where he gets the following field :
ReqID
Associate Id
Associate Name
Travel FromDate
Travel ToDate
Advance Taken(Radio Button)
Advance Amount
There is also a APProve and Reject Button.
On clicking this Approve Button it is stored.
[P.S. i am tryin to attach..but its failed givin this message : "Upload failed. You are not permitted to upload a file with that file extension."
#8
Re: C# Pagination
Posted 18 November 2009 - 12:33 AM
#9
Re: C# Pagination
Posted 18 November 2009 - 12:41 AM
ramesh866, on 17 Nov, 2009 - 11:33 PM, said:
ya it will do.but if i click on the button in the panel it has to show another page.am i sayin it properly???
#10
Re: C# Pagination
Posted 18 November 2009 - 12:51 AM
#11
Re: C# Pagination
Posted 18 November 2009 - 01:25 AM
ramesh866, on 17 Nov, 2009 - 11:51 PM, said:
ya exactly..
can u please guide me as how to do it in c# as i am a novice.
indranilbasu, on 18 Nov, 2009 - 12:23 AM, said:
or am i supposed to do with javascript??
#12
Re: C# Pagination
Posted 18 November 2009 - 09:23 AM
Server.Transfer("Default3.aspx");
after you go to the next page in the page load event this code comes
TextBox txt = (TextBox)Page.PreviousPage.FindControl("TextBox1"); TextBox1.Text = txt.Text; string s = ConfigurationManager.ConnectionStrings["masterConnectionString"].ConnectionString; SqlConnection cn = new SqlConnection(s); cn.Open(); SqlCommand cmd = new SqlCommand("select * from radio where names='" + TextBox1.Text + "'", cn); DataTable table = new DataTable(); SqlDataAdapter adp = new SqlDataAdapter(cmd); adp.Fill(table); GridView1.DataSource = table; GridView1.DataBind(); cn.Close();
here what happens is what ever you type in the previuos form in getting stored in the next forms text box(you can change to your requriment) and based on that value the data is displayed.
hope it helps
This post has been edited by ramesh866: 18 November 2009 - 09:25 AM