Re: Is any way to palce a control(button/label) at a location on webPage in runtime??
- From: chandan <ck.kislay@xxxxxxxxx>
- Date: Wed, 5 Dec 2007 21:32:09 -0800 (PST)
On Nov 30, 5:46 pm, Hans Kesting <invalid.han...@xxxxxxxxxxxxxxx>
wrote:
After serious thinking chandan wrote :
Hi,
Is any way to palce a control(button/label) at a location on webPage
in runtime??
In page_load envet I am adding a button on the page in the contol
collection of a panel but not able to specify the location of the
button since button controls did not have location property in web.
I am trying to place a control at mouse click position on the
page.also I am not getting the mouse down position on the page I am
working on that.Actually I am windows Programmer and all those things
are done in windows very smoothly.
Let me know if any solution!!
Cheers,
Chandan Kumar
Web applications are very different from windows apps (as you found
out).
There is no direct interaction between the codebehind and the form, as
they are living on different machines: codebehind runs on the server
and the form "runs" on the client's browser.
Control alternates between the two: when the server is done, it spits
out HTML text. This is received by the browser and rendered into a
screen. When the user clicks a button, an HTTP request (or "POST") is
sent back to the server. The browser then waits until the server sends
a new HTML response.
You will never get the server to react to mouse-events in the browser:
the delay would be too much.
With additional coding in javascript and the use of Ajax technologies
you could get a somewhat smoother response, but not the same as in a
windows application.
Hans Kesting- Hide quoted text -
- Show quoted text -
Thanks Hans for giving this knowledge. Actually I think this problem
in windows mode.Now suppose I have a panel on the page and then can I
palce some control on panel at runtime as I think there is click
envetn on panel.I am trying to do this if you have some clue then send
me.
Actually I am workig on a charting application and I have to place
annotation on the chart at run time.
Thanks,
Chandan kumar
.
- Follow-Ups:
- Re: Is any way to palce a control(button/label) at a location on webPage in runtime??
- From: PJ on Development
- Re: Is any way to palce a control(button/label) at a location on webPage in runtime??
- Prev by Date: ajax web chat
- Next by Date: Re: Serve a file on page load (save file as)
- Previous by thread: ajax web chat
- Next by thread: Re: Is any way to palce a control(button/label) at a location on webPage in runtime??
- Index(es):
Loading