Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Response.Write vs. Document.Write


Response.Write vs. Document.Write

Author
Message
daveofgv
daveofgv
Forum God
Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)

Group: Forum Members
Posts: 77, Visits: 335
Can anyone explain the difference between:





Response.Write("Hello World")





vs.





Document.Write("Hello World")





Also, why would you use those when you can just place a label on the page and use the label text property to fill in what you want????



Thanks in advanced



daveofgv
paul daniel
paul daniel
Forum God
Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)

Group: Forum Members
Posts: 19, Visits: 20
Hi



Response.Write is getting executed in Web Server (usually IIS) and is an ASP function which is used to write to response stream from asp.



document.write is javascript function which will be executed on the client side once it reaches the browser.





Thanks,

Paul daniel


.NET Application Development | C# Development
Destroyer
Destroyer
Forum God
Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)

Group: Forum Members
Posts: 244, Visits: 188
If it's a simple task such as popping an alert box it's best to use client side javascript, ie. Document.write because it's quicker and you won't be using any web server resources. General rule is if it can be accomplished on the client then only use client side script.

Destroyer Smooooth
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search