If(Session[loginid]==null)
<p>I am writing in my Page_Load like </p>

<pre><code>if(Session[loginid]== null) 
</code></pre>

<p>then redirect to login page or other page.Else populate the list.There is one dropdownlist and 2 button control in my page.Does I need to write </p>

<pre><code>if(Session[loginid]== null)
</code></pre>

<p>in populate list function ,it's selectedindexchange function and button event.Selectedindexchange again call 2 another function inside it.Does I need to write in that function also.</p>

<p>SamplePage.aspx</p>

<p>1 Dropdownlist
2 Button1
3 Button3</p>

<p>SamplePage.aspx.cs</p>

<pre><code>1 Page_Load()
2 Populate()
3 ddl_SelectedindexChange()
4 Button1_click()
5 Button2_click()
6 function1()
7 fuction2()
</code></pre>
