473,394 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

comma delimited string stick them into a session variable.

I created table controls and loop through table control row

Expand|Select|Wrap|Line Numbers
  1.  
  2.  public virtual void Button_Click(object sender, EventArgs args)
  3.               {
  4.  
  5.                  RegistrationTableControl recControls = (RegistrationTableControl)this.Page.FindControlRecursively("RegistrationTableControl");
  6.                   if (recControls != null)
  7.                   {
  8.                      RegistrationTableControlRow[] rows = recControls.GetSelectedRecordControls();
  9.  
  10.                      Session.Add("SelectedRows", rows );
  11. }
  12.  
  13.  
recControls.GetSelectedRecordControl calls this

Expand|Select|Wrap|Line Numbers
  1.  public RegistrationTableControlRow[] GetSelectedRecordControls()
  2.         {
  3.  
  4.             ArrayList selectedList = new ArrayList(25);
  5.             foreach (RegistrationTableControlRow recControl in this.GetRecordControls())
  6.             {
  7.                 if (recControl.RegistrationRecordRowSelection.Checked) {
  8.                     selectedList.Add(recControl);
  9.                 }
  10.             }
  11.             return (RegistrationTableControlRow[])(selectedList.ToArray(Type.GetType("MBSolutions.UI.Controls.ShowRegistrationTablePage.RegistrationTableControlRow")));
  12.  
  13.         }
  14.  

I need to create a comma delimited string and stick them into a session variable.
Feb 11 '11 #1
0 1179

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: BrianDH | last post by:
String = “val1, val2, va3, va4” Insert value into col1 (String) I am looking for an example of an insert statement that parses a string with multi values separated by a comma. I want to...
7
by: hazz | last post by:
yes i should know this but ... V,-1,1,2,-1,333,5 I would like to return the value from any position within the comma delimited string position 1 is "v" position 2 is "-1" position 6 is...
1
by: booksnore | last post by:
I have an application where a have a single admin database and multiple customer databases containing the customer's warehouse data. In the admin database I hold a user table and also a client...
5
by: TRB_NV | last post by:
I'm losing information from my Session when I change pages or start the same page over again. I simplified the code so the example is really clear. The sample code that follows is supposed to...
6
by: Charles Zhang | last post by:
I want to reuse ADO.NET Connection object from session to session, are there any way to do that? Thanks Charles Zhang
1
by: rn5a | last post by:
A MS_Access DB table has 3 columns - ID, UID & Location. ID is an AutoNumber column, UID is a foreign key (the primary key UID column resides in another table). Each UID can have multiple entries...
2
by: pieandpeas | last post by:
Hi I have a string e g. "Address1,Address2,Address3,Town,Zip" of multiple lines, quite like a database table.. i need to export this to a CSV file, i've heard examples of using a filescript object...
1
by: vishakha209 | last post by:
I want to use comma delimited string as an input for stored procedure. how to delimit the string and access the values? can anybody help ....
1
by: silpa | last post by:
I have a comma delimited text file which has data like this. 1, 11, "abc" ,False 2, 12, "def" ,False 3, 13, "ghi" ,False 4, 14, "jkl" ,False The name of this file is somedata.txt. Only one...
1
by: adz1809 | last post by:
The title says it all, I need to converta string into a varialbe so that I can gain another value. here is the code so far: sub ValidateValues() DFData =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.