Click here to Skip to main content
15,907,497 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Cache Expiration in ASP.NET Pin
Abhishek Sur19-Nov-09 22:04
professionalAbhishek Sur19-Nov-09 22:04 
QuestionCache Expiration Problem in ASP .Net Pin
prem kumar19-Nov-09 17:19
prem kumar19-Nov-09 17:19 
AnswerRe: Cache Expiration Problem in ASP .Net Pin
AlexeiXX319-Nov-09 19:32
AlexeiXX319-Nov-09 19:32 
AnswerRe: Cache Expiration Problem in ASP .Net Pin
Paulo Zemek20-Nov-09 0:22
Paulo Zemek20-Nov-09 0:22 
QuestionUser Control loading through tags? Pin
samir8019-Nov-09 11:27
samir8019-Nov-09 11:27 
AnswerRe: User Control loading through tags? Pin
Abhijit Jana19-Nov-09 16:02
professionalAbhijit Jana19-Nov-09 16:02 
GeneralRe: User Control loading through tags? Pin
samir8020-Nov-09 5:06
samir8020-Nov-09 5:06 
QuestionUser Controls Pin
samir8019-Nov-09 10:52
samir8019-Nov-09 10:52 
Hi-

So here's the situation:

I have two user controls (u1, u2). Both has one dropdown in them. Now, one dropdown depends on the other one. So i have created a new container user control (u3) (i need to for other reasons too). I want to load dynamically those two user controls (u1 and u2) in this new container user control (u3). Now since those two user controls (u1 and u2) depend on each other, i have created an event in u1. I want to catch that event in the container user control (u3), so i can call the appropriate method in u2. How can i catch the event in the container user control if i am dynamically loading the other two user controls??

For example, Lets say i have an event called u1Changed in u1, and if i have this in the code behind for container user control U3

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim u1 As Control = LoadControl("u1.ascx")
Controls.Add(u1)
Dim u2 As Control = LoadControl("u2.ascx")
Controls.Add(u2)

End Sub

Since u1 and u2 are dynamically loaded, how can i do the below part? Below code does not work since u1 can't be recognised
Private Sub u1Changed() Handles u1.u1Changed
u2.updateu1stuff()
End Sub


Thanks in advance
AnswerRe: User Controls Pin
Abhishek Sur19-Nov-09 11:10
professionalAbhishek Sur19-Nov-09 11:10 
GeneralRe: User Controls Pin
samir8019-Nov-09 11:24
samir8019-Nov-09 11:24 
GeneralRe: User Controls Pin
Abhijit Jana19-Nov-09 16:01
professionalAbhijit Jana19-Nov-09 16:01 
QuestionMaster Page Loading vs. Content Page Reload [modified] Pin
dboy22119-Nov-09 10:18
dboy22119-Nov-09 10:18 
AnswerRe: Master Page Loading vs. Content Page Reload Pin
Abhishek Sur19-Nov-09 11:13
professionalAbhishek Sur19-Nov-09 11:13 
GeneralRe: Master Page Loading vs. Content Page Reload Pin
dboy22119-Nov-09 17:37
dboy22119-Nov-09 17:37 
QuestionEdit Template in Gridview Pin
sparlay_pk19-Nov-09 9:18
sparlay_pk19-Nov-09 9:18 
AnswerRe: Edit Template in Gridview Pin
Abhishek Sur19-Nov-09 11:17
professionalAbhishek Sur19-Nov-09 11:17 
AnswerRe: Edit Template in Gridview Pin
Abhijit Jana19-Nov-09 16:03
professionalAbhijit Jana19-Nov-09 16:03 
AnswerRe: Edit Template in Gridview Pin
Vimalsoft(Pty) Ltd19-Nov-09 19:48
professionalVimalsoft(Pty) Ltd19-Nov-09 19:48 
QuestionProblem with creating a windows component. Pin
sarang_k19-Nov-09 8:47
sarang_k19-Nov-09 8:47 
AnswerRe: Problem with creating a windows component. Pin
Abhishek Sur19-Nov-09 11:05
professionalAbhishek Sur19-Nov-09 11:05 
Questiondifference between website and web application Pin
md_azy19-Nov-09 7:58
md_azy19-Nov-09 7:58 
AnswerRe: difference between website and web application Pin
Abhishek Sur19-Nov-09 8:08
professionalAbhishek Sur19-Nov-09 8:08 
GeneralRe: difference between website and web application Pin
Paulo Zemek20-Nov-09 0:27
Paulo Zemek20-Nov-09 0:27 
QuestionHow to fire the DropDownList.SelectedIndexChanged event Pin
MacIntyre19-Nov-09 7:09
MacIntyre19-Nov-09 7:09 
AnswerRe: How to fire the DropDownList.SelectedIndexChanged event Pin
Abhishek Sur19-Nov-09 8:19
professionalAbhishek Sur19-Nov-09 8:19 

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.