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

ASP.NET

 
GeneralRe: problem related to linkbuuton Pin
Sun Rays16-Dec-07 18:35
Sun Rays16-Dec-07 18:35 
GeneralRe: problem related to linkbuuton Pin
N a v a n e e t h16-Dec-07 18:43
N a v a n e e t h16-Dec-07 18:43 
GeneralRe: problem related to linkbuuton Pin
Sun Rays16-Dec-07 19:15
Sun Rays16-Dec-07 19:15 
GeneralRe: problem related to linkbuuton Pin
John-ph16-Dec-07 18:28
John-ph16-Dec-07 18:28 
GeneralQUestions regarding the Checkbox list in ASP.Net Pin
sam L16-Dec-07 17:13
sam L16-Dec-07 17:13 
GeneralRe: QUestions regarding the Checkbox list in ASP.Net Pin
Sun Rays16-Dec-07 17:59
Sun Rays16-Dec-07 17:59 
GeneralRe: QUestions regarding the Checkbox list in ASP.Net Pin
N a v a n e e t h16-Dec-07 18:34
N a v a n e e t h16-Dec-07 18:34 
GeneralRe: QUestions regarding the Checkbox list in ASP.Net Pin
sam L17-Dec-07 6:03
sam L17-Dec-07 6:03 
Hi there, thanks for the speedy response... well I just started out with .Net so I really didnt know about
these generic classes in 2.0, thanks for pointing out, I looked at them and the sample code you posted,

Following is what I kinda came up with.


//Member Level variable
string mJurisdictionSelected = null;

protected void GetUserSelectedValues()
{
string dateSelected = this.mDateRestrictor.SelectedItem.Value.ToString();
//this.dateTest.Text = dateSelected;
//for (int num = 0; num < mJuristictionCheckBoxList.Items.Count; num++)
//string[] jurisdictionName;
string jurisdictionName = null;

System.Collections.Generic.List<string> list = new System.Collections.Generic.List<string>();


foreach (ListItem item in this.mJuristictionCheckBoxList.Items)
{
//ArrayList jurisdictionName = new ArrayList();
if (item.Selected)
{
list.Add(item.Text);
//jurisdictionName = item.Text.ToString();
// this.StateTest.Text = jurisdictionName.ToString();
}
}

this.mDateSelected = dateSelected.ToString();
if (!string.IsNullOrEmpty(jurisdictionName))
//this.mJurisdictionSelected = jurisdictionName.ToString();
this.mJurisdictionSelected = list.ToString();
}

Now as you can see, after retrieving the values (from drop down) into string variable dateSelected
and from checkboxlist into string variable mJurisdictionSelected, I need to pass them to our company's
middle tier folks...so thats why I'm putting them in member level variables....the question regarding
the implemenation you showed me is that " should I just create System.Collections.Generic.List as a member
level thing, outside of the function and then directly keep the values into the list of type System.Collections.Generic.List.
Instead of putting them into string mJurisdictionSelected? I mean the issue is that user could be selecting more than one
value from the checkbox list so is this implemenation you told me about would be able to hanle more than one entry selected
by user in the checkbox list?????? Or do I need like an array or something??? Please help??

Thanks
Sam
-----------------------------
If you don't go after what you want, you'll never have it.
If you don't ask, the answer is always no. If you don't step
forward, you're always in the same place. -Nora Roberts

GeneralApp_GlobalResources vs App_LocalResources Pin
c_sk16-Dec-07 16:37
c_sk16-Dec-07 16:37 
Generalproblem with UpdatePanel and PlaceHolder Pin
amin_behzadi16-Dec-07 10:20
professionalamin_behzadi16-Dec-07 10:20 
Questionhow to drag drop,edit with asp.net treeview Pin
rama charan16-Dec-07 3:18
rama charan16-Dec-07 3:18 
GeneralAJAX scriptmanager in master page Pin
Ahmad Adnan16-Dec-07 2:30
Ahmad Adnan16-Dec-07 2:30 
GeneralRe: AJAX scriptmanager in master page Pin
Bassam Saoud16-Dec-07 3:16
Bassam Saoud16-Dec-07 3:16 
GeneralRe: AJAX scriptmanager in master page Pin
Ahmad Adnan16-Dec-07 3:23
Ahmad Adnan16-Dec-07 3:23 
GeneralCannot get network and local printers on the web server Pin
reza toorani16-Dec-07 1:22
reza toorani16-Dec-07 1:22 
GeneralAbout reading properties file Pin
c_sk15-Dec-07 20:09
c_sk15-Dec-07 20:09 
GeneralRe: About reading properties file Pin
Bassam Saoud16-Dec-07 2:09
Bassam Saoud16-Dec-07 2:09 
GeneralRe: About reading properties file Pin
c_sk16-Dec-07 3:42
c_sk16-Dec-07 3:42 
GeneralUsing ADOX to chnage an MS Access query definition Pin
Mack Ait-Aoudia15-Dec-07 16:02
Mack Ait-Aoudia15-Dec-07 16:02 
Generalasp:Panel Displays Differently in Different Browsers Pin
Brendan Vogt15-Dec-07 10:50
Brendan Vogt15-Dec-07 10:50 
GeneralRe: asp:Panel Displays Differently in Different Browsers Pin
Bassam Saoud15-Dec-07 19:36
Bassam Saoud15-Dec-07 19:36 
GeneralRe: asp:Panel Displays Differently in Different Browsers Pin
Brendan Vogt15-Dec-07 22:56
Brendan Vogt15-Dec-07 22:56 
GeneralRe: asp:Panel Displays Differently in Different Browsers Pin
Guffa16-Dec-07 0:30
Guffa16-Dec-07 0:30 
QuestionRe: asp:Panel Displays Differently in Different Browsers Pin
Brendan Vogt16-Dec-07 2:30
Brendan Vogt16-Dec-07 2:30 
AnswerRe: asp:Panel Displays Differently in Different Browsers Pin
Guffa16-Dec-07 3:27
Guffa16-Dec-07 3:27 

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.