title: asp.net with c#
body: <p>I have one page which is placed in the Master Page.</p>
  <p>In the master page I have 1 dropdown and one GridView, dropdown is display the category, based on the dropdown list selection it will display the list of videos in the Grid.</p>
  <p>In the content page I have the video player, in the page load it will play the video by default.</p>
  <p>But when I choose the drop down list which is available in the master page, the page is refreshing, SO the video is start play from the first.</p>
  <p>The content page should not refresh, So the video will continuously play.</p>
  <p>How can I stop the page refresh in the content page?</p>
  <p>All are in master page.</p>
  <p>`&lt;asp:UpdatePanel ID=&quot;up1&quot; runat=&quot;server&quot; UpdateMode=&quot;Conditional&quot;&gt;
  </p>
  <pre><code>                    &lt;asp:DropDownList ID=&quot;drp_Channel&quot; Width=&quot;220px&quot; CssClass=&quot;ddl&quot; 
                              AutoPostBack=&quot;true&quot; runat=&quot;server&quot; 
                              onselectedindexchanged=&quot;drp_Channel_SelectedIndexChanged&quot;&gt;
                        &lt;asp:ListItem&gt;-- Select Channels --&lt;/asp:ListItem&gt;
                        &lt;/asp:DropDownList&gt;
                     &lt;/ContentTemplate&gt;
                      &lt;/asp:UpdatePanel&gt;
  </code></pre>
  <p>&lt;asp:UpdatePanel ID=&quot;up2&quot; runat=&quot;server&quot; UpdateMode=&quot;Conditional&quot;&gt;
  </p>
  <pre><code>                            &lt;asp:GridView ID=&quot;grd_Video&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;False&quot; OnRowCommand=&quot;LinkName&quot;
                              GridLines=&quot;None&quot; ShowHeader=&quot;False&quot; Width=&quot;100%&quot; EmptyDataText=&quot;No Videos Found&quot; &gt;
                              &lt;Columns&gt;
                                  &lt;asp:TemplateField&gt;
                                      &lt;ItemTemplate&gt;
                                      
                                          &lt;asp:ImageButton ID=&quot;img_Video&quot; runat=&quot;server&quot; BorderColor=&quot;#666699&quot; CssClass=&quot;imgbox&quot;
                                              ImageUrl='&lt;%#(string)FormatImageUrl((string)Eval(&quot;Video_Thumbnail&quot;)) %&gt;' 
                                              CommandName=&quot;imgClick&quot; CommandArgument='&lt;%# Bind(&quot;Video_ID&quot;)%&gt;' 
                                              BorderWidth=&quot;0px&quot; Height=&quot;40px&quot; ToolTip=&quot;Click to view video&quot; Width=&quot;50px&quot; 
                                              BorderStyle=&quot;Double&quot; /&gt;
                                      
                                      &lt;/ItemTemplate&gt;
                                  &lt;/asp:TemplateField&gt;
                                  &lt;asp:TemplateField&gt;
                                      &lt;ItemTemplate&gt;
                                      &lt;asp:LinkButton ID=&quot;lnk_VideoName&quot; runat=&quot;server&quot; ToolTip=&quot;Click to view video&quot; 
                                              CommandName=&quot;lnkClick&quot; CommandArgument='&lt;%# Bind(&quot;Video_ID&quot;)%&gt;' 
                                              Text='&lt;%# DataBinder.Eval(Container, &quot;DataItem.Video_Name&quot;) %&gt;' 
                                              CssClass=&quot;linkVideo&quot; Width=&quot;130px&quot;&gt;&lt;/asp:LinkButton&gt; 
                                          
                                      &lt;/ItemTemplate&gt;
                                  &lt;/asp:TemplateField&gt;
                              &lt;/Columns&gt;
                              &lt;AlternatingRowStyle BackColor=&quot;#cccccc&quot; /&gt;
                              
                          &lt;/asp:GridView&gt;
                          &lt;/ContentTemplate&gt;
                              &lt;/asp:UpdatePanel&gt;`
  </code></pre>
  <p>in code behind for binding grid,</p>
  <pre><code>DataTable dt1Video = new MDBusiness.MDSUser().GetVideo(intNetId, intChanId, intCatId);
                  grd_Video.DataSource = dt1Video;
                  grd_Video.DataBind();
                  up1.Update();
                  up2.Update();
  </code></pre>