<?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>Search results matching tag 'page'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=page&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'page'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Is it possible to initialize All Page culture from Global.asax and Profile in one place?</title><link>http://forums.asp.net/thread/3579765.aspx</link><pubDate>Wed, 23 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3579765</guid><dc:creator>maxi_ng</dc:creator><description>&lt;p&gt;I am using Profile to remember the user prefer culture.&lt;/p&gt;&lt;p&gt;I know I can have a BasePage Class inheriting Page Class and override the InitializeCulture() to get this done.&lt;/p&gt;&lt;p&gt;I would like to do it by Global.asax, but I can&amp;#39;t get the Profile object in Application_BeginRequest()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Is this possible or is BasePage my only option?&lt;/p&gt;</description></item><item><title>Re: Web Site .NET C# for mobile - Error in session ?</title><link>http://forums.asp.net/thread/3563662.aspx</link><pubDate>Mon, 14 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3563662</guid><dc:creator>meliweb</dc:creator><description>&lt;p&gt;Thanks for your answer, but I&amp;#39;m a bit surprised. Why would Microsoft add &amp;quot;Mobile Page&amp;quot; in their templates in Visual Studio if it&amp;#39;s working better with usual .aspx pages ?&lt;/p&gt;
&lt;p&gt;Except for the sessions variables, the application is working fine. I might send variables threw pages instead of sessions variables if really I can&amp;#39;t to anything else. The login page with an autentification cookie is working fine, the variable is not lost when using the mode &amp;quot;StateServer&amp;quot;.&lt;/p&gt;</description></item><item><title>Setting up pre init method accross all pages</title><link>http://forums.asp.net/thread/3317664.aspx</link><pubDate>Tue, 28 Jul 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3317664</guid><dc:creator>TeH Brofessor</dc:creator><description>&lt;p&gt;i developed a bookmark type application and have the following code in the pre-init method &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="vb.net"&gt;Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit
        Dim myControl As Control = getPostBackControl(Me.Page)
        If Request.Cookies(&amp;quot;Favorites&amp;quot;) Is Nothing Then
            Response.Cookies(&amp;quot;Favorites&amp;quot;)(&amp;quot;FavoriteCount&amp;quot;) = 0
        End If
        If Not myControl Is Nothing Then
            If (myControl.ClientID.ToString() = &amp;quot;AddButton&amp;quot;) Then
                favCount = Server.HtmlEncode(Request.Cookies(&amp;quot;Favorites&amp;quot;)(&amp;quot;FavoriteCount&amp;quot;))
                favCount = favCount + 1
                Response.Cookies(&amp;quot;Favorites&amp;quot;)(&amp;quot;FavoriteCount&amp;quot;) = favCount.ToString()
            End If

        End If
    End Sub&lt;/pre&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;however i will be implementing the application in master pages and will not be able to use the pre init method. (I need to get a postback control for the dynamically created links in the bookmarks placeholder) is there a way that all pages can be set up with this pre init method? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to implement GridView Paging in Manual datasource</title><link>http://forums.asp.net/thread/3216558.aspx</link><pubDate>Sun, 07 Jun 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3216558</guid><dc:creator>jobzky</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi I need help. I have GridView whose datasource is datatable therefore GridViews events are all manually called. I have problems with Paging. I searched for assistance and they give this event &amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;protected void&lt;/span&gt; GridView1_PageIndexChanging(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, GridViewPageEventArgs e)&lt;br /&gt;{&lt;br /&gt;   GridView1.PageIndex = e.NewPageIndex;&lt;br /&gt;   GridView1.DataBind();&lt;br /&gt;}&lt;/pre&gt;&amp;nbsp;Howver this event gives problems and usually doesn&amp;#39;t work for GridView with more than 2 pages since I notice that e.NewPageIndex returns only two values: 1 and -1. Default value is 1 and on the next page&amp;nbsp; click to page of GridView the value is 1 then on the previous page click the value is -1. Therefore at first load PageIndex is 0. Click next page and then e.NewPageIndex is 1 now PageIndex is 1. Click the next page then the PageIndex is still 1 since on the next click e.NewPageIndex is is 1. Therefore the problem is that your PageIndex never leaves on its last value which is 1. Now try to click Previous page and you will got error &lt;span&gt;&lt;/span&gt;&lt;h2&gt;&lt;i&gt;&lt;i&gt;&amp;quot;Specified argument was out of the range of valid values.&lt;br /&gt;Parameter name: value&lt;/i&gt;&lt;/i&gt;&amp;quot;&lt;/h2&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Why? it is because at last value PageIndex is 1 clicking previous page link the PageIndex value will become -1 since on prevous click PageIndex will back to zero then e.NewPageIndex is -1 therefore PageIndex will become -1 and there is no such page which is negative. Anyone encountered this? Please give some advice. Well if datasource is automatic namely came from database or object datasource no problems will be encountered on sorting and paging events but we are binding our GridView programmatically.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Master Page Inheritance problem</title><link>http://forums.asp.net/thread/3161255.aspx</link><pubDate>Wed, 13 May 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3161255</guid><dc:creator>svmr</dc:creator><description>Hi Kevv,&lt;br /&gt;&lt;br /&gt;
That means SPLib.CLFPage is a Page class not a MasterPage class that&amp;#39;s why you can inherit in a Page and not in a MasterPage. In that case, just inherit SPLib.CLFPage in every page and no need for you to use MasterPage.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,</description></item><item><title>Re: Vertical Spacing in ASP:Menu</title><link>http://forums.asp.net/thread/3073504.aspx</link><pubDate>Wed, 08 Apr 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3073504</guid><dc:creator>TommyGunn32</dc:creator><description>&lt;p&gt;StaticMenuItemStyle-CssClass=&amp;quot;staticMenuItem&amp;quot; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CSS:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;.staticMenuItem&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;padding-bottom:10px;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Solid, Thanks&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Page request life-time variables</title><link>http://forums.asp.net/thread/3035273.aspx</link><pubDate>Tue, 24 Mar 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3035273</guid><dc:creator>wbahnassi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;What is the best method to store some global variables that are only required for the duration of a page request?&lt;/p&gt;
&lt;p&gt;For example, consider&amp;nbsp;a page that takes a QueryString value, and that value is used to lookup some db information, which is needed by&amp;nbsp;various user control&amp;nbsp;classes. What can I do to make such info &amp;quot;globally&amp;quot; available for those classes if they need it?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for any suggestions.&lt;/p&gt;</description></item><item><title>Page counter for member pages to review page success. </title><link>http://forums.asp.net/thread/2841081.aspx</link><pubDate>Thu, 01 Jan 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2841081</guid><dc:creator>bitorbell</dc:creator><description>&lt;p&gt;Hi one and all again, &lt;br /&gt;Can&amp;#39;t seem to find a hit counter example to work from whiich satisfies my needs. Hoping you can help.&lt;/p&gt;
&lt;p&gt;Members store settings into 2 databases (UserDetails and UserData)&lt;/p&gt;
&lt;p&gt;When Users of the website search for these details they are reffered to a page in the format below:&lt;/p&gt;
&lt;p&gt;userdetails.aspx?userid=xxxxxxxxxxxxxxxxxxxxxx&lt;/p&gt;
&lt;p&gt;What i want to be able to do is track the number of times this page is accessed by anyone. And then post this result in a members page.&lt;br /&gt;(So that the Member can track how many times there information is accessed)&lt;/p&gt;
&lt;p&gt;I was thinking the best way was creating a new table linked to the UserID of the member. But am open to any ideas people have.&lt;/p&gt;
&lt;p&gt;Thanks in advance for all your help.&lt;/p&gt;
&lt;p&gt;P.S. I&amp;#39;m coding in VB.&lt;/p&gt;</description></item><item><title>Switch to 2nd UserControl from event inside 1st UserControl</title><link>http://forums.asp.net/thread/2800099.aspx</link><pubDate>Wed, 10 Dec 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2800099</guid><dc:creator>exsurgo</dc:creator><description>&lt;p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;I have a Page which contains one of many different UserControls.&amp;nbsp; I need to be able to switch from one control to another depending on a button click in the first control.&amp;nbsp;&amp;nbsp; The first time I click to switch to the second control, it works.&amp;nbsp;&amp;nbsp; When I click on a&amp;nbsp;button on the second control to switch to another control or the first control, it doesn&amp;#39;t work.&amp;nbsp;&amp;nbsp; Apparently, the controls have already been rendered and does not re-render after the control is added..&amp;nbsp;&amp;nbsp; If I click on the button a second time, it then switches to the other control.&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there any way to control which UserControls are loaded from UserControl events?&lt;/p&gt;
&lt;p&gt;I need to be able to do this&amp;nbsp;with a postback (not redirect or trasfer) becuase I&amp;#39;m maintaining state and using an update panel. &amp;nbsp;I&amp;#39;m also&amp;nbsp;using a custom&amp;nbsp;page&amp;nbsp;class with an AddControl method that dynamically adds the UserControl.&amp;nbsp; The custom page is also responsible for maintaining the current user control.&lt;/p&gt;
&lt;p&gt;This is the method I&amp;#39;ve added to the custom page. It simply adds a control to a specific location.&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;    &lt;span class="kwd"&gt;Public Sub&lt;/span&gt; AddControl(&lt;span class="kwd"&gt;ByVal&lt;/span&gt; control &lt;span class="kwd"&gt;As String&lt;/span&gt;)
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; c &lt;span class="kwd"&gt;As&lt;/span&gt; UserControl = Page.LoadControl(control)
        &lt;span class="kwd"&gt;Me&lt;/span&gt;.ContentContainer.Controls.Add(c)
    &lt;span class="kwd"&gt;End Sub&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the UserControl event&amp;nbsp;handlers that I&amp;#39;m using. (Simplified for demo purposes.)&lt;/p&gt;&lt;pre class="coloredcode"&gt;Partial &lt;span class="kwd"&gt;Class&lt;/span&gt; Control1 : &lt;span class="kwd"&gt;Inherits&lt;/span&gt; UserControl

    &lt;span class="kwd"&gt;Protected Sub&lt;/span&gt; Goto2_Click(&lt;span class="kwd"&gt;ByVal&lt;/span&gt; sender &lt;span class="kwd"&gt;As Object&lt;/span&gt;, &lt;span class="kwd"&gt;ByVal&lt;/span&gt; e &lt;span class="kwd"&gt;As&lt;/span&gt; System.EventArgs) &lt;span class="kwd"&gt;Handles&lt;/span&gt; Goto2.Click
        Page.AddControl(&lt;span class="st"&gt;&amp;quot;Control2.ascx&amp;quot;&lt;/span&gt;)
    &lt;span class="kwd"&gt;End Sub

End Class&lt;/span&gt;

Partial &lt;span class="kwd"&gt;Class&lt;/span&gt; Control2 : &lt;span class="kwd"&gt;Inherits&lt;/span&gt; UserControl

    &lt;span class="kwd"&gt;Protected Sub&lt;/span&gt; Goto1_Click(&lt;span class="kwd"&gt;ByVal&lt;/span&gt; sender &lt;span class="kwd"&gt;As Object&lt;/span&gt;, &lt;span class="kwd"&gt;ByVal&lt;/span&gt; e &lt;span class="kwd"&gt;As&lt;/span&gt; System.EventArgs) &lt;span class="kwd"&gt;Handles&lt;/span&gt; Goto1.Click
        Page.AddControl(&lt;span class="st"&gt;&amp;quot;Control1.ascx&amp;quot;&lt;/span&gt;)
    &lt;span class="kwd"&gt;End Sub

End Class&lt;/span&gt;&lt;/pre&gt;&amp;nbsp;</description></item><item><title>How can I know if the current page will redirect to another page?</title><link>http://forums.asp.net/thread/2797193.aspx</link><pubDate>Tue, 09 Dec 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2797193</guid><dc:creator>van.net</dc:creator><description>&lt;p&gt;How can I know in VB.NET if the current page will redirect to another page before unloading the current page?&lt;/p&gt;&lt;p&gt;I am using a shared variable within the page class. I want it to free if the page will not post back.&lt;/p&gt;&lt;p&gt;Is there any property or method of the page that I can use?&lt;/p&gt;&lt;p&gt;Thank you. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>