title: execute serverside code on div click
body: <p><strong>ASPX CODE</strong></p>
  
  <pre><code>&lt;div id="c" runat="server" onclick="loadContentFamily" onmousedown="loadContentFamily" rel="divUpdatePanel" &gt;Family&lt;/div&gt;
  </code></pre>
  
  <p><strong>ServerSide Code</strong></p>
  
  <pre><code>Public Sub loadContentFamily(ByVal PageName As String)
          MsgBox("")
          PageName = "Family"
          Dim _con As New SqlConnection(ConfigurationManager.ConnectionStrings("LeaveDBConnectionString").ConnectionString)
          Dim _da As New SqlDataAdapter("SELECT PageHeader,PageContent FROM PageKeeper WHERE PageName='" &amp; PageName &amp; "'", _con)
          Dim _table As New DataTable
  
          Try
              _con.Open()
              _da.Fill(_table)
              _con.Close()
              _con.Dispose()
              With _table.Rows(0)
                  h4header.InnerText = .Item(0)
                  divUpdatePanel.InnerHtml = .Item(1)
                  Me.Title = .Item(0)
              End With
  
          Catch ex As Exception
              MsgBox(ex.Message)
              divUpdatePanel.InnerText = "No Data Found"
          Finally
              _con.Close()
              _con.Dispose()
          End Try
      End Sub
  </code></pre>
  
  <p><strong>PROBLEM:</strong></p>
  
  <p>When i click on the div it does not execute the ServerSide Code ...why??Any help appreciated.</p>