C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Linkbutton click event?


Posted Date: 16 Oct 2008      Total Responses: 5

Posted By: venkatesan       Member Level: Diamond     Points: 1


I

want to open the new window and pass the the querystring to the next window

and also i dont want any statusbar,toolbar in that window, and i would like to

display the window with specific height and width , and disable minimize and maximize button

let anyone proived the code....




Responses

Author: Meetu Choudhary    16 Oct 2008Member Level: GoldRating:     Points: 2
for this you can use the following line of code

window.open('pageurl','popuppage','scrollbars=no,width=400,height=400,resizable=no,left=500,top=260,toolbar=no,titlebar=no')


and for more features please visit


http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html

==
Thanks and Regards
Meetu Choudhary


Author: suze    16 Oct 2008Member Level: GoldRating:     Points: 6
Hi

Check this code


Using this code u can change as per ur needs

LinkButton1.Attributes.Add("onclick", "window.open('Export.aspx?'," + "null,'left=300, top=100, height=250, width= 350, status=no," +
"resizable= no, scrollbars= no, toolbar= no,location= no, menubar= no');" +
"return false;");



Author: samatha g    16 Oct 2008Member Level: GoldRating:     Points: 2
string str = "<script language=javascript>;window.open('" + URL + "','popup','width=800px,height=600px,resize=NO,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no,left=30,top=10')</script>";
Page.RegisterStartupScript("ClientScript", str);


Author: Nagarajan    16 Oct 2008Member Level: GoldRating:     Points: 2
The actual syntax of window.open() is ..

oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace])

For Example...

<SCRIPT LANGUAGE="javascript">
<!--
window.open ('titlepage.html', 'newwindow', config='height=100,width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no')
-->
</SCRIPT>

Hope this helps
Happy Coder.


Author: Nagarajan    16 Oct 2008Member Level: GoldRating:     Points: -20
to be more precise on the above example, Here is wats happening

window.open is the JS command to open a new browser window.
'titlepage.html' is the name of the page that will fill the window.
'newwindow' is the name of the window. This you need. We are going to use commands intended to alter the window the script is opening. In order for the JavaScript to know what item it is dealing with, the item has to have a name. So we give it one. I went with newwindow. But it could have just as easily been zork, or woohaa, or raspberry.
config= denotes that what follows configures the window. (This command really isn't required, but it's a good idea to use just to keep things straight)
height=100 denotes the height of the window in pixels.
width=400 denotes the width of the window in pixels.
toolbar=no denotes if there will be a toolbar on the newly opened window. Set this to yes if you want one - no if you don't.
menubar=no denotes if there will be a menubar. Set this to yes if you want one - no if you don't.
scrollbars=no denotes if there will be scrollbars or not. Ditto with the yes and no deal.
resizable=no denotes if the user can change the size of the window by dragging or not.
location=no denotes if there will be a location bar on the newly opened window. Use yes and no again.
directories=no denotes if there will be a directories bar on the new window. Use yes and no.
status=no denotes if there will be a status bar. Use yes and no.


Happy Coder.



Post Reply
You must Sign In to post a response.
Next : To saisrikanthreddy
Previous : css to easily verify our website design in different browsers
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

teleconferencing service

Contact Us    Privacy Policy    Terms Of Use