Asp formview itemupdating
Description: An unhandled exception occurred during the execution of the current web request. When userclicks on "view page" ,new window is opened with dynamic url. I have "Preview" button when user click it , It takes url from invisible text box and goes to that link. Object reference not set to an instance of an object. I want to append exisitng value in Formview field "Custome ID" to url. When page is loaded I create link in text box which is invisible. I just need to take that vale and pass as querystring. Update Item, the modified item is shown on the form view but the changes are not reflected on the master Grid View. Hi, I am using Form View Contol, Text Box (Hidden ) and Submit button whose caption is "View Page" in my aspx page. When page loads I generate dynamic url in text box . This means that you will only be able to find IDLabel1 using this technique if the Form View1 is in Edit mode (e.g., using the Edit Item Template containing IDLabel1). You can only access the contents of the template for the current mode. The data row contains different content based on the template that is rendered for the current mode (specified by the Current Mode property). In the Data Bound method, you can use the Row property of Form View1 to programmatically access the Form View Row object that represents the current data row.
I am able to do generarting url dynamically, but dont know how icando rest of the things.
When userclicks on "view page" ,new window is opened with dynamic url. This means that you will only be able to find IDLabel1 using this technique if the Form View1 is in Edit mode (e.g., using the Edit Item Template containing IDLabel1).