Click here to Skip to main content
15,899,631 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: checkbox Pin
Xmen Real 20-Feb-09 17:34
professional Xmen Real 20-Feb-09 17:34 
GeneralRe: checkbox Pin
netJP12L21-Feb-09 5:54
netJP12L21-Feb-09 5:54 
AnswerRe: checkbox Pin
Christian Graus21-Feb-09 11:23
protectorChristian Graus21-Feb-09 11:23 
QuestionConvert from ASP.NET Development to IIS Pin
jeffwask20-Feb-09 4:54
jeffwask20-Feb-09 4:54 
AnswerRe: Convert from ASP.NET Development to IIS Pin
vaghelabhavesh20-Feb-09 6:15
vaghelabhavesh20-Feb-09 6:15 
GeneralRe: Convert from ASP.NET Development to IIS Pin
jeffwask20-Feb-09 6:50
jeffwask20-Feb-09 6:50 
GeneralRe: Convert from ASP.NET Development to IIS Pin
vaghelabhavesh20-Feb-09 7:10
vaghelabhavesh20-Feb-09 7:10 
QuestionUsercontrol with DropDownList OnselectedIndexChanged event hangs Pin
Herman<T>.Instance20-Feb-09 2:32
Herman<T>.Instance20-Feb-09 2:32 
The topic subject mind sounds familiar to some of you.

My problem
An Asp.NET website (3.5) with AJAX has a USER CONTROL.
This Control exists of a Label and of a DropDownList.

In my WebPage I consume the control and that works.

In the control I have stated:
<code>
public event EventHandler SelectedIndexChanged;
protected void Page_Init(Object sender, EventArgs e)
        {
            this.SelectedIndexChanged += new EventHandler(DDL_Osic);
        }

protected void DDL_Osic(Object sender, EventArgs e)
        {
            if (this.SelectedIndexChanged != null)
               this.SelectedIndexChanged(sender, e);
            
        }
</code>


and in the ASPX of the User Control
<asp:DropDownList runat="server" ID="ddlTBM" CssClass="PromptValue" Width="100%"
 AutoPostBack="true" OnSelectedIndexChanged="DDL_Osic"/>


In the Webpage it says in the aspx
<uc1:PromptSelecteerTBM ID="PromptTBM" runat="server"
 OnSelectedIndexChanged="PromptTBM_OSIC" />


In the codebehind of the webpage:
protected void PromptTBM_OSIC(Object sender, EventArgs e)
        {
                LaadTBMZones(0);
        }

And now the problem:
What happens that if I change the selection of the DropDownList the event of the usercontrol is fired, it goes to the method in the webpage, than returns to the event/method of the usercontrol and returns to the codebehind of the webpage and then back again...and so on
What did I do wrong? How to stop this loop?
AnswerRe: Usercontrol with DropDownList OnselectedIndexChanged event hangs Pin
Greg Chelstowski20-Feb-09 3:27
Greg Chelstowski20-Feb-09 3:27 
GeneralRe: Usercontrol with DropDownList OnselectedIndexChanged event hangs Pin
Herman<T>.Instance20-Feb-09 3:30
Herman<T>.Instance20-Feb-09 3:30 
GeneralRe: Usercontrol with DropDownList OnselectedIndexChanged event hangs Pin
Greg Chelstowski20-Feb-09 3:35
Greg Chelstowski20-Feb-09 3:35 
GeneralRe: Usercontrol with DropDownList OnselectedIndexChanged event hangs Pin
Herman<T>.Instance20-Feb-09 3:39
Herman<T>.Instance20-Feb-09 3:39 
GeneralRe: Usercontrol with DropDownList OnselectedIndexChanged event hangs Pin
Greg Chelstowski20-Feb-09 3:46
Greg Chelstowski20-Feb-09 3:46 
GeneralRe: Usercontrol with DropDownList OnselectedIndexChanged event hangs Pin
Herman<T>.Instance20-Feb-09 5:06
Herman<T>.Instance20-Feb-09 5:06 
GeneralRe: Usercontrol with DropDownList OnselectedIndexChanged event hangs Pin
Herman<T>.Instance20-Feb-09 3:45
Herman<T>.Instance20-Feb-09 3:45 
QuestionQuiting from master page Pin
5fingers20-Feb-09 1:54
5fingers20-Feb-09 1:54 
AnswerRe: Quiting from master page Pin
farogh haider20-Feb-09 2:06
farogh haider20-Feb-09 2:06 
AnswerRe: Quiting from master page Pin
Abhijit Jana20-Feb-09 4:09
professionalAbhijit Jana20-Feb-09 4:09 
GeneralRe: Quiting from master page Pin
5fingers20-Feb-09 4:39
5fingers20-Feb-09 4:39 
QuestionInvalid postback or callback argument Pin
farogh haider20-Feb-09 1:42
farogh haider20-Feb-09 1:42 
AnswerRe: Invalid postback or callback argument Pin
Aman Bhullar20-Feb-09 1:56
Aman Bhullar20-Feb-09 1:56 
AnswerRe: Invalid postback or callback argument Pin
J4amieC20-Feb-09 2:19
J4amieC20-Feb-09 2:19 
QuestionAsynchorous post back problem... Pin
mr_muskurahat20-Feb-09 1:21
mr_muskurahat20-Feb-09 1:21 
AnswerRe: Asynchorous post back problem... Pin
praveen00322-Feb-09 0:51
praveen00322-Feb-09 0:51 
GeneralRe: Asynchorous post back problem... Pin
mr_muskurahat22-Feb-09 19:59
mr_muskurahat22-Feb-09 19:59 

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.