troubleshooting Question

Open dialog with server side controls in it

Avatar of welcome 123
welcome 123 asked on
JavaScriptHTML.NET ProgrammingjQuery
2 Comments1 Solution198 ViewsLast Modified:
I need to open a dialog in the event of a button click or link, can be anything but not coming from a gridview and it should open up a ascx control which has a gridview in it which has events like delete, edit etc but no matter what I do i am getting the dialog closed in case of of any event fired in the gridview. help?

My dialog code:

        $(function SetupDialog() {
                modal: true,
                autoOpen: false,
                appendTo: aspnetForm,
                title: "Add a New Line Item",
                width: 850,
                height: 800
            $("#btnAddLineDetail").click(function () {

        <tr >
              <td> <input type="button" id="btnAddLineDetail" value="Do not use this yet" visible="False" class="button" />
                  <uc4:wuscSATransferDetail ID="wuscSATransferDetail" runat="server" />



I also added the below in page load:
ScriptManager.RegisterStartupScript(Me, [GetType](), "SetupDialog", "SetupDialog();", True)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros