Click here to Skip to main content
16,006,013 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: checking blank spaces Pin
M LN Rao20-Sep-06 23:48
M LN Rao20-Sep-06 23:48 
GeneralRe: checking blank spaces Pin
Guffa21-Sep-06 6:24
Guffa21-Sep-06 6:24 
GeneralRe: checking blank spaces Pin
Sebastian T Xavier21-Sep-06 1:03
Sebastian T Xavier21-Sep-06 1:03 
AnswerRe: checking blank spaces Pin
zarkan21-Sep-06 4:52
zarkan21-Sep-06 4:52 
Questionaccess one user control from other on same page Pin
max_dev2006@yahoo.com20-Sep-06 19:10
max_dev2006@yahoo.com20-Sep-06 19:10 
AnswerRe: access one user control from other on same page Pin
Christian Graus20-Sep-06 19:36
protectorChristian Graus20-Sep-06 19:36 
GeneralRe: access one user control from other on same page Pin
max_dev2006@yahoo.com20-Sep-06 20:01
max_dev2006@yahoo.com20-Sep-06 20:01 
GeneralRe: access one user control from other on same page Pin
Christian Graus20-Sep-06 20:11
protectorChristian Graus20-Sep-06 20:11 
Do you not know how to use delegates ? Google has lots of examples...

public class UserControl1
{
public delegate void PassAString(string s);
public PassAString OnPass;

public void SomeEvent(object sender, EventArgs ea)
{
if (PassAString != null) PassAString("this is the value");
}
}

public class Form1
{
protected UserControl1 u1;
protected UserControl2 u2;

private void GetAString(string s)
{
u2.TheString = s;
}

private void OnLoad(//etc
{
u1.OnPass += new UserControl1.PassAString(this.GetAString);
}

}

So, the main form hooks up the event, and when it fires, it takes the value it's passed ( whatever that is ) and sends it to the other control.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

GeneralRe: access one user control from other on same page Pin
max_dev2006@yahoo.com20-Sep-06 22:13
max_dev2006@yahoo.com20-Sep-06 22:13 
AnswerRe: access one user control from other on same page Pin
minhpc_bk20-Sep-06 20:00
minhpc_bk20-Sep-06 20:00 
QuestionHow to reload webpage? Pin
cheeken2u20-Sep-06 17:39
cheeken2u20-Sep-06 17:39 
AnswerRe: How to reload webpage? Pin
max_dev2006@yahoo.com20-Sep-06 19:16
max_dev2006@yahoo.com20-Sep-06 19:16 
AnswerRe: How to reload webpage? Pin
Guffa20-Sep-06 20:03
Guffa20-Sep-06 20:03 
Questioncomplicated (passing parameter) Pin
mellvincent20-Sep-06 16:56
mellvincent20-Sep-06 16:56 
AnswerRe: complicated (passing parameter) Pin
minhpc_bk20-Sep-06 20:02
minhpc_bk20-Sep-06 20:02 
Questiontabs Pin
lakshmi_sri20-Sep-06 13:17
lakshmi_sri20-Sep-06 13:17 
AnswerRe: tabs Pin
minhpc_bk20-Sep-06 14:28
minhpc_bk20-Sep-06 14:28 
AnswerRe: tabs Pin
Khawar Abbas120-Sep-06 19:02
Khawar Abbas120-Sep-06 19:02 
AnswerRe: tabs Pin
shivarishxxxx21-Sep-06 4:28
shivarishxxxx21-Sep-06 4:28 
QuestionCookie session Pin
kol_y@mail.ru20-Sep-06 9:44
kol_y@mail.ru20-Sep-06 9:44 
AnswerRe: Cookie session Pin
Guffa20-Sep-06 10:03
Guffa20-Sep-06 10:03 
QuestionDropDownlist backwards Pin
Britney S. Morales20-Sep-06 9:43
Britney S. Morales20-Sep-06 9:43 
AnswerRe: DropDownlist backwards Pin
sundar15620-Sep-06 10:19
sundar15620-Sep-06 10:19 
GeneralRe: DropDownlist backwards Pin
minhpc_bk20-Sep-06 14:32
minhpc_bk20-Sep-06 14:32 
AnswerRe: DropDownlist backwards Pin
minhpc_bk20-Sep-06 14:33
minhpc_bk20-Sep-06 14:33 

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.