SharePoint Custom Display and edit list item forms -


i'm working on custom forms. have created pages layoutspagebase , loading fields have set.

my issue on edit , display forms getting data of item user has requested edit or display.

how data of item?

thanks

truez

go on sharepoint in order show item data. both display forms , edit forms start reading query string value "id":

string stritemid = request.querystring["id"]; 

you can add validations check if query parameter exists , if number , if item exists in list given id. finally, store valid itemid in integer variable , retrieve item follows:

splistitem item = mylist.getitembyid(itemid); 

continue fill in controls (labels in case of display forms , text boxes, drop downs, ... in case of edit forms) item fields below:

txttitle.text = item["title"] + string.empty; 

you need set item fields edit form on save button click event , update item.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -