Problem in Link Button

prav_roy

Well-known member
Joined
Sep 10, 2005
Messages
70
Location
Mumbai
Programming Experience
1-3
i have a link button in my webform, when i click that it opens a popup window, i use java script for tht, but my problem is i want srollbars in tht popup my code looks something like

Private Sub lnkAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lnkAdd.Click
Response.Write("<script language = ""Javascript"">var win=window.open('Asset_Add.aspx',null,'width=600,height=550,top=125,left=250,scrollbars=yes','true');</script>")
End Sub
someone could plz tel me wht i need to add to get scroll bars

thank u
 
It works here... but will only get scrollbars when content of target page demands it - ie. is bigger than the specified window size.

Btw scrollbars (=true or =1) is the default, you don't have to specify it unless you want them off.
 
Back
Top