Click here to Skip to main content
15,897,273 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Refresh problem in Web Projects Pin
Talal Sultan22-Aug-07 2:35
Talal Sultan22-Aug-07 2:35 
Questionhow to access session variables/ ordinary variables in HTML Pin
Jagadeesh Jupalli22-Aug-07 1:19
Jagadeesh Jupalli22-Aug-07 1:19 
AnswerRe: how to access session variables/ ordinary variables in HTML Pin
Christian Graus22-Aug-07 1:21
protectorChristian Graus22-Aug-07 1:21 
QuestionDropdown list hiding my Drop down Menu Pin
.NET- India 22-Aug-07 1:16
.NET- India 22-Aug-07 1:16 
AnswerRe: Dropdown list hiding my Drop down Menu Pin
R. Giskard Reventlov22-Aug-07 2:18
R. Giskard Reventlov22-Aug-07 2:18 
QuestionEmbedding Real Player in ASP.NET web Application Pin
.NET- India 22-Aug-07 1:12
.NET- India 22-Aug-07 1:12 
QuestionOwa authentication through asp page Pin
Alpanama22-Aug-07 1:10
Alpanama22-Aug-07 1:10 
QuestionSelected index opf dropdown within a repeater always returns 0 Pin
oceanexplorer22-Aug-07 1:10
oceanexplorer22-Aug-07 1:10 
Hi,

I currently have a repeater that renders a series of dropdowns depending on data returned from the database.

When the user clicks next on the screen I want to cycle through the dropdowns in the repeater and stored the selectedindex of each into an array that will then be stored in session. So that if the user returns the values they selected will persist.

The code I have is a follows:

       <br />
int[] intArray = new int[RemapRepeater.Items.Count];<br />
DropDownList reMapDropDown = new DropDownList();    <br />
       <br />
for (int i=1; i <= RemapRepeater.Items.Count; i++)<br />
{<br />
   reMapDropDown = (DropDownList)RemapRepeater.Controls[i].FindControl("reMapDropDown");<br />
   intArray[i] = reMapDropDown.SelectedIndex;<br />
}<br />


However every dropdown returns a selected value of 0, as if it's picking up the values of the page when it was first rendered and not the values that have been selected.

Has anyone any ideas where I might be going wrong?

Regards

Paul Custance
AnswerRe: Selected index opf dropdown within a repeater always returns 0 Pin
Christian Graus22-Aug-07 1:22
protectorChristian Graus22-Aug-07 1:22 
GeneralRe: Selected index opf dropdown within a repeater always returns 0 Pin
oceanexplorer22-Aug-07 1:43
oceanexplorer22-Aug-07 1:43 
GeneralRe: Selected index opf dropdown within a repeater always returns 0 Pin
Christian Graus22-Aug-07 2:01
protectorChristian Graus22-Aug-07 2:01 
Questiondisplaying data on a chart Pin
Mamphekgo Bahula22-Aug-07 0:50
Mamphekgo Bahula22-Aug-07 0:50 
AnswerRe: displaying data on a chart Pin
Christian Graus22-Aug-07 1:19
protectorChristian Graus22-Aug-07 1:19 
QuestionTrusted Login Problem Pin
mihirhp22-Aug-07 0:34
mihirhp22-Aug-07 0:34 
AnswerRe: Trusted Login Problem Pin
R. Giskard Reventlov22-Aug-07 0:37
R. Giskard Reventlov22-Aug-07 0:37 
QuestionCompilation error Pin
Big Ralph22-Aug-07 0:31
Big Ralph22-Aug-07 0:31 
AnswerRe: Compilation error Pin
Goalie3522-Aug-07 3:11
Goalie3522-Aug-07 3:11 
QuestionAssigning roles to users using Windows Authentication Pin
JacquesDP22-Aug-07 0:10
JacquesDP22-Aug-07 0:10 
QuestionHow to refresh? Pin
kiran@p2softech21-Aug-07 23:53
kiran@p2softech21-Aug-07 23:53 
AnswerRe: How to refresh? Pin
Michael Sync22-Aug-07 0:01
Michael Sync22-Aug-07 0:01 
AnswerRe: How to refresh? Pin
\laddie24-Aug-07 0:45
\laddie24-Aug-07 0:45 
QuestionLoading Images to the page on SCROLLING only Pin
jophinmichael21-Aug-07 23:37
jophinmichael21-Aug-07 23:37 
AnswerRe: Loading Images to the page on SCROLLING only Pin
SimulationofSai22-Aug-07 0:00
SimulationofSai22-Aug-07 0:00 
QuestionBrowser compatibility problem! Pin
Affan Toor21-Aug-07 23:35
Affan Toor21-Aug-07 23:35 
AnswerRe: Browser compatibility problem! Pin
Christian Graus22-Aug-07 0:44
protectorChristian Graus22-Aug-07 0: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.