Update value of Sitecore Fieldrender Control - asp.net

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/

Related

C# ASP.NET 6.0 getting button text from shared page to index page as variable

I have 4 buttons in my layout page (shared page) and I want to use these buttons' text value upon click event. The text value needs to be used inside the index page, in order to execute C# code.
I have been looking everywhere for a solution to that. I would appreciate any ideas.
I want to create a single page web application, that changes data in index page, based on the clicked button in layout.

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

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.

CKEDITOR ASP.NET Custom Properties

I am using CKEDITOR in ASP.NET and I would like to create custom configurations on the buttons. This means that when the user presses the image button , and the image dialog pops on, automatically some fields like 'Stylesheet classes' are ready written. This means that the client does not have to input such details every time he/she inserts an image but such content will be already predefined in the editor.
How can be this done?

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.

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