Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 02, 2012 08:40 AM by tusharrs
May 02, 2012 08:32 AM|LINK
I'm very new in asp.net(C#). I need a help.
In my web page I've created multiview. There are View1, View2,View3. I want to show data from one view to another view.
That means in View 2 I've created "Customer" form and in View 3 I've created "Customer Contact" form. I want to show "CustomerID" and "CustomerName" of "Customer" form in "Customer Contact form.
In "Customer" form there are two buttons they are "Add" and "Add Contacts". By clicking "Add" button all datas of "Customer" form are saved in database and show a messege that "data saved successfully". And by clicking "Add Contacts" autometically go to
"Customer Contact" form. In this form I want to use the data of texbox of "Customer ID" and "Customer Name". Please Help me.
May 02, 2012 08:40 AM|LINK
use query string while redirecting to contacts form
when you click on contacts form, pass the customerid to contacts form
Response.Redirect("~/Contacts.aspx?Id=" + CustomerId);
and on pageload of contacts for retrieve the customer id as
String CustomerId = "';
if (Request.QueryString["CustomerId"] != nul )
CustomerId = Request.QueryString["CustomerId"];
use this Customerid to get the information of customer and display on contacts form