Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Binding checkbox with the data returned by sql query
Previous Previous
 
Next Next
New Post 3/28/2008 7:41 AM
User is offline ran_78
1 posts
10th Ranked


Binding checkbox with the data returned by sql query 

Hi all,

I have designed a webform having 78 checkboxes. Each checkbox will store the value in the SQL table in the column named "RESULT". The result column is of char type which stores TRUE or FALSE based on whether the checkbox is checked or not. The table has another column as questionid. i have to store in the table for a particular questionID whether the checkbox is checked or unchecked.

When i query the table using SQLDATAREADER i get multiple rows. How to associate each row to the corresponding checkbox. My checkbox name is checkbox1,checkbox2 etc.  Am i suppose to use loop or is there any other logic.

Can u please provide me a help as i am struggling with this logic.

Thanks in advance

 
New Post 3/29/2008 3:32 AM
User is offline Sebastian Leupold
12276 posts
www.deutschnetnuke.de
1st Ranked












Re: Binding checkbox with the data returned by sql query 

I suggest to use the same procedure as e.g. the Links module for binding URLs. Source code can be downloaded from the project's download page.


Sebastian Leupold



DotNetNuke Project UserDefinedTable
DotNetNuke Project XML/XSL
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Binding checkbox with the data returned by sql query
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Web Development and Strategy Firm
The Risdall Interactive Agency s websites, strategies, branding, & promotion in digital space.
www.Risdall.net/
Windsor Management Group
Fund Accounting Software for K12 Education.
Infinitevisions.com
Convert Visitors to Customers
In order to bring value to your users, we must first understand them. VIVIDSITES will help you build a custom web application and interactive marketing tools that your users will thank you for. We marry high-end creative with head banging technology to entertain and convert visitors into paying customers. Call 314.514.0505 or visit us at http://www.vividsites.com to find out how.
- V I V I D S I T E S -

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke® logo are registered trademarks of DotNetNuke Corporation
Hosted by MaximumASP