Hi,
The jquery used here is to meake the screen blur when popup
loads..Blur effect is working.But the serverside code of butn1 not
firing.

The code are
Page_Load()
runjQueryCode("$('.dim').css('height', $(document).height());$
('.btnb').click(function(){$('.dim').fadeIn();return false;});$
(window).bind('resize', function(){$('.dim').css('height', $
(window).height());});")
end sub

  Sub runjQueryCode(ByVal jsCodetoRun As String)
 ScriptManager.RegisterClientScriptBlock(Me.Page, Page.GetType,
Guid.NewGuid().ToString(), getjQueryCode(jsCodetoRun), True)
End Sub
 Function getjQueryCode(ByVal jsCodetoRun As String) As String
        Dim sb As New StringBuilder()
        sb.AppendLine("$(document).ready(function() {")
        sb.AppendLine(jsCodetoRun)
        sb.AppendLine(" });")
        Return sb.ToString
    End Function

  Protected Sub butn1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles butn1.Click
        lbltest.Text = "Button in the page Clicked"
 End Sub

.aspx
<asp:Button runat="server" ID="butn1" Text="show" CssClass="btnb"/>
 <div id="dim" class="dim">
        <asp:Panel ID="PnldelSCDoc" runat="server"
CssClass="popupcurve" Visible="true">
            <div class="popupcurve_inside">
                <table style="width: 100%;">
                    <tr>
                        <td align="center">
                            <asp:Button ID="btnok" Width="75px"
runat="server" Text="OK" />
                        </td>
                    </tr>
                </table>
            </div>
        </asp:Panel>
    </div>

Please help me

Reply via email to