By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,315 Members | 1,575 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,315 IT Pros & Developers. It's quick & easy.

how to call function in dll from showmodaldialog popup.

P: 5
I am called ShowModalDialog() from the master page as below.

Expand|Select|Wrap|Line Numbers
  1. onclick='javascript: addSecurities = objDoc.selectSingleNode("//Security"); Args[0] = addSecurities; Args[1] = buildCategoryTable; Args[2] = null; showModalDialog("ABC.aspx", Args, "dialogHeight:900px;dialogWidth:800px;scroll:yes; status:yes;");' value="Add Security " />

In this ABC.aspx file 3 HTML button are present (Search, OK & Cancel)

code in ABC.aspx
Expand|Select|Wrap|Line Numbers
  1. <HTML>
  2. ..
  3. <input type="button" id="SearchModeBtn" onserverclick="GetSearchResults" value="Search" runat="server" >
  4. ...
  5. </HTML>
This GetSearchResults is a function in one component (xyz.dll)

on click on Search Button, (where it is calling a function in xyz.dll) and opening a new pop-up window. which i don't want. It should call in the same page and display the result in the same page.
Nov 18 '09 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Can you show the client-side generated code, i.e. as it appears in the browser when you View Source.
Nov 20 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.