Display long Description in asp .net with Next Page(Page wise) - asp.net

I want to display a very long description data retrieved from the database using asp .net. That Description should be displayed in Page Wise and all the details wouldn't be seen in a single page. When user clicks on "Next Page" , that page will show the next details and so on towards the end of the total text/description.
Is there any such control where we can show this type?
Please answer me.

If you are showing data in a gridview, then select gridview of design page, go to solution explorer and make a change in AllowPaging from no to yes.

Related

Update value of Sitecore Fieldrender Control

I have a Sitecore FieldRender control on a web page that is only displayed when the user is in Page Editor mode. This FieldRender control displays the "raw valus" of a CheckList content item. (It is showing the pipe-delimited list of the ID's that are checked in the CheckList.)
Can I programatically update (add/remove URI values) that are displayed in the FieldRender when the user is in the Page Editor's Edit mode? I don't want to automatically write to the database because the user could always choose to click on the Close button and not save their changes.
Sounds to me like a perfect place to use an Edit Frame:
http://briancaos.wordpress.com/2011/11/28/using-sitecore-editframe-in-pageedit/

ASP.net Using a Session Varriable to move a GridView SelectedDataKey to another page

Help please!
I am pulling out what little hair I have left over this and can't find an answer.
I am attempting to move the selected row in a grid view to another page and use the SelectedDataKey or the primary key value of the selected row to indicate what data should be displayed in a grid view on another page. This is the last little bit of a school project that I can't figure out.
What I am doing on the first page is to use a button click event to set a session variable that looks something like this. Session["Select"] = GridView1.SelectedDataKey; The button will then send the user to the next page. Response.Redirect("CustomerAccounts.aspx");
Once on the next page I want to use the primary key selected on the first page to show only the data with a coresponding value on the second page by using a where statement in the next gridview. So I am setting the [CustomerID]=? Session("Session["Select"])
Am I setting up the where correctly in the second gridview?
I like setting up such things with querystrings.
I made a video tutorial on youtube doing just that a while back
http://www.youtube.com/watch?v=HRjZ_0JpO2M&list=UUgtKyNvllU9E6c2Mi8OtzCQ&index=5&feature=plcp
I also made a tutorial showing how to load the detail gridview nested in the master gridview with jquery
http://www.youtube.com/watch?v=nJp14o_1wZQ&list=UUgtKyNvllU9E6c2Mi8OtzCQ&index=4&feature=plcp

How to update only the part of page

I have several combo boxes and labels. when a user select any item from the combo box, the corresponding value will be retrieved from database and will be shown on the label. I have done these part successfully.
But my query is, when I select any item from the combo box, the whole page posts back to the server (AutoPostBack set to True.)
is it possible to post back only a part of page not the whole page (i.e. only combo box controls may be posted back to server instead of whole page)?
You could use AJAX to achieve that. In ASP.NET there is the UpdatePanel control which might help you.

Regarding to save previous record in asp.net

Hi
I have one label for question, radiobuttonlist for their answers, next button to move next question & previous button. I am displaying one question per page after clicking next button next question appears, but when i click previous button previous question appears.
But i want previous question with earlier selected answer when i click to previous button.
Asp.net c# Thank you.
Either store and load Question and answer values in the session.
or have one page with a multiview and swich views when navigating between 'pages' this way the viewstate information will be preserved.
You can use asp.net wizard too...
Wizard Class
Wizard Web Server Control Overview
Walkthrough: Advanced Use of the ASP.NET Wizard Control

update gridview and go back to the previous page

I have a gridview, getting data from sql server, there is an Edit link to get the detailed information for example, for a user from database.
this link open a new page with detailed information and when I click the updated button,I want to go back to the same page with that users informaton.
I set the page size to 10, it means I can see only 10 users per page,and if I click the edit link on page 25,and update the users info, I want to go back to page 25.
Should I use viewstate or gridview has any commnad to go back to the same page? the code is written in ASP.net C# sqlserver,
Thanks in advance
The gridview control will not provide this functionality.
Viewstate will only help persist data between postbacks of the same page (primarily).
Session state could be used to save the pagesize/pagenumber details onclick of the grideview edit before forwarding to the edit page. This can be re-processed back on loading of the view page.
My preference would be to store the values in the querystring. So on clicking edit, the pagesize and number are passed to the edit page (i.e edit.aspx?itemid=1&psize=10&pindx=25).
Then on finishing edit, the page number and size are based back to the view page for processing (view.aspx?psize=10&pindx=25)

Resources