Click here to Skip to main content
15,901,982 members
Home / Discussions / C#
   

C#

 
GeneralNot enough storage is available to complete this operation Pin
Tal Humy29-Jul-14 3:20
Tal Humy29-Jul-14 3:20 
QuestionRe: Not enough storage is available to complete this operation Pin
Eddy Vluggen29-Jul-14 6:24
professionalEddy Vluggen29-Jul-14 6:24 
GeneralRe: Not enough storage is available to complete this operation Pin
Bernhard Hiller29-Jul-14 20:43
Bernhard Hiller29-Jul-14 20:43 
QuestionOData 4 $InLineCount Pin
JoelPark28-Jul-14 10:58
JoelPark28-Jul-14 10:58 
AnswerRe: OData 4 $InLineCount Pin
OriginalGriff28-Jul-14 21:38
mveOriginalGriff28-Jul-14 21:38 
AnswerRe: OData 4 $InLineCount Pin
Kornfeld Eliyahu Peter28-Jul-14 22:20
professionalKornfeld Eliyahu Peter28-Jul-14 22:20 
GeneralRe: OData 4 $InLineCount Pin
JoelPark29-Jul-14 3:37
JoelPark29-Jul-14 3:37 
QuestionHow to retain Dropdownlist value after selectedindexchanged and postback?? Pin
lan160727-Jul-14 14:07
lan160727-Jul-14 14:07 
Hello!

I'm new here hope you guys can give me a suggestions/answers to my questions.

I have an aspx page which has two dropdownlist the first dropdownlist populates school level and the second dropdownlist populate available section depending on the selected school level. I had enabled already the EnableViewState to TRUE from the page and to my master page. Below is my code.

On my Page Load event I populate the school level, I have this condition
If(!IsPostback)
{
PopulateSchoolLevel();
}

on my first dropdownlist selectedindexchanged event I have this code

Datatable dt = New DataTable;
dt=_queries("StoredProcedure",ddlLevel.SelectedValue.Tostring());
if(dt.rows!=0)
{
ddlSection.Datasource=dt;
ddlSection.ValueTextField="Section";
ddlSection.DataValueField="id";
ddlSection.DataBind();
}

now every time i select a value in my second dropdownlist it always return to the first index or first value. how can i retain the selected value on my second dropdownlist? I'm having burned a lot of time for this screnario.. please help me.

Thanks
AnswerRe: How to retain Dropdownlist value after selectedindexchanged and postback?? Pin
Ron Nicholson28-Jul-14 4:48
professionalRon Nicholson28-Jul-14 4:48 
AnswerRe: How to retain Dropdownlist value after selectedindexchanged and postback?? Pin
Member 924543128-Jul-14 8:21
Member 924543128-Jul-14 8:21 
GeneralRe: How to retain Dropdownlist value after selectedindexchanged and postback?? Pin
lan160729-Jul-14 14:01
lan160729-Jul-14 14:01 
GeneralRe: How to retain Dropdownlist value after selectedindexchanged and postback?? Pin
Member 924543130-Jul-14 0:38
Member 924543130-Jul-14 0:38 
GeneralRe: How to retain Dropdownlist value after selectedindexchanged and postback?? Pin
lan160730-Jul-14 19:35
lan160730-Jul-14 19:35 
Questiontag clipboard text Pin
Jassim Rahma27-Jul-14 11:59
Jassim Rahma27-Jul-14 11:59 
AnswerRe: tag clipboard text Pin
Garth J Lancaster27-Jul-14 13:20
professionalGarth J Lancaster27-Jul-14 13:20 
Questionhow do i get a table in gridview according to combobox fields? Pin
Sajeev Unni27-Jul-14 7:29
Sajeev Unni27-Jul-14 7:29 
AnswerRe: how do i get a table in gridview according to combobox fields? Pin
Pete O'Hanlon27-Jul-14 8:09
mvePete O'Hanlon27-Jul-14 8:09 
AnswerRe: how do i get a table in gridview according to combobox fields? Pin
Swinkaran28-Jul-14 19:09
professionalSwinkaran28-Jul-14 19:09 
QuestionMVC unit testing Pin
Marsh8727-Jul-14 3:09
Marsh8727-Jul-14 3:09 
AnswerRe: MVC unit testing Pin
Pete O'Hanlon27-Jul-14 3:41
mvePete O'Hanlon27-Jul-14 3:41 
AnswerRe: MVC unit testing Pin
Marsh8727-Jul-14 8:52
Marsh8727-Jul-14 8:52 
GeneralRe: MVC unit testing Pin
Pete O'Hanlon27-Jul-14 10:02
mvePete O'Hanlon27-Jul-14 10:02 
GeneralRe: MVC unit testing PinPopular
Dave Kreskowiak27-Jul-14 10:03
mveDave Kreskowiak27-Jul-14 10:03 
GeneralRe: MVC unit testing Pin
User 571134828-Jul-14 0:54
User 571134828-Jul-14 0:54 
QuestionMouse set in the form Pin
PozzaVecia27-Jul-14 1:47
PozzaVecia27-Jul-14 1:47 

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.