Last post Aug 23, 2011 11:09 AM by duttavr
Jun 27, 2006 04:01 PM|s_j_b|LINK
Is it posible to change, or set the position/location of the output location of the response.write?????
Jun 27, 2006 05:09 PM|StrongTypes|LINK
Jun 27, 2006 05:15 PM|timbushell|LINK
Exactly: For example:
On the aspx page:
<asp:Label ID="MyLabelForText" runat="server" CssClass="MyStyle" />
On the code behind page (the aspx.vb page).. in the Page Load event (perhaps):
Jun 27, 2006 06:04 PM|Slick47|LINK
Jun 28, 2006 10:44 AM|duttavr|LINK
Yes we can do it, we can display text anywhere for the webpage using response.write.
check this code.
private void Button1_Click(object sender, System.EventArgs e)
Response.Write("<span id='Label1'' style='height:16px;width:120px;Z-INDEX: 102; LEFT: 288px; POSITION: absolute; TOP: 144px'>Ratnakar Dutt A.V</span>");
It display the text "Ratnakar Dutt A.V" in middle of the page.
Jun 03, 2008 12:05 AM|VincePap|LINK
Thanks for the info....nice tip
Feb 12, 2009 12:41 PM|aarti1434|LINK
I have written same Line but it is displaying not only the msg but the whole Line.
I am not getting where I am wrong?
Please guide me.
Thanks & Regards,
Aug 23, 2011 11:09 AM|duttavr|LINK
In my earlier reply < has been posted as <. You would need to use <
Use below. I've just tested. It's working fine.
public partial class _Default : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
Response.Write("<span id='Label1'' style='height:16px;width:120px;Z-INDEX: 302; LEFT: 388px; POSITION: absolute; TOP: 144px'>Select the User</span>");