hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : How to set value for field using ASP
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

How to set value for field using ASP

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-10-2007, 09:00 AM
tomasr tomasr is offline
Newbie
 
Join Date: Aug 2005
Posts: 26

How to set value for field using ASP


Hi,

I am trying to set value for html input field using asp code below. Unfortunatelly asp code appears as text in browser and it does not executed by server. Any suggestion?

<input value="<% Response.Write(licSUM) %>" name="lic1" />

Regards,
Tomas

Reply With Quote


Sponsored Links
  #2  
Old 10-18-2007, 10:05 AM
Omnibot Omnibot is offline
WHT Addict
 
Join Date: Jul 2007
Location: Tomy
Posts: 100
Your code looks fine; make sure the file is named with extension of .asp and you are using Windows hosting (IIS) and not Apache.

Reply With Quote
  #3  
Old 10-18-2007, 10:14 AM
tomasr tomasr is offline
Newbie
 
Join Date: Aug 2005
Posts: 26
Eveyrthing is set correct but code does not work.

It only work when I taje the whole html code into asp brackets, like this

<% Response.Write("<input value='" + licSUM + "' name='lic1' />") %>

Any clue?

Reply With Quote
Sponsored Links
  #4  
Old 10-23-2007, 11:17 AM
under_gravity under_gravity is offline
Web Hosting Guru
 
Join Date: Oct 2007
Location: South Africa
Posts: 252
try:
<input value=<% =licSUM %> name="lic1"/>

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Cloud Security Firm Symplified Names SVP of Worldwide Field Operations Web Hosting News 2012-05-14 14:50:45
Private Cloud Developer Nebula Names SVP of Global Field Operations Web Hosting News 2012-01-17 12:52:54
Web Host Go Daddy to Throw Holiday Party at Chase Field Web Hosting News 2011-12-09 20:57:38
Data Center Firm DSA Encore Names Vice President of Construction Web Hosting News 2011-10-12 18:59:53
Landing Page Practices to Improve Marketing ROI with Tim Ash of SiteTuners Web Hosting News 2011-08-09 22:20:06


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?