Link to home
Create AccountLog in
Avatar of AkilaRamesh
AkilaRameshFlag for United States of America

asked on

open a n aspx page in timer event

I have an vb.net apllication where i am trying to  execute  procedure   every 10  mins , and if procedure  returns  some values  i need to show it in a separate page .  can somebody  show me how to  acheive this in timer control
ASKER CERTIFIED SOLUTION
Avatar of tbsolutions
tbsolutions
Flag of Brazil image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of AkilaRamesh

ASKER

Thanks so much , I will  try it out right now.:-)

Dim url As String
                url = "Default3.aspx"
                Dim fullURL As String
                fullURL = "window.open('" + url + "', '_blank', 'height=500,width=800,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,titlebar=no' )"
                               ScriptManager.RegisterStartupScript(Me, Me.GetType(), "OPEN_WINDOW", fullURL, True)

What am i doing wrong in this . I am not able to get the window open , no error also
Sorry for the late response.
I used the same code you posted, and it worked fine. I just had to add a new page called Default3.aspx in the same directory of the page i'm using to call the PopUp.
Make sure that both pages are in the same directory, case else, you'll need to use a command to identify the path.
Example:
 
'in case you're trying to open a page inside another directory
url = ResolveUrl("Test/Default4.aspx")

'in case you're trying to open a page in the root directory
url = ResolveUrl("~/Default4.aspx")

Open in new window


Hope it helps.
Boccio
Well  Explained and it was great  and worked  perfectly .
I  cant thank enough
You are welcome!!