You must Sign In to post a response.
  • Category: ASP.NET

    How to view Response.Write to textbox in asp.net

    hai,

    how to view Response.Write to textbox in asp.net

    eg:

    Response.Write("Whose Online List: <br>");
    WhoseHandler.WhoseOnline();


    please give the answer,

    thanks in advance.
  • #763076
    Hi
    What is your issue?

    Can you share more

    I assume post in your issue this may be

    Response.write means in this command only shows output our web browser only.

    If you need textbox assign value means use this

    step 1

    Textbox1.Text="India is Big Country";
    Textbox1.Text=TextBox2.Text

    Name : Dotnet Developer-2015
    Email Id :kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #763078
    Hello Kavitha,

    The thing you are telling which is not possible because response.write writes string on web browser and textbox contains string inside it. Either you can use textbox to show online users or else response.write method.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #763083
    Hai Kavitha,
    Response.Write() internally uses TextWriter() which is used to write the text object on the browser window.
    For more details abouts the Response.Write(), you can go through the below link:

    http://www.hanselman.com/blog/ASPNETResponseWriteAndResponseOutputWriteKnowTheDifference.aspx

    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com

  • #763094
    The response object is send response from server to browser, it deals with HTML markup tags.
    Response object is unable to deal with controls and its values
    Request object to used to deal with controls, if you wan to write in textbox you need to draw whole textbox with its values.
    see below snippet
    Response.write("<input type=text value=" + variable + ">")

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #763113
    thanks for your response,

    i want to write or display view in textbox

    from .WhoseOnline() function.

    eg

    WhoseHandler.WhoseOnline();



    textbox1.text=WhoseHandler.WhoseOnline();

    please give the answer,

    thanks in advance.

  • #763116
    Hi

    Can you share the namespace for this

    WhoseHandler.WhoseOnline()

    or this is your separate method means share that code here thats quickly solve your issue.

    Name : Dotnet Developer-2015
    Email Id :kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.


Sign In to post your comments