Click here to Skip to main content
16,010,539 members
Home / Discussions / C#
   

C#

 
GeneralRe: While loop in C# Pin
Luc Pattyn3-Apr-08 10:21
sitebuilderLuc Pattyn3-Apr-08 10:21 
GeneralInteresting problem with XML nodes Pin
Krippers3-Apr-08 1:12
Krippers3-Apr-08 1:12 
GeneralRe: Interesting problem with XML nodes Pin
panoskatws3-Apr-08 3:12
panoskatws3-Apr-08 3:12 
GeneralThanks Pin
Krippers3-Apr-08 4:05
Krippers3-Apr-08 4:05 
GeneralRe: Interesting problem with XML nodes [modified] Pin
PIEBALDconsult3-Apr-08 7:16
mvePIEBALDconsult3-Apr-08 7:16 
GeneralRe: Interesting problem with XML nodes Pin
Krippers4-Apr-08 2:28
Krippers4-Apr-08 2:28 
GeneralRe: Interesting problem with XML nodes Pin
PIEBALDconsult5-Apr-08 7:05
mvePIEBALDconsult5-Apr-08 7:05 
Generaldrop down list selected index changed event Pin
chithra.r3-Apr-08 1:10
chithra.r3-Apr-08 1:10 
hi all can anyone help me in this regard..in my application iam using a drop down list and in the selected index changed event of that iam writing some code to make the controls visible false.this works fine when the page is loaded for the first time.when i select any value from the drop down next time this event is not executed.is the selected index changed event works only for the first time when the page loads??

here is the code..

ASPX page



<asp:Panel ID="pnlRegions" runat="server" Height="29px" Width="500px">
<asp:Label ID="lblregion" CssClass="lbl" Font-Bold="true" runat="server" Text="Region"></asp:Label>&nbsp;&nbsp;&nbsp;

<asp:DropDownList ID="ddlRegion" runat="server" Width="165px" OnSelectedIndexChanged="ddlRegion_SelectedIndexChanged"/>&nbsp;&nbsp;&nbsp;

<asp:Button ID="btnFind" runat="server" Text="Find Restaurant" OnClick="btnFind_Click"/> <br /><br />
</asp:Panel>

<asp:Panel ID="pnlDisplay" runat="server" >

<asp:Label id="lblTotalRest" runat="server" CssClass="NormalText" Text="Total Records" Width="186px" ></asp:Label>

&nbsp;&nbsp;&nbsp;

<asp:Button id="btnDisplay" runat="server" CssClass="button" Text="Display" OnClick="btnDisplay_Click"></asp:Button>
</asp:Panel>





CODE BEHIND



protected void ddlRegion_SelectedIndexChanged(object sender, EventArgs e)
{

ClearClassData();

pnlDisplay.Visible = false;
}



protected void btnFind_Click(object sender, EventArgs e)
{

grdDescList.Visible = true;
pnlDisplay.Visible = true;

GetRestaurant("REGION");
ClearClassData();

}



the event get executed only after the find button click when i checked by putting breakpoints..



any help will be appreciated.

pintoo

GeneralRe: drop down list selected index changed event Pin
rah_sin3-Apr-08 1:17
professionalrah_sin3-Apr-08 1:17 
GeneralRe: drop down list selected index changed event Pin
chithra.r3-Apr-08 2:47
chithra.r3-Apr-08 2:47 
QuestionHow to reset binding of textbox control? [modified] Pin
Hum Dum3-Apr-08 0:54
Hum Dum3-Apr-08 0:54 
AnswerRe: How to reset binding of textbox control? Pin
darkelv3-Apr-08 0:59
darkelv3-Apr-08 0:59 
GeneralRe: How to reset binding of textbox control? Pin
Hum Dum3-Apr-08 1:03
Hum Dum3-Apr-08 1:03 
GeneralRe: How to reset binding of textbox control? Pin
darkelv3-Apr-08 1:48
darkelv3-Apr-08 1:48 
Generalaccess datetime Pin
Razvan Dimescu3-Apr-08 0:49
Razvan Dimescu3-Apr-08 0:49 
GeneralRe: access datetime Pin
Rob Philpott3-Apr-08 0:54
Rob Philpott3-Apr-08 0:54 
GeneralRe: access datetime Pin
Razvan Dimescu3-Apr-08 0:58
Razvan Dimescu3-Apr-08 0:58 
GeneralRe: access datetime Pin
Rob Philpott3-Apr-08 5:20
Rob Philpott3-Apr-08 5:20 
QuestionTreeview problem... Pin
cooltoad1233-Apr-08 0:32
cooltoad1233-Apr-08 0:32 
QuestionUniversal remote control for windows mobile PDA Pin
Kaushal.evanuissance2-Apr-08 23:50
Kaushal.evanuissance2-Apr-08 23:50 
QuestionI have a question about invoke function in C++ dll, please help! [modified] Pin
warrior2-Apr-08 23:06
warrior2-Apr-08 23:06 
GeneralRe: I have a question about invoke function in C++ dll, please help! Pin
papadimitriou3-Apr-08 2:02
papadimitriou3-Apr-08 2:02 
GeneralRe: I have a question about invoke function in C++ dll, please help! Pin
nelo_3-Apr-08 2:05
nelo_3-Apr-08 2:05 
QuestionHow can I prepare Ribben Control in WPF application? Pin
bankey10102-Apr-08 21:22
bankey10102-Apr-08 21:22 
AnswerRe: How can I prepare Ribben Control in WPF application? Pin
Colin Angus Mackay2-Apr-08 22:44
Colin Angus Mackay2-Apr-08 22:44 

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.