Connecting Tech Pros Worldwide Forums | Help | Site Map

Resizing Web Page

Member
 
Join Date: Nov 2007
Posts: 49
#1: Feb 7 '08
Hi

I Have a grid control in my web page(ASP.Net) and gave the height and width for web Page and grid are same.
Now if i click the Edit button in grid, that column is partially visible.
So if i expand the Edit Button,the webpage should also expand along with grid.


How can i do this????

kunal pawar's Avatar
Needs Regular Fix
 
Join Date: Oct 2007
Location: Pune, India
Posts: 297
#2: Feb 7 '08

re: Resizing Web Page


do not mention width property in pixels always used in % and u can use css
Member
 
Join Date: Nov 2007
Posts: 49
#3: Feb 7 '08

re: Resizing Web Page


Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
Dim gg As String = ("<script Language='javascript'>" & _
"(window.open('Default.aspx','GGG'," & _
"'width=450%, height=400%"))" & _
"</script>")
End Sub

--I have given like this.But it is not working.
WebPage is not expanding according to grid Expansion.

Can you help?

How to use css??
kunal pawar's Avatar
Needs Regular Fix
 
Join Date: Oct 2007
Location: Pune, India
Posts: 297
#4: Feb 7 '08

re: Resizing Web Page


do u want to open new window having content from default.aspx ?
Member
 
Join Date: Nov 2007
Posts: 49
#5: Feb 8 '08

re: Resizing Web Page


Hi,

The new window contains the Grid Control.The window size and grid are same.If i expand the "edit" button in Grid control that edit column is not completely showing since i have made webpage and grid size as same.
The webpage should be expanded with gridview if i click edit button.
kunal pawar's Avatar
Needs Regular Fix
 
Join Date: Oct 2007
Location: Pune, India
Posts: 297
#6: Feb 8 '08

re: Resizing Web Page


Ok,
in window.open set another parament with width & height i.e. scrollbars=yes.

If ur gridview size becomes more than window size then scroll bar become visible
Member
 
Join Date: Nov 2007
Posts: 49
#7: Feb 11 '08

re: Resizing Web Page


Hi,

But i do not want to use scroll bars.
Reply