Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


One application have three forms for registration .submit
button is at third form.after filling three forms only u
have to click submit button.After clicking the submit
button all the values in first,second& third form saved on
sql server.how to handle this situation .

Answers were Sorted based on User's Feedback



One application have three forms for registration .submit button is at third form.after filling th..

Answer / anand nethala

Create a class that contains properties that are mapped to
the fields in all the 3 pages.
In first page create an instance of the class and fill the
corresponding properties on the class to the fields values
in the page. and transfer the page to 2nd page using
Server.Transfer. In the second page retrieve the class
instance by using the Page.PreviousPage Property and you can
.In the same way you can do in the 3rd page and so on. when
u r saving the details to the DB..u'l have the total object
that contains all the field values in all the traversed pages.

Is This Answer Correct ?    14 Yes 1 No

One application have three forms for registration .submit button is at third form.after filling th..

Answer / neha

Use Wizard Control

Is This Answer Correct ?    8 Yes 0 No

One application have three forms for registration .submit button is at third form.after filling th..

Answer / nitin

By using Out-of-process session state management.

first of all we store all details of page 1, 2 and page 3
in session objects and then we use out-of-process session
state management to store sessions in sqlserver by enabling
web.config file
in web.config file we use

<sessionstate mode="SqlServer" path="sqlserver path"/>

Is This Answer Correct ?    8 Yes 2 No

One application have three forms for registration .submit button is at third form.after filling th..

Answer / sujatha

Create One Class File add Property to set the values
like that
Public Class cls
Private _Customerid As String
Public Property Customerid() As String
Get
Return _Customerid
End Get
Set(ByVal Value As String)
_Customerid = Value
End Set
End Property
end class
in the coding side
we can create instance for that class assign the given
values
Public Install As New clsInstall
Install.Cutomerid= txtAddress.Text
we can assign all values in one class after that click
submit button we can get values from the class and store it
in sql server
Dim custmerid as string
customerid = Install.Address

Is This Answer Correct ?    8 Yes 3 No

One application have three forms for registration .submit button is at third form.after filling th..

Answer / rishi

we also use hidden fields to store the values of one form
to the another and so on this is a lenghty code but i works
fine!!!

Is This Answer Correct ?    2 Yes 3 No

One application have three forms for registration .submit button is at third form.after filling th..

Answer / ravi

Use cookies.
store the first two pages information in cookies and then
get the stored information on third page and store to database.

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More ASP.NET Interview Questions

What are the different types of Session state management options available with ASP.NET?

1 Answers  


How do you create a permanent cookie?

8 Answers   Siebel Systems,


What is the difference between a multi-layer and multi-tier applications?

0 Answers   Microsoft,


When we are requesting a new URL through Response.Redirect() the new page wil open on the new browser window or it wil open in the same window? If we use Server.Transfer() what wil happen?

1 Answers  


Is there any limit for query string? Means what is the maximum size?

0 Answers  


What is application in asp net?

0 Answers  


What are different templates available in Repeater,DataList and Datagrid ?

1 Answers  


When a dropdownlist has been added by some records and it has been binded why it is not executing i'm facing this error pls help me ? if (is!pageposback) { arraylist books = new arraylist; books.add ("gone with the wind"); books.add ("rahulsriramprakash"); books.add ("vishal"); dropdowndisplay.datasource=books; dropdowndisplay.databind(); } The error is : 1) The dropdowndisplay does not exist.

5 Answers   Netsweeper,


A brief difference between Session and Cookies in asp.net

5 Answers   HCL, HCL Comnet,


What is the difference between response.redirect and server.transfer?

0 Answers  


Which adapter should you use, if you want to get the data from an access database?

0 Answers  


What is the use of session?

0 Answers  


Categories