473,386 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Variables in ASPX page

HI,
my problem is that i need to create an aspx page(no code
behind) assigning a variable value to an HTML control (eg
labels, buttons captions).
There is any example on line?
thanks
Fabrizio.
Nov 15 '05 #1
2 7477
If you place HTML controls on a page, and do not use runat=server, you can
work with them the same way you do any other HTML page that submits back to
a server.

For ASP.NET, you will have to pull the values from Request.Form() collection
to process them.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Fabrizio" <fm******@libero.it> wrote in message
news:01****************************@phx.gbl...
HI,
my problem is that i need to create an aspx page(no code
behind) assigning a variable value to an HTML control (eg
labels, buttons captions).
There is any example on line?
thanks
Fabrizio.

Nov 15 '05 #2
Use the same way as legacy ASP

<input value="<%Response.Write("blahblah")%>"
o
<input value="<%=("blahblah")%>" >
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Wayne | last post by:
Hi, I'm new to .NET and have a question about the use of static variables vs. session variables in a web form in C#. Instead of using a session variable to hold a string to persist during...
9
by: William LaMartin | last post by:
I have a problem, mentioned here before, of Session and Application variables disappearing at one site but not at others or on my development computer. The problem is illustrated by an example...
6
by: martin | last post by:
Hi, I am a web page and a web user control. My web user control is placed in my web page using the following directive <%@ Register TagPrefix="uc1" TagName="Header"...
8
by: JJ | last post by:
Hi, What's the preferred way to pass variables around to different pages now? Or if my reading servers me right they are retained in memory for the life of the app, correct? How do I access...
5
by: Mark Hanson | last post by:
I would like to access code behind .aspx.vb protected variables from the aspx web page like this <%# _ProtectedVariable %>. The only way I can get the value is if I do Me.DataBind on each...
2
by: nicholas | last post by:
When I transfer variables from 1 page to another I add the variables in the querystring. So, in the script of my asp-button I put for ex.: response.redirect("thenewpage.aspx?myvar=<%=...
5
by: melinda | last post by:
Ok, sorry if this is dumb ?, but I'm extremely new to ASP.net. I've used PHP and am now trying to figure out the best way (or any way) to do this in ASP.net: I have a page where the user enters...
2
by: ramendra | last post by:
Hello, I am having some trouble with passing session variables from one aspx page to another aspx page through an applet. Let me clarify the problem more ... I have an aspx page which...
6
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick...
0
by: bharathreddy | last post by:
Here I will given an example on how to access the session, application and querystring variables in an .cs class file. Using System.Web.HttpContext class. 1) For accesing session variables :...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.