Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 4th, 2004, 08:01 AM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to swammingo
Default Pleas help - Urgent ...

Hello,

I am facing this horrible problem.
I am working on this reporting tool - web based - asp.net.

This project contains atleast a couple of hundred pages.When it was developed, it was compiled under .net framework 1.0 using VS.net 2002.

Let me describe the problem in detail:

As it is a reporting tool,we have a column page etc where the user can choose which colums of the table he wishes to see in the report.No external report tool is used ..pure asp.net datagrids and stuff.

Now on the final display page .. we have a function called on the page load which fetches the previous view state.
eg : txt_campaign_id = request.form("txt_campaign_id")

every page has these bunch of hidden textboxes.

so when i saw the code - i found out that out of the eight textboxes, only 2-3 or sometimes 3-4 were fetched.

If my iis has framework 1.0 - which it currently has, the pages work just fine ...no problems at all.

if i install 1.1 then -- my god !! there are horrible problems.

The only reason that the function which left out those textboxes are not causing the problem.

If without programmaticaly fetching the viewstate of the previous page, it is working in .net framework 1.0 why is it causing a problem in 1.1.


let me be more specific.

I have these 4 pages.

from page one to the fourth - i have eight textboxes which are used to store values.these textboxes are hidden so the user cant see it.

These pages are being used for reports ..so they store values like campaign id, from date, to date, user id, and query (sql query). Such type of thing is done in all the pages.

Now, in page one : there is server.transfer("page2.aspx",true) to move to the next page.
enableviewstatemac is false for all pages.

Now, page two has a method called : fetch_previous_state() which uses code like :

txt_from_date = request.form("txt_from_date")


This function is sometime fetching 2 textboxes , sometimes 4 - poor coding.

when i contacted the earlier developer ... he told me that as all the pages had same amount of hidden textboxes and their names are also same .. the values are automatically carried to the next page.

so they have left some of the textboxes and in the pages that have been written lately, they even have removed the function :(

All this is running excellent on framework 1.0. but when i installed 1.1 there are huge problems.when i debug the code ... i found out the the values of the textboxes that are not fetched using the code, are not being carried over to the next page which in reality is happening for 1.0.

what might be the problem ... to me myself sure ... i changed the settings in iis for .aspx pages to point to .net framework 1.0 and then it started working fine ...

but i cant fool my admin like this.he wants to remove framework 1.0 and install 1.1 ...

what can i do ? please post some answer cause for the past 10 hours all i am typing is like this :

txt_from_date.text = request.form("txt_from_date") ... the thing is - these are some of text boxes that are not fetched in the function.To make matters worse ... the developers have left out some in one page ...some in other ...so i cant just copy past in all ...

please help .......

thnx
 
Old September 4th, 2004, 09:47 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

A long story, but I must admit I have no idea what you're talking about / what the problem is.

What exactly is the problem? Are you saying you cannot retrieve a text value from a control when you post back?

And what is this:

txt_campaign_id = request.form("txt_campaign_id")

Are you assigning the value of a control (request.form returns the value) to a control (txt_campaign_id)? Or is txt_campaign_id a local variable?

Why not simply use txt_campaign_id.Text / txt_campaign_id.Value (depending on the type of the control)?

And why are you loading the values from ViewState? Even if you have ViewState disabled, the controls will still maintain their new values when you post back.....

If you try to summarize the problem, we may be able to help.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need urgent Help wunnavabk ASP.NET 2.0 Professional 1 March 14th, 2008 06:00 AM
Urgent Help Please hossrad Pro Visual Basic 2005 3 October 30th, 2007 02:02 PM
Urgent - help please vanitha SQL Server 2000 2 June 6th, 2007 10:42 AM
urgent ????????????????? nsr35 Beginning VB 6 0 October 3rd, 2005 04:43 AM
Pleas explain getint() krbhatnagar C++ Programming 2 December 14th, 2004 06:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.