-->
|
INTERVIEW QUESTIONS
MICROSOFT
ADO.NET 2.0
DETAILS
Question: 1,how to protect the cookies in particular textbox?it means in web page some text box allow cookies, some box does not allow cookies. how to do it?please reply me.
2,how to calculate the particular user hit our webpage?( no of times hit)
3,how to calculate no of online users of our webpage?
Answer: Cookies are small piease of code store separtetly .They have priority time maintainence to expire the data thease are done by expiration policy either sliding or abosolute.
|
|
|
Category |
ADO.NET 2.0 Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7068 users |
Added on |
5/21/2012 5:04:57 PM |
Views |
70140 |
Rate it! |
|
|
Question:
1,how to protect the cookies in particular textbox?it means in web page some text box allow cookies, some box does not allow cookies. how to do it?please reply me.
2,how to calculate the particular user hit our webpage?( no of times hit)
3,how to calculate no of online users of our webpage?
Answer:
Cookies are small piease of code store separtetly .They have priority time maintainence to expire the data thease are done by expiration policy either sliding or abosolute.
Source: CoolInterview.com
Answered by: Rahul | Date: 7/28/2008
| Contact Rahul
Use this code
// amke o when applciation start up time
public void Application_OnStart(object Sender, EventArgs E) { // Set our user count to 0 when we start the server Application("ActiveUsers") = 0; } // add every session start count public void Session_OnStart(object Sender, EventArgs E) { Session.Timeout = 10; Session("Start") = Now; Application.Lock(); Application("ActiveUsers") = (int)Application("ActiveUsers") + 1; Application.UnLock(); }
// subtract every session will end public void Session_OnEnd(object Sender, EventArgs E) { Application.Lock(); Application("ActiveUsers") = (int)Application("ActiveUsers") - 1; Application.UnLock(); }
// this code in your master page in make a lable in your top header private void page_load(object sender, Eventargs) { lblonline.text=int.parse(Application("ActiveUsers").toString()); }
thank you Source: CoolInterview.com
Answered by: siva | Date: 7/22/2009
| Contact siva
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is difference in an Abstract Class and an Interface.
|
View Answer
|
|
What is difference in Record set and Dataset ?
|
View Answer
|
|
Waht are the Advantages of ADO.Net?
|
View Answer
|
|
How to bind the controls(best practice) comboboxes to the data in the dataset ?
|
View Answer
|
|
What is the Best Practice for binding Controls [Data in the data grid is to be binded with the controls of some form ] ?
|
View Answer
|
|
How can we add a check box or a dropdown list to a column in a datagrid?
|
View Answer
|
|
list all the classes those are used for database connections between sql server and asp.net.
|
View Answer
|
|
What is main difference between ado and ado.net
|
View Answer
|
|
Differences between OLEDB SQL SERVER , OLEDBDOTNET PROVIDER ?
|
View Answer
|
|
How can we identify the controls which can be used for binding data?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All ADO.NET 2.0 Interview Questions & Answers - Exam Mode /
Learning Mode
|