473,803 Members | 3,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hidden Text Field Occasionally Missing Data on Postback

Greetings.

I have an app that's been in production for 3-4 years that is hosted at an
ISP. I have an aspx control on the page that uses a few hidden text fields
for repositioning logic executed on the server postback. These text fields
"always" have data in them. About 5 months ago we started to receive
intermitent errors that reveals at postback the value in the text field's
value is gone.

I am wondering if there hasn't been an upgrade or something at the ISP that
somehow is causing this intermittent problem. It happens regardless of the
version of IE we are using. It happens both during high volume during the day
but also in the off hours...so server loading doesn't seem to be the issue.

This is so weird...of course the ISP wants to say its our code...and I'd
love for it to be...but this logic has not been touched in a few years.

Any ideas...sorry it's not much to go on.

Regards,

Paul

---------------------------------------
Jackson-Reed, Inc. www.jacksonreed.com
Sep 24 '07 #1
4 2570
I'm not sure if this is the issue, but here are two things you should make
sure of:

Since your code was obviously written in ASP.NET 1.1 if it has been in
production for 3-4 years:
1. Make sure your server still supports .NET 1.1
2. Make sure all your code is in the same version of .NET; ASP.NET 1.1 and
2.0 are not compatible with each other

I'm not sure what else to say right now, since I haven't seen the code, but
I would suggest migrating the code to ASP.NET 2.0 (or if you want to wait
for it, the soon to come 3.0) if you haven't already. Migrating from 1.1 to
2.0 can be a big task, but it is usually worth it, and it makes it easier to
write code using Visual Studio 2005 (you don't have to worry about telling
it what version of .NET you want your code compiled to, you would have to do
this if you want your code compiled to 1.1). If you post your code, someone
(maybe even me) might be able to help you more. Good Luck!
--
Nathan Sokalski
nj********@hotm ail.com
http://www.nathansokalski.com/

"Paul Reed" <Pa******@discu ssions.microsof t.comwrote in message
news:0B******** *************** ***********@mic rosoft.com...
Greetings.

I have an app that's been in production for 3-4 years that is hosted at an
ISP. I have an aspx control on the page that uses a few hidden text fields
for repositioning logic executed on the server postback. These text fields
"always" have data in them. About 5 months ago we started to receive
intermitent errors that reveals at postback the value in the text field's
value is gone.

I am wondering if there hasn't been an upgrade or something at the ISP
that
somehow is causing this intermittent problem. It happens regardless of the
version of IE we are using. It happens both during high volume during the
day
but also in the off hours...so server loading doesn't seem to be the
issue.

This is so weird...of course the ISP wants to say its our code...and I'd
love for it to be...but this logic has not been touched in a few years.

Any ideas...sorry it's not much to go on.

Regards,

Paul

---------------------------------------
Jackson-Reed, Inc. www.jacksonreed.com

Sep 24 '07 #2
"Paul Reed" <Pa******@discu ssions.microsof t.comwrote in message
news:0B******** *************** ***********@mic rosoft.com...
These text fields "always" have data in them.
Where does the data come from...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 24 '07 #3
Mark,

In this case it is a Date which represents the current view of a schdule.
This data is placed in the hidden field when the page is first sent to the
client...which is subsequently posted back.

Paul

---------------------------------------
Jackson-Reed, Inc. www.jacksonreed.com
"Mark Rae [MVP]" wrote:
"Paul Reed" <Pa******@discu ssions.microsof t.comwrote in message
news:0B******** *************** ***********@mic rosoft.com...
These text fields "always" have data in them.

Where does the data come from...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 24 '07 #4
Nathan,

Yes...I've been dreading upgrading to 2.0. Actually many of my clients are
still on hold as well with that. I am using a lot of the Infragistic's stuff
and Crystal so I am sure that will all be fun.

Regarding versions...my Error message that comes back shows both the
framework and ASP as 1.1.4322.2407 (so its service pack 1 for version 1.1). I
am also going to investigate if any of the hotfix rollups have been applied
by the ISP that were issued after the 1.1. service pack was released.

Here is the code...

Private Sub btnPrevMo_Click (ByVal sender As Object, ByVal e As
System.EventArg s) Handles btnPrevMo.Click
Dim workDate As New Date()

'Lets PreRender know that a control event caused postback
controlHandled = True

workDate = CDate(txtBeginD ate.Text)

setupDates(work Date.AddMonths(-1))

'build the schedule
buildSchedule()
End Sub

The line of code that fails is the CDate(txtBeginD ate.Text) where the
BeginDate for some reason has nothing in it...thus I get a cast failure. This
field should never be blank...ever...

Thanks...

Paul


--
---------------------------------------
Jackson-Reed, Inc. www.jacksonreed.com
"Nathan Sokalski" wrote:
I'm not sure if this is the issue, but here are two things you should make
sure of:

Since your code was obviously written in ASP.NET 1.1 if it has been in
production for 3-4 years:
1. Make sure your server still supports .NET 1.1
2. Make sure all your code is in the same version of .NET; ASP.NET 1.1 and
2.0 are not compatible with each other

I'm not sure what else to say right now, since I haven't seen the code, but
I would suggest migrating the code to ASP.NET 2.0 (or if you want to wait
for it, the soon to come 3.0) if you haven't already. Migrating from 1.1 to
2.0 can be a big task, but it is usually worth it, and it makes it easier to
write code using Visual Studio 2005 (you don't have to worry about telling
it what version of .NET you want your code compiled to, you would have to do
this if you want your code compiled to 1.1). If you post your code, someone
(maybe even me) might be able to help you more. Good Luck!
--
Nathan Sokalski
nj********@hotm ail.com
http://www.nathansokalski.com/

"Paul Reed" <Pa******@discu ssions.microsof t.comwrote in message
news:0B******** *************** ***********@mic rosoft.com...
Greetings.

I have an app that's been in production for 3-4 years that is hosted at an
ISP. I have an aspx control on the page that uses a few hidden text fields
for repositioning logic executed on the server postback. These text fields
"always" have data in them. About 5 months ago we started to receive
intermitent errors that reveals at postback the value in the text field's
value is gone.

I am wondering if there hasn't been an upgrade or something at the ISP
that
somehow is causing this intermittent problem. It happens regardless of the
version of IE we are using. It happens both during high volume during the
day
but also in the off hours...so server loading doesn't seem to be the
issue.

This is so weird...of course the ISP wants to say its our code...and I'd
love for it to be...but this logic has not been touched in a few years.

Any ideas...sorry it's not much to go on.

Regards,

Paul

---------------------------------------
Jackson-Reed, Inc. www.jacksonreed.com


Sep 24 '07 #5

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

Similar topics

10
3708
by: Randell D. | last post by:
Folks, Perhaps someone can figure this out - this is 'the process of my script' I have a form whereby I can add multiple contacts to a single address. There is only one firstname/lastname/telephone box - when the user clicks the add button, I read the values from the form fields and record them into a hidden text input field. This part works because during debugging, I have converted the <input type=hidden> into a <input type=text>...
2
5152
by: Guadala Harry | last post by:
In an aspx file I have declared a hidden field like this: <input id="hTestVal" type=hidden value="-1" runat="server"> Defined in the code-behind like this: protected System.Web.UI.HtmlControls.HtmlInputHidden hTestVal; In client-side JavaScript I set the value like this: document.all("hTestVal").Value = "yo"; The problem is that the value of the hidden field (hTestVal) does not get
3
2817
by: Benjamin Gavin | last post by:
Hi all, I recently stumbled upon a bug in the ASP.NET framework handling of ImageButton based postbacks. The issues derives from the fact that IE and Mozilla handle the case of a missing image file differently. In both cases, the setup for the problem is: 1. Create a form with an ImageButton whose ImageURL is invalid, specify an AlternateText value 2. Submit the form through that ImageButton
2
2655
by: Not Me | last post by:
Hi, In a datagrid's itemcommand method, I can use DataGridCommandEventArgs/item/cells/text to bring up a specific field from a row that was accessed. However, I wish to lookup data from that row, that is in a hidden field on the datagrid. How can I do this? I would appreciate a simple answer (if one exists) as you may notice I'm new to this :p
2
4250
by: Rodusa | last post by:
I have a hidden field inside one datagrid which I can't get to make it keep its state after a postback event. Look field: <input type="hidden" id="TxtHiddenItem_id" name="TxtHiddenItem_id" runat="server" value='<%# DataBinder.Eval(Container, "DataItem.item_id").ToString() %>'> I can get around that using an asp.net textbox control, but it doesn't
2
3278
by: xenophon | last post by:
I added a Hidden Form Field to a form in the code behind. The value is being set in JavaScript client-side, but it is not persisting to the server in the PostBack. I know the value is being set properly because it displays in the document.write method. Create a simple page and paste the below in the code-behind (ASP.NET 1.1-SP1) using System;
4
11720
by: WB | last post by:
Hi, I need to validate a hidden input in my webform to ensure that it's got value. The controls look something like this: <input id="HidSelectedStates" type="hidden" runat="server" /><br /><br /> <asp:Button ID="BtnSubmit" runat="server" OnClick="BtnSubmit_Click" Text="Submit" ValidationGroup="submitStates" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator1"
3
2138
by: ThunderMusic | last post by:
Hi, I have a custom control that draws many thing on the screen including a hidden field. This hidden field's value is modified through client code. What I want to do is the following : When there is a postback of the page, I want this hidden field to keep it's value (from the viewstate or something like this). Is there an easy solution? Would you need the code. Right now I : create a HiddenField in the PreRender of my control store...
8
18827
by: =?Utf-8?B?cGVsZWdrMQ==?= | last post by:
i have a GridView and a hidden field : <asp:TemplateField Visible=false > <ItemTemplate > <asp:HiddenField Value="<%#Eval("isActive")%>" id="hidIsActive" runat=server /> </ItemTemplate> </asp:TemplateField> 1)when i check the sorce of html i dont see the hidden field - why is that? 2)on RowDataBound event, when i check the rows i want to check thr above field value,and to do something on certin conditions.
0
9566
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10555
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10300
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7607
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2974
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.