www.webdeveloper.com
Results 1 to 6 of 6

Thread: calling a window form in asp.net

  1. #1
    Join Date
    Dec 2005
    Posts
    9

    Unhappy calling a window form in asp.net

    Hi, do anyone know how to call (when the user click on the button) a window application form in asp.net a not. Bec i need to have a popup dialog box to let the user enter in some value, as what i know is that javascript can do the prompting of messagebox but it is one qns by another. i have design a window form but i cannot call it out in asp.net.

  2. #2
    Join Date
    Oct 2005
    Posts
    252
    Try this out

    Code:
    Sub Page_Load
      'the button that calls the openWindow function
      WindowButton.Attrubutes.Add("onClick", "newWin()")
    End Sub
    
    <script type="text/javascript">
       function newWin() {
          window.open("winURL", "popUpWin", "toolbar=0,location=0,directories=no,status=0,menubar=0,scrollbar=0,resizable=0,width=,height=");
       }
    </script>
    i need a creative atmosphere

  3. #3
    Join Date
    Dec 2005
    Posts
    9
    Sorry to ask another qns regarding the same qns, the method that you had given me do work by opening up a new window but what i need is that i have created a window application form in vb.net myself and how am i going to call the form out in asp.net.

  4. #4
    Join Date
    Oct 2005
    Posts
    252
    you will have also to use js to do so, you can try this
    Code:
    function add() {
       opener.form1.TextBox1.value = form2.TextBox1.value;
       if (f2.Names.selectedIndex == 0) opener.f1.Text1.value = "";
    }
    
    <input type="button" value="Add" onClick="add()" runat="server">
    This code assuming you have in the main page a TextBox1 in form with ID "form2" and in the popup window you have TextBox1 in form named "form1".
    Hope this helps;
    i need a creative atmosphere

  5. #5
    Join Date
    Aug 2004
    Posts
    12
    What you are attempting to do is execute an exe file (your compiled VB.NET Windows Form Application) from the browser. This is not valid under current browser technology as it breaks all of the client security rules.

  6. #6
    Join Date
    Sep 2005
    Posts
    128
    use modalDialogbox

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles