<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>State Management</title><link>http://forums.asp.net/22.aspx</link><description>Managing ASP.NET state - ViewState, Application, Session, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=69&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Validation of viewstate MAC failed</title><link>http://forums.asp.net/thread/3479991.aspx</link><pubDate>Tue, 27 Oct 2009 17:08:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3479991</guid><dc:creator>Bill_H</dc:creator><author>Bill_H</author><slash:comments>18</slash:comments><comments>http://forums.asp.net/thread/3479991.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3479991</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi:&lt;/p&gt;
&lt;p&gt;We are seeing this error recently on a page containing both listview and a datalist control since upgrading to Net3.5 SP1. The machine key is correctly set in the webconfig and all other pages are working correctly. The webserver is not on a web farm, nor in a web garden. And I will repeat, a machine key is set correctly in the web.config.&lt;/p&gt;
&lt;p&gt;Enable or disable viewstate at the page level did not help. Disable viewstatemac at the page level did not help. We do not want to disableviewstatemac in web.config for security reasons. EnableEventValidation is set to false at the page level.&lt;/p&gt;
&lt;p&gt;We are seeing an encryptedviewstate with &amp;quot;&amp;quot; as a value in the page source. We have tried putting the listview inside an update panel. That did not help. We also tried naming the DataKeyField and leaving it out of the datalist control.&lt;/p&gt;
&lt;p&gt;We are using URL rewriting, and also use a Form.Browser that overwrites the page action attribute because of the url rewriting and all is well on the entire website, except this one page.&lt;/p&gt;
&lt;p&gt;Thoughts?&lt;/p&gt;
&lt;p&gt;TIA,&lt;/p&gt;
&lt;p&gt;Bill&lt;/p&gt;</description></item><item><title>Question about ASP.NET State Service capacity</title><link>http://forums.asp.net/thread/3525744.aspx</link><pubDate>Sat, 21 Nov 2009 18:10:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3525744</guid><dc:creator>Doggy8088</dc:creator><author>Doggy8088</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3525744.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3525744</wfw:commentRss><description>&lt;p&gt;I am always using ASP.NET State Service with remote connection enabled in our Web Farm environment.&lt;/p&gt;
&lt;p&gt;I would like to know what&amp;#39;s the capacity of the &amp;quot;ASP.NET State Service&amp;quot; can handle.&amp;nbsp;&amp;nbsp;&amp;nbsp;If I have a 64-bit machines with 8GB RAM, how much memory&amp;nbsp;ASP.NET State Service&amp;nbsp; can use?&amp;nbsp; Is there any documentation about this?&lt;/p&gt;</description></item><item><title>Cookie Disappears</title><link>http://forums.asp.net/thread/3411347.aspx</link><pubDate>Thu, 17 Sep 2009 18:16:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3411347</guid><dc:creator>TheRealAirness</dc:creator><author>TheRealAirness</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/3411347.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3411347</wfw:commentRss><description>&lt;p&gt;I created a cookie in source code behind of the master page. The cookie is created successfully. I know because I added Request.Cookies in the watch. However, the cookie disappears when I go to a new page. Here is the code below.&lt;/p&gt;
&lt;p&gt;DateTime currentdate = DateTime.Now;&lt;br /&gt;string affiliateID = &amp;quot;&amp;quot;;&lt;br /&gt;HttpCookie cookie = Request.Cookies[&amp;quot;recipeID&amp;quot;];&lt;/p&gt;
&lt;p&gt;if (Request.QueryString[&amp;quot;recipe&amp;quot;] != null) {&lt;br /&gt;&amp;nbsp; recipeID = Request.QueryString[&amp;quot;recipe&amp;quot;].Trim();&lt;br /&gt;} &lt;/p&gt;
&lt;p&gt;if (recipeID != &amp;quot;&amp;quot;) {&lt;br /&gt;&amp;nbsp;Session[&amp;quot;recipeID&amp;quot;] = recipeID;&lt;br /&gt;&amp;nbsp;cookie = new HttpCookie(&amp;quot;recipeID&amp;quot;);&lt;br /&gt;&amp;nbsp;cookie.Value = recipeID;&lt;br /&gt;&amp;nbsp;cookie.Expires = currentdate.AddDays(30);&lt;br /&gt;&amp;nbsp;cookie.Secure = true;&lt;br /&gt;&amp;nbsp;Response.Cookies.Add(cookie);&lt;br /&gt;} else {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;if (cookie != null)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session[&amp;quot;recipeID&amp;quot;] = Request.Cookies[&amp;quot;recipeID&amp;quot;].Value;&lt;br /&gt;&amp;nbsp;} else {&lt;br /&gt;&amp;nbsp;&amp;nbsp; Session[&amp;quot;recipeID&amp;quot;] = &amp;quot;105&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; cookie = new HttpCookie(&amp;quot;recipeID&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp; cookie.Value = &amp;quot;105&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; cookie.Expires = currentdate.AddDays(30);&lt;br /&gt;&amp;nbsp;&amp;nbsp; cookie.Secure = true;&lt;br /&gt;&amp;nbsp;&amp;nbsp; Response.Cookies.Add(cookie);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;} &lt;br /&gt;} &lt;/p&gt;
&lt;p&gt;Please help.&lt;/p&gt;</description></item><item><title>Unrecognized configuration section sessionstate</title><link>http://forums.asp.net/thread/3529868.aspx</link><pubDate>Tue, 24 Nov 2009 11:34:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3529868</guid><dc:creator>asmgx</dc:creator><author>asmgx</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3529868.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3529868</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am trying to add sessionState to Web.config&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&lt;span style="COLOR:#0000ff;"&gt;&amp;lt;&lt;/span&gt;sessionState&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;mode&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;InProc&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;cookieless&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;timeout&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;20&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; /&amp;gt; &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;the problem is that i aalways get this error&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Unrecognized configuration section sessionstate&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;anyone can help find why i am getting this error? and help me fix it&lt;/p&gt;</description></item><item><title>cookiless in forms authenication</title><link>http://forums.asp.net/thread/3530691.aspx</link><pubDate>Tue, 24 Nov 2009 19:08:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530691</guid><dc:creator>peterthegreat</dc:creator><author>peterthegreat</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3530691.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3530691</wfw:commentRss><description>&lt;p&gt;do you still require&amp;nbsp;to set cookieless element in both state and forms for session id to work&amp;nbsp;&lt;/p&gt;</description></item><item><title>autodetect cookie problem</title><link>http://forums.asp.net/thread/3530653.aspx</link><pubDate>Tue, 24 Nov 2009 18:52:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530653</guid><dc:creator>peterthegreat</dc:creator><author>peterthegreat</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3530653.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3530653</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have put a Cookieless=&amp;quot;AutoDetect&amp;quot; element in&amp;nbsp;the web.config&amp;nbsp;state.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;when i Block cookies, the url is not encoded with ID as expected?&lt;/p&gt;
&lt;p&gt;thus data does not persist between pages and i cant then login?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>best place to keep my state</title><link>http://forums.asp.net/thread/3529890.aspx</link><pubDate>Tue, 24 Nov 2009 11:50:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3529890</guid><dc:creator>tristan_c</dc:creator><author>tristan_c</author><slash:comments>8</slash:comments><comments>http://forums.asp.net/thread/3529890.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3529890</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a small amount of near real-time data&amp;nbsp;(perhaps ten key-pairs of data only) which I would like to make available very quickly to asp.net pages. It would be nice to have this available in a central repository which my asp.net pages could poll. The data would not be user-specific and would apply to all users so is not session-specific. &lt;/p&gt;
&lt;p&gt;Could anyone recommend an asp.net state management technique I should use for this data? I&amp;#39;m from a classic asp background and I&amp;#39;m finally drifting into .net after all these years. I understand there is an out-of-process state store in asp.net but understand (from a Wrox book) that this has quite an overhead and is likely to be too slow. Similarly I don&amp;#39;t want to use a database as that adds too much overhead. Is there an in-memory way of holding data in asp.net that allows fast access from all users?&lt;/p&gt;
&lt;p&gt;Thanks in Advance,&lt;/p&gt;
&lt;p&gt;Tristan&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>wot if i try this in my web.config..?</title><link>http://forums.asp.net/thread/3530232.aspx</link><pubDate>Tue, 24 Nov 2009 15:00:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530232</guid><dc:creator>ashish-1983</dc:creator><author>ashish-1983</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3530232.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3530232</wfw:commentRss><description>&lt;p&gt;&amp;lt;sessionState mode=&amp;quot;InProc&amp;quot; cookieless=&amp;quot;false&amp;quot; timeout=&amp;quot;20&amp;quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;wot would be my timeout..&lt;/p&gt;&lt;p&gt;20 seconds or 20 mins..&lt;/p&gt;&lt;p&gt;anyone..?&lt;/p&gt;</description></item><item><title>creating separate global variable for each user</title><link>http://forums.asp.net/thread/3530369.aspx</link><pubDate>Tue, 24 Nov 2009 16:24:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530369</guid><dc:creator>chhavi_221</dc:creator><author>chhavi_221</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3530369.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3530369</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i want to develop an online customercare Live support module for an already running website.&lt;/p&gt;
&lt;p&gt;where CustomerCare Executives login their account and see CustomerCare Home page. They respond to any visitor who wish live support. A CCE CAN HANDLE(chat with) 4 VISItors AT A TIME. &lt;/p&gt;
&lt;p&gt;when a visitor clicks live support button i have to check if there is any CCE logged in or not if yes then only that CEE with minium chatters will informed about this visitor.A separate chat window should open. &lt;/p&gt;
&lt;p&gt;a visitor may start chat&amp;nbsp;without logging in(i.e. no Session_start event) When a chatter(visitor) closes the chat window( Chat is over) then the CCE must know that visitor has gone. &lt;/p&gt;
&lt;p&gt;THIS IS MY LOGIC.. &lt;/p&gt;
&lt;p&gt;whenever a CCE loggs-in(on session_start) store its cceUID in a Global valiable of type Dictionary JUST so that we can check at any visitor request any cce is available or not.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;THE PROBLEM IS .... because CCE and Visitor&amp;nbsp;ONLY can see their chats so &lt;/p&gt;
&lt;p&gt;1. for each&amp;nbsp; chatter(visitor) I have to create at&amp;nbsp;a separate global stringCollection variable to store this visitor&amp;#39;s chats&lt;/p&gt;
&lt;p&gt;2. how to trap if the visitor is available?&lt;/p&gt;
&lt;p&gt;3. how to pass chat data between the two parties. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;want just a suggestion on Logic- some code will also be appreciated..&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thank you...&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Session Variables Inside C# Class</title><link>http://forums.asp.net/thread/3524166.aspx</link><pubDate>Fri, 20 Nov 2009 15:09:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3524166</guid><dc:creator>vfarmak</dc:creator><author>vfarmak</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3524166.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3524166</wfw:commentRss><description>&lt;p&gt;Hi Everyone!&lt;/p&gt;&lt;p&gt;I am experiencing the following problem: in my Global.asax file in the Session_Start method i have added a Session Variable named &amp;quot;AppCulture&amp;quot;, just like the code listed below:&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;    void Session_Start(object sender, EventArgs e) 
    {
        // Code that runs when a new session is started
        Session.Add(&amp;quot;AppCulture&amp;quot;, &amp;quot;el-GR&amp;quot;);
    }&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; In my Class Method I have a function, in which i want to check the session&amp;#39;s variable value. In order to do that i use the following statement, as listed in the code below: &lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;public static string CustomMethod()
        {
            string lang = HttpContext.Current.Session[&amp;quot;AppCulture&amp;quot;].ToString();
            if (lang.Equals(&amp;quot;el-GR&amp;quot;))
            {
                return &amp;quot;Ελληνικά&amp;quot;;
            }
            else
            {
                return &amp;quot;English&amp;quot;;
            }
        }&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; I use this method inside an EventHandler (file with .ashx extension), in order to fill dropdownlist values with javascript. Although i have initialized my session variable in the Session_Start section of the Global.asax file. The specific Session Variable inside the Class evaluates to null. Does anyone know other alternative in order to check session variables inside class code?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanx Bill&lt;br /&gt;&lt;/p&gt;</description></item><item><title>best way to expire session when we not need session is our apps</title><link>http://forums.asp.net/thread/3528060.aspx</link><pubDate>Mon, 23 Nov 2009 14:45:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528060</guid><dc:creator>anirudha gupta</dc:creator><author>anirudha gupta</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3528060.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3528060</wfw:commentRss><description>&lt;p&gt;i know some method but who method is best for using session in asp.net c#&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Share session data across subdomains</title><link>http://forums.asp.net/thread/3424570.aspx</link><pubDate>Fri, 25 Sep 2009 05:24:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3424570</guid><dc:creator>Srinivas D</dc:creator><author>Srinivas D</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3424570.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3424570</wfw:commentRss><description>&lt;p&gt;We have a portal consisting of main domain &amp;quot;&lt;a href="http://www.domain.co.in"&gt;www.domain.co.in&lt;/a&gt;&amp;quot;&amp;nbsp; and different subdomains like &amp;quot;jobs.domain.co.in&amp;quot;&amp;nbsp;, &amp;quot;exams.domain.co.in&amp;quot; etc. Now I want to share the session data across these subdomains as well as the main domain.&amp;nbsp; We are using Inproc session in asp.net.&lt;/p&gt;
&lt;p&gt;How do we do this in asp.net. Please help me with some sample code.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item><item><title>HttpCacheability.Server issue</title><link>http://forums.asp.net/thread/3529570.aspx</link><pubDate>Tue, 24 Nov 2009 08:20:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3529570</guid><dc:creator>mcavill02021970</dc:creator><author>mcavill02021970</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3529570.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3529570</wfw:commentRss><description>&lt;p&gt;I recently had a problem where when using the server cache&lt;/p&gt;
&lt;p&gt;&lt;u&gt;Problem&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;A&amp;nbsp;file to download had been created for one user and yet a second user who also used the same feature received the first users file.&lt;/p&gt;
&lt;p&gt;&lt;u&gt;Code&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;This was the only line of code present for the page that created the file to download to a client browser.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Response.Cache.SetCacheability(HttpCacheability.Server)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;u&gt;Question&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;My question is base on that being the only line of code to do with caching, what is the duration of that page? I believed it would expire straight away as nothing else had been set for the page? Could someone enlighten me about this?&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>loop through cookies not returning any results</title><link>http://forums.asp.net/thread/3529788.aspx</link><pubDate>Tue, 24 Nov 2009 10:38:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3529788</guid><dc:creator>RanVe</dc:creator><author>RanVe</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3529788.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3529788</wfw:commentRss><description>&lt;p&gt;Hello All,&lt;br /&gt;&lt;br /&gt;Using asp.net&lt;br /&gt;&lt;br /&gt;I am trying to retrieve a cookie that is being set manually on the IIS &lt;a style="BACKGROUND-IMAGE:none;BORDER-BOTTOM:darkgreen 0.07em solid;PADDING-LEFT:0px;PADDING-RIGHT:0px;PADDING-TOP:0px;" target="_blank"&gt;server&lt;/a&gt; when the page loads. However I cannot seem to get the value. When I use firefox debugger all the cookies are showing correctly, but when I use a CookieContainer to loop through all the cookies I cannot get any results excpet from this:&lt;br /&gt;&lt;br /&gt;24/11/2009 08:09:00 Cookie:guide.opendns.com&lt;br /&gt;24/11/2009 08:09:00 Cookie:t&lt;br /&gt;24/11/2009 08:09:00 Cookie:/&lt;br /&gt;24/11/2009 08:09:00 Cookie:x-0&lt;br /&gt;24/11/2009 08:09:00 Cookie:&lt;br /&gt;&lt;br /&gt;My code is below (the l.wl just &lt;a style="BACKGROUND-IMAGE:none;BORDER-BOTTOM:darkgreen 0.07em solid;PADDING-LEFT:0px;PADDING-RIGHT:0px;PADDING-TOP:0px;" target="_blank"&gt;prints&lt;/a&gt; the line). Does anyone know how to retrieve the cookies?&lt;br /&gt;&lt;br /&gt;//-------------------------------&lt;br /&gt;&lt;br /&gt;&amp;nbsp;HttpWebRequest request = (HttpWebRequest)WebRequest.Create(&amp;quot;&lt;a href="http://www.my-test-iisserver/webpages/" target="_blank"&gt;http://www.my-test-iisserver/webpages/&lt;/a&gt;&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;request.CookieContainer = new CookieContainer();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;HttpWebResponse response = (HttpWebResponse)request.GetResponse();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach (Cookie cook in response.Cookies)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;l.wl(&amp;quot;Cookie:&amp;quot; + cook.Domain);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;l.wl(&amp;quot;Cookie:&amp;quot; + cook.Name);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;l.wl(&amp;quot;Cookie:&amp;quot; + cook.Path);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;l.wl(&amp;quot;Cookie:&amp;quot; + cook.Value);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;l.wl(&amp;quot;Cookie:&amp;quot; + cook.CommentUri);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;br /&gt;//-------------------------------&lt;br /&gt;&lt;br /&gt;Thanks in advance&amp;nbsp;&lt;/p&gt;</description></item><item><title>session time out problem</title><link>http://forums.asp.net/thread/3528361.aspx</link><pubDate>Mon, 23 Nov 2009 17:11:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528361</guid><dc:creator>sheraz_aries</dc:creator><author>sheraz_aries</author><slash:comments>7</slash:comments><comments>http://forums.asp.net/thread/3528361.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3528361</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I have created two pages(default.aspx &amp;amp; inside.aspx) , The default.aspx ask for user name and password and once authenticated create a session and then redirect the user to inside.aspx . Now on inside.aspx i want user to redirect back on default.aspx once session expired.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have set the timeout property to 1 , so that the session should expire after 1 minute, but for some reason its just not working.(it does expire the session but not after 1 minute) . &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Any thoughts?&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;web.config&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;    &amp;lt;sessionState timeout=&amp;quot;1&amp;quot;&amp;gt;
      
    &amp;lt;/sessionState&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Default.aspx&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="vb.net"&gt;     Dim con As New System.Data.OleDb.OleDbConnection
        
        Dim myPath As String
        myPath = Server.MapPath(&amp;quot;~\App_Data\myDB.mdb&amp;quot;)

        con.ConnectionString = &amp;quot;Provider=Microsoft.Jet.OLEDB.4.0; Data source=&amp;quot; &amp;amp; myPath &amp;amp; &amp;quot;;&amp;quot;

        Dim mySelection As String
        mySelection = &amp;quot;select * from Login where Username=&amp;#39;&amp;quot; &amp;amp; txtUsername.Text &amp;amp; &amp;quot;&amp;#39; and Password=&amp;#39;&amp;quot; &amp;amp; txtPassword.Text &amp;amp; &amp;quot;&amp;#39;&amp;quot;

        Dim adp As New System.Data.OleDb.OleDbDataAdapter(mySelection, con)

        Dim dt As New System.Data.DataTable
        adp.Fill(dt)


        If dt.Rows.Count &amp;lt;&amp;gt; 0 Then

            Session(&amp;quot;username&amp;quot;) = txtUsername.Text
            Session(&amp;quot;password&amp;quot;) = txtPassword.Text
            Response.Redirect(&amp;quot;Inside.aspx&amp;quot;)
        Else

            lblStatus.Text = &amp;quot;wrong username or password&amp;quot;

        End If


    End Sub&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/pre&gt;&lt;b&gt;&lt;u&gt;Inside.aspx&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="vb.net"&gt;    Dim con As New System.Data.OleDb.OleDbConnection
        Response.Write(&amp;quot;Session time left is: &amp;quot; &amp;amp; Session.Timeout &amp;amp; &amp;quot; minutes only &amp;lt;br&amp;gt;&amp;quot;)
        Response.Write(&amp;quot;Session id: &amp;quot; &amp;amp; Session.SessionID &amp;amp; &amp;quot;&amp;lt;br&amp;gt;&amp;quot;)
        Dim myPath As String
        myPath = Server.MapPath(&amp;quot;~\App_Data\myDB.mdb&amp;quot;)

        con.ConnectionString = &amp;quot;Provider=Microsoft.Jet.OLEDB.4.0; Data source=&amp;quot; &amp;amp; myPath &amp;amp; &amp;quot;;&amp;quot;

        Dim mySelection As String
        mySelection = &amp;quot;select * from Login where Username=&amp;#39;&amp;quot; &amp;amp; Session(&amp;quot;username&amp;quot;) &amp;amp; &amp;quot;&amp;#39; and Password=&amp;#39;&amp;quot; &amp;amp; Session(&amp;quot;password&amp;quot;) &amp;amp; &amp;quot;&amp;#39;&amp;quot;

        Dim adp As New System.Data.OleDb.OleDbDataAdapter(mySelection, con)

        Dim dt As New System.Data.DataTable
        adp.Fill(dt)

        If dt.Rows.Count &amp;lt;&amp;gt; 0 Then

            Response.Write(&amp;quot;Welcome &amp;quot; &amp;amp; dt.Rows(0).Item(&amp;quot;username&amp;quot;))

        Else

            Response.Redirect(&amp;quot;Default.aspx&amp;quot;)

        End If
    End Sub&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Session gets lost between aspx pages</title><link>http://forums.asp.net/thread/3523578.aspx</link><pubDate>Fri, 20 Nov 2009 09:23:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3523578</guid><dc:creator>vijay_strs</dc:creator><author>vijay_strs</author><slash:comments>6</slash:comments><comments>http://forums.asp.net/thread/3523578.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3523578</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt; &lt;br /&gt; I have a website where I use Sessions to transfer data
between pages but the Session values get lost when redirecting from
some pages.&lt;br /&gt; In my local machine it works fine but not in the Server machine.&lt;br /&gt; I am using Response.Redirect(&amp;quot;somePage.aspx?someValue=true&amp;quot;)&lt;br /&gt; &lt;br /&gt; Please advice.&lt;br /&gt; &lt;br /&gt; VJ&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Sharing ViewState among UserControls on a page</title><link>http://forums.asp.net/thread/3524138.aspx</link><pubDate>Fri, 20 Nov 2009 14:58:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3524138</guid><dc:creator>SamU</dc:creator><author>SamU</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/3524138.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3524138</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have multiple user controls on my page and there&amp;#39;s one piece of information that needs to be shared among all of them i.e. ProductID. The first UserControl gets it and puts it in ViewState but the second one does not see it.&lt;/p&gt;&lt;p&gt;Is this due to:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Page lifecycle issue where the data is not yet in ViewState before the second user control tries to access it&lt;/li&gt;&lt;li&gt;Or is it due to one user control is not being able to access the ViewState of another user control even though they&amp;#39;re both on the same page so they should be sharing the same ViewState&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;In any case, other than putting the data in session, how do I share this data among &amp;quot;autonomous&amp;quot; user controls?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>custom control listboxes will not retain values after postback</title><link>http://forums.asp.net/thread/3525028.aspx</link><pubDate>Sat, 21 Nov 2009 01:44:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3525028</guid><dc:creator>dashbored</dc:creator><author>dashbored</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3525028.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3525028</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m pretty new to ASP.NET programming, and I&amp;#39;m being confounded
with a custom control I&amp;#39;m creating. &amp;nbsp;The control has four list boxes
corresponding to our management structure, and they draw their entries from
four different SQL Data Sources. &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Whenever a management level is selected, I filter the lower
management levels so that only the appropriate personnel are listed. &amp;nbsp;The
problem is that after postback, only the top level listbox (VP) will retain its
selected value. &amp;nbsp;(This is the only listbox that never has its data source
filtered.) &amp;nbsp;If I select an item from any of the other listboxes, the
downstream listboxes get filtered appropriately, but the selected item goes
back to the default of ALL. &amp;nbsp;I&amp;#39;ve been trying to use Session variables in
prerender, but this isn&amp;#39;t helping.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance for any help you can give. &amp;nbsp;Sorry if
the code looks a bit funky, but that is because I&amp;#39;ve been trying so many
different things to get it to work.&lt;br /&gt;
Dave&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;public partial class SOxMenu : System.Web.UI.UserControl&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string CurrentPage&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return _sCurrentPage; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set {
_sCurrentPage = value; }&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string VP&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return this.ListVP.SelectedValue;
}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { this.ListVP.SelectedValue = value;
}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string Level2&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return this.ListLevel2.SelectedValue;
}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { this.ListLevel2.SelectedValue = value; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string eSigner&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return this.ListEsigner.SelectedValue;
}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { this.ListEsigner.SelectedValue = value; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string Manager&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return this.ListManager.SelectedValue;
}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { this.ListManager.SelectedValue = value; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected override void OnPreRender(EventArgs
e)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base.OnPreRender(e);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if
(Session[&amp;quot;VP&amp;quot;] != null) { this.VP =
Session[&amp;quot;VP&amp;quot;].ToString(); }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if
(Session[&amp;quot;Level2&amp;quot;] != null) { this.Level2 =
Session[&amp;quot;Level2&amp;quot;].ToString(); }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (Session[&amp;quot;eSigner&amp;quot;]
!= null) { this.eSigner
= Session[&amp;quot;eSigner&amp;quot;].ToString(); }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if
(Session[&amp;quot;Manager&amp;quot;] != null) { this.Manager
= Session[&amp;quot;Manager&amp;quot;].ToString(); }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void listVP_SelectedIndexChanged(object sender, EventArgs
e)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session[&amp;quot;VP&amp;quot;]
= this.ListVP.SelectedValue;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListLevel2.SelectedValue = &amp;quot;ALL&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session[&amp;quot;Level2&amp;quot;]
= &amp;quot;ALL&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListEsigner.SelectedValue = &amp;quot;ALL&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session[&amp;quot;eSigner&amp;quot;]
= &amp;quot;ALL&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListManager.SelectedValue = &amp;quot;ALL&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session[&amp;quot;Manager&amp;quot;]
= &amp;quot;ALL&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level2DataSource.SelectParameters[&amp;quot;VP&amp;quot;].DefaultValue = (this.ListVP.SelectedValue == &amp;quot;ALL&amp;quot;)
? &amp;quot;%&amp;quot; : this.ListVP.SelectedValue;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EsignerDataSource.SelectParameters[&amp;quot;VP&amp;quot;].DefaultValue = (this.ListVP.SelectedValue == &amp;quot;ALL&amp;quot;)
? &amp;quot;%&amp;quot; : this.ListVP.SelectedValue;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ManagerDataSource.SelectParameters[&amp;quot;VP&amp;quot;].DefaultValue = (this.ListVP.SelectedValue == &amp;quot;ALL&amp;quot;)
? &amp;quot;%&amp;quot; : this.ListVP.SelectedValue;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void listLevel2_SelectedIndexChanged(object sender, EventArgs
e)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session[&amp;quot;Level2&amp;quot;]
= this.ListLevel2.SelectedValue;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListEsigner.SelectedValue = &amp;quot;ALL&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session[&amp;quot;eSigner&amp;quot;]
= &amp;quot;ALL&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListManager.SelectedValue = &amp;quot;ALL&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session[&amp;quot;Manager&amp;quot;]
= &amp;quot;ALL&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;EsignerDataSource.SelectParameters[&amp;quot;Level2&amp;quot;].DefaultValue = (this.ListLevel2.SelectedValue == &amp;quot;ALL&amp;quot;) ? &amp;quot;%&amp;quot;
: this.ListLevel2.SelectedValue;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ManagerDataSource.SelectParameters[&amp;quot;Level2&amp;quot;].DefaultValue = (this.ListLevel2.SelectedValue == &amp;quot;ALL&amp;quot;) ? &amp;quot;%&amp;quot;
: this.ListLevel2.SelectedValue;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void listEsigner_SelectedIndexChanged(object sender, EventArgs
e)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session[&amp;quot;eSigner&amp;quot;]
= this.ListEsigner.SelectedValue;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListManager.SelectedValue = &amp;quot;ALL&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session[&amp;quot;Manager&amp;quot;]
= &amp;quot;ALL&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ManagerDataSource.SelectParameters[&amp;quot;eSigner&amp;quot;].DefaultValue = (this.ListEsigner.SelectedValue == &amp;quot;ALL&amp;quot;) ? &amp;quot;%&amp;quot;
: this.ListEsigner.SelectedValue;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void ListManager_SelectedIndexChanged(object sender, EventArgs
e)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session[&amp;quot;Manager&amp;quot;]
= this.ListManager.SelectedValue;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>Maintain Treeview State</title><link>http://forums.asp.net/thread/3527309.aspx</link><pubDate>Mon, 23 Nov 2009 08:20:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527309</guid><dc:creator>veluruga</dc:creator><author>veluruga</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/3527309.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3527309</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have a problem in tree view control.&lt;/p&gt;&lt;p&gt;In my project i used a treeview in masterpage which is get a data dynamically from Database.&lt;/p&gt;&lt;p&gt;If i expand child node after navigate to new page and it moves to initial Treeview position.How to save&amp;nbsp; State for treeviewcontrol.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Veluruga&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to know when user close the application</title><link>http://forums.asp.net/thread/3527785.aspx</link><pubDate>Mon, 23 Nov 2009 12:19:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527785</guid><dc:creator>asmgx</dc:creator><author>asmgx</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/3527785.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3527785</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have web application, that requires user to login&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When user login i keep a record for when user log in and log out&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am facing a problem when user just close the browser without logging out.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I cant tell what time they logged out!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How can I know that?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have Windows Service in the Server to check for all users who are not in anymore and update the log out record with time we found they are not logged in&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Example&lt;/p&gt;
&lt;p&gt;Adam logged in at 8:00 to the application, at 9:00 he closed the browser without logging out&lt;/p&gt;
&lt;p&gt;in the database there will be a record with Login = 8:00 and Logout = NULL&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want my windows service (which should check every 5 minutes) to find Adam is no longer loged in the system and update Adams loging record with&lt;/p&gt;
&lt;p&gt;Login = 8:00 and Logout = 9:05&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can someone help me in finding how to do that (finding if the user still in or not anymore)?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Cache.Insert with Parameter</title><link>http://forums.asp.net/thread/3525354.aspx</link><pubDate>Sat, 21 Nov 2009 09:45:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3525354</guid><dc:creator>saburius</dc:creator><author>saburius</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3525354.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3525354</wfw:commentRss><description>&lt;p&gt;Hi is it possible to do Cache.Insert (data caching) and use a parameter. I know that data caching is different from page caching but I was hoping it could be done. In page caching there is VarByParam.&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;Cache.Insert(&amp;quot;cachedPageMaster&amp;quot;, masterPageFileName, null, DateTime.Now.AddSeconds(300), System.Web.Caching.Cache.NoSlidingExpiration);&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Basic question about application model</title><link>http://forums.asp.net/thread/3528899.aspx</link><pubDate>Mon, 23 Nov 2009 22:48:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528899</guid><dc:creator>stratpilot</dc:creator><author>stratpilot</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3528899.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3528899</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have an asp.net website application that I&amp;#39;m getting ready to deploy and I realize that I don&amp;#39;t have a good understanding of the execution model for it.&amp;nbsp; For example, lets say the first person logs on, establishes a session,&amp;nbsp;and begins using the site.&amp;nbsp; When the next person logs in, does a new instance of the application get created on the server or does the existing application instance handle successive requests?&amp;nbsp; How do static variables (c#) get treated (e.g. does user 2 have the same value of class variables as user 1?)&amp;nbsp; Any reference to the execution and memory model for a asp.net website would be appreciated.&lt;/p&gt;</description></item><item><title>Question about keeping shopping cart data in session </title><link>http://forums.asp.net/thread/3528699.aspx</link><pubDate>Mon, 23 Nov 2009 20:22:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528699</guid><dc:creator>SamU</dc:creator><author>SamU</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3528699.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3528699</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I assume keeping shopping cart data in session object is the safest bet. Two questions though:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;On a busy site, wouldn&amp;#39;t this create some potential performance issues as more and more memory will be used to store data?&lt;br /&gt;&lt;/li&gt;&lt;li&gt;In order to keep the data to a minimum so that we use memory carefully, I assume only product SKU is kept in the session object as opposed to full product name. Is this then common practice to look up full product name once the user clicks &amp;quot;View Cart&amp;quot;?&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I&amp;#39;d appreciate any other advice anyone may have on implementing a shopping cart.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Random NULL sessions early in the web request life cycle.</title><link>http://forums.asp.net/thread/3516318.aspx</link><pubDate>Mon, 16 Nov 2009 21:54:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3516318</guid><dc:creator>wugunz</dc:creator><author>wugunz</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3516318.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3516318</wfw:commentRss><description>&lt;p&gt;Hey folks, &lt;br /&gt; &lt;br /&gt; Here&amp;#39;s the rub... I&amp;#39;m logging a concerning amount of null ref exception due to HttpContext.Current.Session being null.&lt;br /&gt;
This is happening in a method I&amp;#39;m calling in Session_Start(). It does
not always happen, but has been occurring more and more often.&lt;br /&gt; It might happen every 4 minutes, it might happen once an hour. &lt;br /&gt; &lt;br /&gt; Some background:&lt;br /&gt; - IIS7&lt;br /&gt; - SessionStateMode = inProc. &lt;br /&gt; - This problem occurs on multiple websites.&lt;br /&gt;- NOT web garden&lt;br /&gt;&lt;/p&gt;&lt;p&gt;
- I&amp;#39;ve checked system logs for anything that might cause sessions to be
dropped (recycles) and nothing seems to line up with our exception
logs. There&amp;#39;s no brow raising information in them.&lt;br /&gt; I&amp;#39;m NOT:&lt;br /&gt; - Touching any of the application files.&lt;br /&gt; - Adding folders.&lt;br /&gt; - There&amp;#39;s no virus scanner crawling the file system causing updates.&lt;br /&gt; &lt;br /&gt; Pretty much I&amp;#39;m not doing anything that could cause a AppDomain to recycle on the outside. &lt;br /&gt; &lt;br /&gt;
I&amp;#39;ve profiled the server resources and nothing seems to stand out
besides the memory consumption, which is high but nothing out of the
norm.&lt;br /&gt; &lt;br /&gt; I&amp;#39;m open to any possible leads, ideas, comments, tools,&amp;nbsp; whatever I can research that will help me get to the root of this.&lt;/p&gt;&lt;p&gt;&lt;br /&gt; If you guy require more information/details let me know and I&amp;#39;ll provide what I can. &lt;br /&gt; &lt;br /&gt; Puzzled,&lt;br /&gt; Coz.&lt;/p&gt;</description></item><item><title>How to add and retrive dropdownlist control into viewstate ?</title><link>http://forums.asp.net/thread/3527659.aspx</link><pubDate>Mon, 23 Nov 2009 11:01:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527659</guid><dc:creator>dilipmca04</dc:creator><author>dilipmca04</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3527659.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3527659</wfw:commentRss><description>&lt;p&gt;How to add and retrive dropdownlist control into viewstate ?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks ..&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>