Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Response.Write vs HTML

Featured Replies

hey guys,

 

So here is a little background first.... I work with a guy in the states who has been building a piece of software over the last 10 years.

When he started he used Classic ASP as he was a microsoft boy ... also PHP wasn't too popular back then, Unfortunately due to the complexity of the software (plus there are only two developers ... him and now me... ) it's NOT feasible to recode it to a different format

 

He's progressed with some modern stuff but still uses "Old school" methods if you ask me ... so my question is which of these scenarios is the better option and WHY!??

 

Method One:

 

<%
Response.Write "<script src=""linktoscripthere""></script>"
Response.Write "<div class=""myclassname myclass2"">"
Response.Write "<p>Hello world, it's nice to meet you</p>"
Response.Write "<p>Lets print out your name: " & name & "</p>"
Response.Write "</div>"
%>

 

 

Method Two:

 

<script src=""linktoscripthere""></script>
<div class="myclassname myclass2">
<p>Hello world, it's nice to meet you</p>
<p>Lets print out your name: <%= name %></p>
</div>

 

 

I personally think method two ... it's much cleaner to read, however sometimes it can get hard reading the logic. But personally two for me! I also feel it puts marginally slightly less strain on the server so quicker load times as it uses the browser more.

Whats your views on the methods... which would you use? ( If you are a PHP guy like me and know NOTHING about ASP... imagine the "Response.Write" calls are "echos")

I would say method two was the better way of doing things. It is cleaner, easier to read and how you would now do it is ASP.Net

  • 3 months later...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.