.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

i have 3 aspx pages: page1.aspx, page2.aspx, page3.aspx. i have one Database table Employee (Empname, Age, EmpId, mobile, Country) with 1000 records inserted. now i want to retrieve the records in page1.aspx only once and i should use this data between the 3 pages without using Session variable. How to achieve this ?

Posted By :sadiq     Posted Date :December 02, 2010    Points :15   Category :ASP.Net 
need help on this question

(More...)

What's the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?

  
CodeBehind is relevant to Visual Studio.NET only. If we use other editors like notepad we can go for src. (More...)

How many ViewState objects can be created on an aspx page ?

  
There is no limit. You can have any number of ViewState object on single aspx page. However more Viewstate objects, more slowly it loads. (More...)

Whether javascript in the aspx(inline javascript) requires to compile each time for every modification?

  
Not necessary just saving the aspx file and refreshing the browser is enough to get the updations (More...)

What does the EnableViewStateMac setting in an aspx page do?

  
EnableViewStateMac setting is a security measure in ASP.Net. It ensures the view state for a page not to tamper. To to so " EnableViewStateMac=true "is used. ASP.net detects the change in the value of view state sent to the browser when Postback action takes place and raises an error - "Validation of view state MAC failed". (More...)

How to rename Silverlight TestPage.aspx and TestPage.html?

  
Right click on the page and just rename it as per your requirement....
After that right on .aspx page and select "set as start up page"....
The run.... (More...)

If you 1Lakh records of employee in a table, then how will you get the 4th highest salary from the table?

  
SELECT TOP 1 * FROM [EmpTable] WHERE [salary] NOT IN (SELECT DISTINCT TOP 3 salary FROM [temp1] ORDER BY [salary] DESC) ORDER BY salary DESC (More...)

Is it possible to set SessionState to readonly mode? Readonly mode means, we can only read data from session but we can not write any data in session variable?

  
Yes, it is possible.
EnableSessionState property has a value "Readonly" which actually makes the session state read only.

Thanks. (More...)

You can also find related Interview Question to i have 3 aspx pages: page1.aspx, page2.aspx, page3.aspx. i have one Database table Employee (Empname, Age, EmpId, mobile, Country) with 1000 records inserted. now i want to retrieve the records in page1.aspx only once and i should use this data between the 3 pages without using Session variable. How to achieve this ?  below: 

Is it possible to share session information among ASP and ASPX page?

  
No,it is not possible as both of these are running under different processes. (More...)

Can two different programming languages be mixed in a single ASPX file?

  
ASP.NET's built-in parsers are used to remove code from ASPX files and create temporary files. Each parser understands only one language. Therefore mixing of languages in a single ASPX file is not possible. (More...)

Can we pass more than one querystring parameter with hyperlink in .aspx file?

  
Yes we can.
Code can be like,
NavigateUrl='<%# "Page.aspx?param1=" & _
DataBinder.Eval(Container.DataItem, "param1") & _
"¶m2=" & DataBinder.Eval(Container.DataItem, "param2") %>'
>Hyperlink
Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend