saving data in asp.net form temporarily - asp.net

I have one requirement of saving data in asp.net form temporarily. I want to re load the saved data in form controls, if on any error or session time out.
Can any body give solution for this?
Thanks in advance.

Save the data in hidden fields as you enter data in hidden fields on key press..Use angular-js for this which makes your work easy,since it supports two way binding.
Upon session expiry retrive the data in hidden fields to the user controls.
The second option is Use Update Panel in the ajax tool kit.
Happy Coding

Related

Displaying data in a datagrid in an Alfresco task form

I have a json array variable defined in my activity workflow definition. Now, I need to present the data of the json array in a datagrid inside a form task. One of those columns should be a check entry filed so that the user may select some rows. After that, I need to get back that data in a subsequent form task (so I need the data to be updated in the json variable so I can read it back, mainly the user selected checks).
Any example to accomplish this? I didnt find almos nothing relating with using datagrids in Alfresco task forms.
thank you!
Miguel

Placing data from sql table to userform and make some field to readonly and allow edit to remaining in asp.net

I am a beginner in asp.net .now I am creating a website in Asp.net .And I would like to place a set of data from sql table to user form. And I want to make some data as read only in user form and user can edit remaining data .then a button click will cause to update the edited data in the same table.
i found many article for querying data from sql and updating the data.my problem is to place the data in the form and make the some data like "employee-id " as read only to user.and allow remaining data to edit.
any idea or solution will be so helpful.

Submit batch entry in datatables.net

I am using ASP.Net webform for my development and currently implement datatables.net. to perform some excel like data entry job. For more info, please go to http://datatables.net/release-datatables/extras/KeyTable/editing.html. I also added some add row and delete row functions at client side. Now I am stuck on how to push the entire table data to the server. It's look like excel and user can make the amendment. Whenever they plan to save the data, the user just need to click on save button and the entire table info shall be submitted to the server. For your information, no input textbox in this case because I am using keytable feature.
Please help!
Thanks.
I believe this datatables.net server side usage page has sServerMethod which may be fullfill your requirement. The data are passing in JSON format to server. In server side you can parse the JSON back to your DTO to update your data.
You can SqlBulkCopy for faster insertion of data in the database. You can search code for that on net.
You'll need to create an object collection of some kind in your handler to temporarily save the data into some kind of structure or object. What I did was append a row_id to the table row in the fnRowCallback of the Datatable, then grabbed it in the submitdata property of the Editable plugin, sending it to the server. Once there, I store it in an object, add it to the collection, and let editable update the table.
When you are ready to submit, fire it off, go to the handler, and send all of the data in the collection to the server as a mass update.

Working with Calendar in Data list in asp.net

I am using datalist to display data from the database,I have got three fields whose Data Type is datetime, What I was looking for is to display a calendar in the datalist , with date selected(coming from database), Also the user can use that calendar to change date , which should update the date field in the database when update is clicked,
Is there any way to integrate calendar in the datalist as perform the above requirements.
Any assistance or suggestions will be appreciated
I'm not specifically promoting Jquery-UI, as there are many js-driven calendars out there, but I've been using it in many different scenarios, and I'm sure it can work in whatever scenario you can imagine: http://jqueryui.com/demos/datepicker/
That control has events, in particular onClose and onSelect. When those happen, you have your date. You can send it to the server either via AJAX or via form-submit (postback).
Also, ASP.NET has a built-in calendar control that supports postbacks, if that's what you are looking for.

Open a form from an InfoPath form with values from the first to the new

I have been working with InfoPath forms for the last two months or so, and I now have the following requirement:
I have a form which is filled in by certain users, then sent to other users. The latter, after viewing the data on the form, have the possibility to either Accept & Reply or Reject.
When they click on Accept & Reply, another form is triggered, in which some of the fields are repeated. I would like to know how to get the values from the first form to that triggered form.
Let me precise that I am not using SharePoint; they are accessing the forms from a shared folder on the LAN.
Thanks in advance for your help on this.
Yusuf
That I know of you can't directly access the new form since Infopath keeps all instances separate (SDI vs MDI). You need a "middle" storage location. A database isn't a bad idea if you have one available - when the user clicks the button, data is saved to the DB, then the new form is opened and reads from the DB on form load.
Another way we have used (which is equally as cumbersome), is to use a blank copy of the form itself (not the original xsn). It is bad because you have to manually keep the blank copy up to date if you change the template but works well for what you are doing. Only recommended if you REALLY need those fields populated and you don't have a DB you can use for temp storage.
Open your form template like you are going to fill in the form but just save a "blank" copy to the share (it will save as xml). The process behind the button on your source form is: create a unique copy of the blank form (we store them all in a subfolder that gets cleaned out nightly), programmatically open and edit that new blank copy (easy since it is xml) putting data in the correct fields, save the edited copy, open the edited copy for the user instead of the xsn.

Resources