imagebutton
-
hii m using image button in adatalist.I want that when user clicks on this button a new window gets opened with a big size of image.I have tried using this:
the image gets opened but i want it to open in new window. how can i open the image in new window plz guide. thanks in advanc.
-
hii m using image button in adatalist.I want that when user clicks on this button a new window gets opened with a big size of image.I have tried using this:
the image gets opened but i want it to open in new window. how can i open the image in new window plz guide. thanks in advanc.
-
hii m using image button in adatalist.I want that when user clicks on this button a new window gets opened with a big size of image.I have tried using this:
the image gets opened but i want it to open in new window. how can i open the image in new window plz guide. thanks in advanc.
Just use
window.open
in
OnClientClick
of theImagebutton
to invoke the javascript new window. Just place the id of the image in querystring, so that when the server is called, the proper image to be shown in the window. ;)Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript -
hii m using image button in adatalist.I want that when user clicks on this button a new window gets opened with a big size of image.I have tried using this:
the image gets opened but i want it to open in new window. how can i open the image in new window plz guide. thanks in advanc.
I am also agree with Abhishek, Use Window.Open(). Avoid unnecessary Postback ! :) .
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Just use
window.open
in
OnClientClick
of theImagebutton
to invoke the javascript new window. Just place the id of the image in querystring, so that when the server is called, the proper image to be shown in the window. ;)Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript -
hii m using image button in adatalist.I want that when user clicks on this button a new window gets opened with a big size of image.I have tried using this:
the image gets opened but i want it to open in new window. how can i open the image in new window plz guide. thanks in advanc.
Hi, Call this script. javascript:openPopup('ImageEnlarge.aspx?productid=<%#eval("productid") %>') function openPopup(strOpen) { open(strOpen, "Info", "status=1, width=350, height=338, top=0, left=300, scrollbars=no"); } I hope this will help you
Farogh Haider Web developer