CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > migration_to_asp.net.migrating_from_asp.net_1.x_to_asp.net_2.0 Tags:
Item Type: NewsGroup Date Entered: 3/6/2006 6:54:28 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 12 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
schickster
Asp.Net User
Help! Complex inline code with server side includes missing access to page variables!3/6/2006 6:54:28 PM

0/0

I don't even know where to start to ask for help in this problem so I will just put it all out there and please accept my apologies for the length of the code.

This application was written in 1.1 and was apparently working.  What I cannot figure out is how to get it to work in 2.0 with the least amount of changes.  The least amount of changes is very important as this type of code appears everywhere in this 1500 page application.  It appears that the various variables and objects were being passed from one page to another but now it does not work.  The last bit of code (in orange below) does not recognize the object 'credentials' and I need someone to tell me how to make that work, again, with the least amount of changes.  Thank you.

Here is the sequence of this application.  When you see an include file, the color of the text will tell you if that is part of the file.

(default = index.aspx, redirect to:  login.aspx)

index.aspx

    <!-- #include file="includes/mySystemObjectsFile.aspx" -->

         <%@ Import Namespace="CompanyName.Authentication" %>

                     Credentials credentials = null;                     

                     /* Credentials Session Variables. */

                     if (Session["credentials"] == null) {

                        credentials = new Credentials();

                        Session["credentials"] = credentials;

                    } else 

                       credentials = (Credentials)Session["credentials"];

                    }

   <!-- #include file="includes/mySecurityCheckFile.aspx" -->

         <%

            if (!credentials.getIsLoggedIn()) {

                     Response.Redirect("/login.aspx");

                     return;

            }

        %>

 

 

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
CodeProject: Application Configuration File Variables. Free source ... Type-safe access to read-only or read/write configuration file variables using ... The provided source code includes an example where the same mechanism was ...
12 Steps to a Bigger, Better, Debugger | evolt.org Resist the temptation from the darkside, never code CSS inline or write .... Every server-side language has a method for outputting complex ...
Client-Side Functionality in a Server Control Registering the array variable with the page (using the key ... Emitting the value of the ClientID into inline script (or into code in a script library) can ...
RatproxyDoc - ratproxy - Google Code - Project documentation Jul 2, 2008 ... If -d option is missing, ratproxy will treat all URLs as being a part of the .... in hopes of restoring the original server-side state. ...
Whitepapers - www.technicalinfo.net does not supply the malicious code inline, but is downloaded from ..... When coding the server-side application, it is extremely important to ensure that ...
PTM Inline Perl/HTML Hybrid Parser Project - SourceForge.Net 04.16.06 - Direct PPA Access Forbidden page DTD header changed to HTML ... You' ll notice we've stored function code for this page in the "ptm.pt_" file. ...
Inline Script inside an ASP.NET AJAX UpdatePanel - Infinities Loop If I'm missing something please paste in some code to help me understand :) ..... someone is using a callback to call a server-side method, ...
A List Apart: Topics: Code: Scripting Most require you to use lengthy inline script elements and inline event handlers . ... XMLHttpRequest() object to communicate with server-side scripts. ...
Web Authoring FAQ (Web Design Group) Examples of server-side inclusion are Server Side Includes (SSI, .... The navigation links and the page's main content are placed inside separate DIV ...
ASP Page 5 - Bytes Site Map Page 5-ASP (Microsoft's Active Server Pages) web scripting language - Ask ... Can I do a servser side include to a file on a different server in asp? ...

Videos:
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared to Ruby-on...




Search This Site:










logging application block for vb project

connection to sql express

please help! - read web file as binary

master page ... child page ... add a child page specific stylesheet?

setting up source code vesion of dnn as well as a run time version

impersonation problems

regular expression help needed

re:"the new administration home page" of the "extending the administration abilities"

sql database

include files...

how can i get different images on my web.sitemap masterpage

dnn 3.0.12 smtp server test please include settings in email

deploy with asp.net 2.0 obfuscation/precompile tools via vwd

looking for a free client-side calendar control (not a dropdown or popup)

simple question

dropdowns used to filter a gridview are not working with the masterpage

using "throw" in debug causes a dialog box

'object reference not set to an instance of an object' when clicking on 'edit text'

how to define gridview paramaters for update sql

style builder and properties

run dts packets via a web page

help not found message

how to check if a session is created or not?

detecting which html control fired the postback event

directory class

sql server 2000 - 2005

creating containers like smcculloch.net

have to click twice on asp.net menu control

referencing????

multiple datasources in a connection string

 
All Times Are GMT