473,396 Members | 2,129 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,396 software developers and data experts.

Declaring a variable in aspx page and assigning the value in code behing ASP.Net

Developed a web application in ASP.Net (Framework 1.0), in which I have used
public variable

which is defined in the aspx page and in the code behind will have some
calculations and the

assign some value to that variable.

Example:
reports.aspx
------------
<TABLE cellSpacing="2" cellPadding="0" width="700" align="center">
<%=tstrHTML%>
</TABLE>
reports.aspx.vb
---------------

private void displayReports()
{
tstrHTML = "<tr><td align=left>First Name</td>" & _
"<td align=left>Last Name</td>" & _
"<td align=left>Salary</td>"

tstrHTML += "<tr><td align=left>Binny</td>" & _
"<td align=left>Federal</td>" & _
"<td align=left>230000</td>"

}

The application was running fine for the last couple of years and all of a
sudden having some

problem.

Can any one of you help me on figuring out this issue.

Thanks

Oct 22 '08 #1
1 4708
"aresung" <u47104@uwewrote in message news:8c0f40bdb6b12@uwe...
Developed a web application in ASP.Net (Framework 1.0), in which I have
used
public variable
Are you still running .NET 1.0? What service pack?

What version of Windows are you running? What service pack?

Has anything changed recently? Do you use Windows Update or any other
automatic update technology? Have you recently installed any software?
Perhaps IE7?

Do you have any other versions of the .NET Framework on this machine?

It is unusual for someone to still be running such an ancient version of
..NET. Usually, when people are stuck on ancient versions, they are at least
running .NET 1.1. Is there a reason that you haven't at least upgraded to
..NET 1.1? I'm concerned that the unusual action of not upgrading could be
related to the unusual problem of your application suddenly breaking.

Oh, BTW, what is the exact problem you're seeing? Is it an exception? If so,
then please post the entire exception, including any InnerException. You can
do this by surrounding the breaking code in a Try/Catch/End Try block and
then displaying ex.ToString().

--
John Saunders | MVP - Connected System Developer

Oct 22 '08 #2

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

Similar topics

6
by: BigDadyWeaver | last post by:
I am using the following code in asp to define a unique and unpredictable record ID in Access. <% 'GENERATE UNIQUE ID Function genguid() Dim Guid guid =...
3
by: Geoff Winsor | last post by:
Hi, I am experiencing a problem with recalling a session variable which stores whether a person is logged in to a "members only" section of a website. This area of the site has been working...
6
by: Mike | last post by:
I have a function that is called when the user clicks the submit button, during this function i also set a varaible to "Y" due to that this function does a post back to the page then redirects....
41
by: Miguel Dias Moura | last post by:
Hello, I am working on an ASP.NET / VB page and I created a variable "query": Sub Page_Load(sender As Object, e As System.EventArgs) Dim query as String = String.Empty ... query =...
3
by: markaelkins | last post by:
Hi. I am trying to enter a variable in the treenodesrc of a treenode. I am basically trying to send an ID variable into sql to return different records. I've searched everywhere and cannot find the...
8
by: rendle | last post by:
I have a MSIL/performance question: Is there any difference between declaring a variable once and assigning to it multiple times, and declaring and assigning multiple times? For example: //...
3
by: jbeteta | last post by:
Hello, I have a problem declaring variables. I need to create an object oRpte as ReportClass on WebForm1.aspx and be able to use its value on WebForm2.aspx. For declaring the property oRpte()...
1
by: Ilya N. Golubev | last post by:
There is already one function processing pointer values this way. And there may easily appear more, including wrappers for this function. For purposes of further discussion, consider simplified...
8
by: HMS Surprise | last post by:
I looked in the language but did not find a switch for requiring variables to be declared before use. Is such an option available? Thanks, jvh
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.