Click here to Skip to main content
15,914,409 members
Home / Discussions / C#
   

C#

 
GeneralDataGrid TableStyles Pin
dennista15-Mar-05 9:03
dennista15-Mar-05 9:03 
GeneralRe: DataGrid TableStyles Pin
Kodanda Pani15-Mar-05 18:06
Kodanda Pani15-Mar-05 18:06 
GeneralRe: DataGrid TableStyles Pin
dennista16-Mar-05 3:31
dennista16-Mar-05 3:31 
GeneralFile IO in Webservice gives Error Pin
James Poulose15-Mar-05 8:21
James Poulose15-Mar-05 8:21 
GeneralRe: File IO in Webservice gives Error Pin
TylerBrinks15-Mar-05 9:46
TylerBrinks15-Mar-05 9:46 
QuestionHow to create a shallow copy of List<T> ? Pin
Andres Coder15-Mar-05 7:50
Andres Coder15-Mar-05 7:50 
AnswerRe: How to create a shallow copy of List<T> ? Pin
leppie15-Mar-05 8:51
leppie15-Mar-05 8:51 
GeneralSending a web form as parameter Pin
see0715-Mar-05 7:45
see0715-Mar-05 7:45 
Hello:
From a web form I’m sending to execute a function contained into a class, code in web form is:

bool que = WUC_CreDes.Class1.Hay_PostBack(this, w1,w1cx, w1ID, w2, w2cx, w2ID);

In class code is:

public static bool Hay_PostBack(WUC_CreDes.WebForm1 parent1, string w1,
string w1cx,
string w1ID,
string w2,
string w2cx,
string w2ID)
{
string cual = "";
cual = HttpContext.Current.Session["par1"].ToString();
parent1.Example.Controls.Clear();
if(cual == w1)
{
Control control = parent1.Page.LoadControl(w1cx);
control.ID = w1ID;
parent1.Example.Controls.Add(control);
}
else
{
Control control = parent1.Page.LoadControl(w2cx);
control.ID = w2ID;
parent1.Example.Controls.Add(control);
}
return false;
}

As you can see, I’m sending to function container into class my WebForm1 to create in function WUC dynamically created.

Thinking in a second web form, let us say, WebForm2, if within it I send to execute my function:

bool que = WUC_CreDes.Class1.Hay_PostBack(this, w1,w1cx, w1ID, w2, w2cx, w2ID);

How can I do to function Hay_PostBack, above mentioned work also for WebForm2 What I need to change because first parameter is WUC_CreDes.Web Form1 parent1?

I’ll thank your answers.

Greetings.

A.L.


El hombre que tiene amigos debe mostrarse amigo...
GeneralRe: Sending a web form as parameter Pin
Pushkar Pathak15-Mar-05 18:16
Pushkar Pathak15-Mar-05 18:16 
GeneralRe: Sending a web form as parameter Pin
see0716-Mar-05 11:59
see0716-Mar-05 11:59 
GeneralRe: Sending a web form as parameter Pin
see0722-Mar-05 7:00
see0722-Mar-05 7:00 
GeneralRe: Sending a web form as parameter Pin
see0722-Mar-05 12:20
see0722-Mar-05 12:20 
GeneralSystem.Timers problem Pin
sjhart15-Mar-05 7:17
sjhart15-Mar-05 7:17 
GeneralRe: System.Timers problem Pin
TylerBrinks15-Mar-05 8:20
TylerBrinks15-Mar-05 8:20 
GeneralPassing Safearray parameter to WebBrowser COM component Pin
simcho9915-Mar-05 3:45
simcho9915-Mar-05 3:45 
QuestionHow to show a child form when parent form is busy? Pin
oohungoo15-Mar-05 3:25
oohungoo15-Mar-05 3:25 
AnswerRe: How to show a child form when parent form is busy? Pin
tdciDoug15-Mar-05 4:22
tdciDoug15-Mar-05 4:22 
GeneralRe: How to show a child form when parent form is busy? Pin
oohungoo15-Mar-05 19:18
oohungoo15-Mar-05 19:18 
AnswerRe: How to show a child form when parent form is busy? Pin
James Poulose15-Mar-05 8:24
James Poulose15-Mar-05 8:24 
GeneralPivot table in .net Pin
Prabhakar.A15-Mar-05 3:20
Prabhakar.A15-Mar-05 3:20 
GeneralRe: Pivot table in .net Pin
Ravindra Sadaphule15-Mar-05 5:33
Ravindra Sadaphule15-Mar-05 5:33 
GeneralRe: Pivot table in .net Pin
Prabhakar.A15-Mar-05 19:50
Prabhakar.A15-Mar-05 19:50 
GeneralReflex between objects! Help! Pin
oohungoo15-Mar-05 3:15
oohungoo15-Mar-05 3:15 
GeneralRe: Reflex between objects! Help! Pin
mav.northwind15-Mar-05 4:32
mav.northwind15-Mar-05 4:32 
GeneralTake this as challenging task for smart device application Pin
sivaji raju15-Mar-05 2:31
sivaji raju15-Mar-05 2:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.