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
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 |
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 |
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 |
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 |
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 |
If we remove web.config or machine.config from the application then, is this application will works?
Can you explain composite pattern?
Define satellite assemblies.
On Age field how many Asp.Net validation controls will be suit?
7 Answers NTTF Nettur Technical Training Foundation, Quest,
Which method is used to perform all validation at the page level?
0 Answers Sans Pareil IT Services,
Differentiate between early binding and late binding.
IN an ASP.NET Web application if there is any error, how can you debug?
You create an assembly to access data in a relational database. This assembly will be used by several ASP.NET applications on your Web server. You need to ensure that all your applications can access the assembly. Which two actions should you take (Each Answer: presents part of the solution.)? (Choose two) A . Run the Assembly Registration tool (Regasm.exe). B . Run the String Name tool (Sn.exe). C . Run the Installer tool (Intallutil.exe). D . Run the Global Assembly Cache tool (Gacutil.exe).
6 Answers CPCL, Syntax Softtech,
Is there any limit for query string? Means what is the maximum size?
What is the function used for removing an event listener?
How Session outproc in Sqlserver stored?
What is validation in asp.net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)