-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: KapilGoyal-PSTSI
Message 2 in Discussion




mnuProgramOffice.SubItems[0].Target = "_blank";

This 
will fill ur requirement and still doubt then mail me.

Regards,

Kapil

 



From: Rhegde [mailto:[EMAIL PROTECTED] 

Sent: Monday, April 11, 2005 10:56 PM
To: 
[email protected]
Subject: Opening a new web page(pop up) from an 
skmMenu Item




  
  
    
    New Message on BDOTNET
  
    

Opening a 
  new web page(pop up) from an skmMenu Item


  
    
    
      Reply

      
        
          
          
             
            Reply to Sender   Recommend 
            Message 1 in Discussion 
            
    
      
        
          
          
            From: Rhegde 
          
            
I have a User control which contains a 
              skmMenu which gets it's menu
items from an xml file. I'm trying 
              to get one of the menu items to
display a help page in it's own 
              window.

I've tried using the 
              <commandName>......</commandName> Tag to access
the 
              menu item clicked on the skmMenu. I created an EventHandler 
              for
the OnMenuItemClick="EventHandlerName" which I'm using to 
              capture the
click event and execute this java script 
              :

Public Sub EventHandlerName(ByVal sender As Object, ByVal 
              e As
skmMenu.MenuItemClickEventArgs)
If e.CommandName = 
              "help" Then 
              
'Response.Write("<script>Window.Open('help.aspx');</script>") 
              
Response.Write("<script
language='text\javascript'>window.open('help.aspx','Help
Files','width=820,height=650');</script>")
End 
              If 
End Sub 

******************** 

The problem 
              I'm having is that the javascript code is not being
executed 
              from within this procedure. I was wondering if this is due 
              to
the fact that it is an "ascx" control and not an aspx page? 
              If so does
anyone have an idea or a way that this could be 
              accomplished.

My second approach to accomplish this was: 
              

I've tried using the <url>....</url> tag in 
              the xml file but I need
the web page to come up in it's own 
              browser and the page that the user
is initially on when they 
              click the "help" link must still be visible.

when I put the 
              <script>window.open('help.aspx')</script> in 
              between
the <url>........</url> tag, it brings up 
              the page in a new browser
but the calling page is blank. I 
              can't use the javascript:
history.go(-1); because for security 
              reasons none of the aspx pages
are being 
              cached.


That's about it.... .... :) 

does anyone 
              have any solutions or ideas that I could possibly 
          try?

View other groups in this 
  category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to