Hello,
My doubt is arround webforms and its load programatically . I have a class
derived from System.Web.UI.P age (clsWebForm), with their own properties and
methods. Inside another webform I instanciate clsWebForm, filling their
properties, but how can I load the webform inside the web explorer?
public class clsWebForm : System.Web.UI.P age
{
....
}
In another page:
private void cmdOk_Click(obj ect sender, System.EventArg s e)
{
clsWebForm clsFrm = new clsWebFormt();
// here I want to load the new web form bu I do not
how!!!!
}
Thanks! 3 921
On Fri, 7 Oct 2005 06:51:03 -0700, josepm
<jo****@discuss ions.microsoft. com> wrote: private void cmdOk_Click(obj ect sender, System.EventArg s e) { clsWebForm clsFrm = new clsWebFormt(); // here I want to load the new web form bu I do not how!!!! }
If you want to move processing to a second web form there are a few
techniques that can work. There is Response.Redire ct, Server.Transfer ,
and in 2.0 there is a cross page post back.
I have an article on these topics here: http://odetocode.com/Articles/421.aspx
What you don't want to do is create a webform with the new operator,
as you really need ASP.NET's help to properly create and initialize a
form and get it into the processing pipeline.
HTH,
--
Scott http://www.OdeToCode.com/blogs/scott/
Thanks Scott, but I 'm deceived because I thought I could treat webForms as
pure classes and manipulate so. So, I will use Response... and pass Request
parameters until migrate to ASP 2.0.
Best regards,
josepm
Webforms are just classes, and you can technically new one up and
manipulate it ... but ...
To do this the right way you need the runtime to create and init the
form via PageParser.GetC ompiledPageInst ance, because that method knows
who to call for code-generation of the ASPX page, who to call to wire
up implicit event handlers, and all the other "stuff" that needs to
happen for a webform that is going to be part of an HTTP request and
render to the client.
--
Scott http://www.OdeToCode.com/blogs/scott/
On Fri, 7 Oct 2005 08:47:02 -0700, josepm
<jo****@discuss ions.microsoft. com> wrote: Thanks Scott, but I 'm deceived because I thought I could treat webForms as pure classes and manipulate so. So, I will use Response... and pass Request parameters until migrate to ASP 2.0.
Best regards,
josepm This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Daniel |
last post by:
Hello!!!
I'm creating controls dinamically in ASP.NET using VB. The problem is that i
don't know how to catch the event of each button that i've create (the
buttons are created dinamically).
Any ideas??
Thanks!!!
|
by: Marco |
last post by:
How I can create TextBox dinamically.
I have to create 10 textbox dinamically which name will be txtBox_01,
txtBox_02, etc...
Thanks.
|
by: Fabio Cavassini |
last post by:
I have this code that load HTML tags (no including <html> or <body>)
into a DIV dinamically...
after correctly retrieving the HTML, I assign it to my DIV Container
document.getElementById(containerid).innerHTML=page_request.responseText
now from main page....I need to get a reference to an Object (a
textbox) contained in the dinamically loaded HTML
|
by: Cesar Ronchese |
last post by:
Hello.
I have a WebForm that contains a Panel object. This panel, at design time is
empty. When running, I need to create dinamically a Label and a WebControl
(built from the same project).
I can create the label and the webcontrol dinamically with no errors, but
only the Label appear in the panel when the page is shown in the client
browser.
|
by: 3Cooks |
last post by:
I have a windows application written in Visual Basic 6.0 that is going
to be redeveloped in dotNET. We are trying to decide if we should
deploy using Webforms or Winforms and I need advice from someone who is
not on my team.
The VB 6.0 application is used by approximately 100 users. All users
reside in-house. There is an existing external website that will use
some of the same components but the two applications are separate.
The...
| |
by: Mateo |
last post by:
I have char *array and it is dinamically alocated....
When I pass it to other function, I need to determine size of this array....
Problem: sizeof operator does not work with dinamically alocated
arrays!?!?!
How can I determine size of dinamically alocated array.... ?
Please advice...
Thx!
|
by: nemesis.saurabh |
last post by:
hi,
Can we dynamically load a user control in the web form.
problem i am facing is i have 2 user controls: uc1 and uc2.
when my page is loading the functions and variables in the uc1 is
conflicting with uc2.
if possible can we have this scenario:
i have both the user controls in my web form. if i want to load uc1, i
can disable uc2...possible both ways.
|
by: valerio |
last post by:
Hello all
I would like to dinamically allocate an array of array of structures.
To explain this:
struct file{ char* fileName,int inode) myfiles;
struct file{ char* fileName,int inode) mydirs;
but I would like to do it dinamically with linked list.
I am able to do it for myfiles, but not with mydirs.
Pseudo-code is ok.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
|
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...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
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
| |