Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 October 17th, 2006, 08:28 PM
Registered User
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to get the current calling form in a class?

I have a function in a class library. This function needs to find some controls on a form based on a XML file which contains some controls name, and before the page is loaded, re-set these controls property. Every web page of the application will need to call this function. I didn't pass in the form as a parameter because I think there must be a way to access the current caller form. isn't this true?
System.Web.HttpContext.Current.Request.Form doesn't work, i think because the form is not loaded yet.
How do I do this?


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Class within ASPX file kingroon ASP.NET 2.0 Basics 3 July 9th, 2008 07:43 AM
How to laod a form and unload current form? amit_mande@yahoo.com Pro VB.NET 2002/2003 0 August 11th, 2006 09:15 AM
calling private method from another class jack_3 C# 3 December 16th, 2005 07:56 PM
error ... when calling a class HumaMunir Java Espanol 2 May 7th, 2005 01:09 PM
Calling SubClass attributes from parent class saravananedu Classic ASP Components 1 June 21st, 2004 01:59 AM

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