Moving Web Control Programmatically

  • Thread starter Thread starter fripper
  • Start date Start date
F

fripper

I have a VB .Net web app and I want to reposition a textbox control on the
webform programmatically. I'm not sure how to do that ... can someone help
please?

Thanks ...
 
I have a VB .Net web app and I want to reposition a textbox control on
the webform programmatically. I'm not sure how to do that ... can
someone help please?

You can't really... because there is no X's and Y's on the web.

You can put a placeholder in a different location and move it there
instead.
 
Hmmm ... I was afraid that was the case. I gather that I cannot draw, say,
a rectangle on the web form ... it appears that all the GDI+ graphics
capabilities are available to Windows forms only.
 
Hmmm ... I was afraid that was the case. I gather that I cannot draw,
say, a rectangle on the web form ... it appears that all the GDI+
graphics capabilities are available to Windows forms only.

Yup exactly.

If you need to draw complex shapes, you may want to consider using another
technology such as Flash, Java, or Winforms in IE.
 
That's not quite true. I know that you can dynamically create image
files and display those on web pages.

I don't think that is what the OP was looking for. You can't arbitrarily
draw lines anywhere on a webpage in ASP.NET.

Creating image files is a different matter - but once you've created the
image file, you still can't arbitrarily place the file anywhere on the
screen.
 
ACK

Greg

Lucas Tam said:
I don't think that is what the OP was looking for. You can't arbitrarily
draw lines anywhere on a webpage in ASP.NET.

Creating image files is a different matter - but once you've created the
image file, you still can't arbitrarily place the file anywhere on the
screen.
 
This has been a helpful exchange ... thanks very much. I have a VB .Net web
application and at one point I want to draw a bar graph where the length and
position of each bar is related to the value of particular variables (think
charting in Excel). I had hoped to do this without having to get into
client side scripting but it appears that I cannot.

Guess I cannot put it off any further ... gotta learn JavaScript!

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top