checkbox and textbox insertion in

Posted on 2011-10-12
Last Modified: 2012-05-12
I have a pdf file which show:

Required. Check the appropriate level of SSI from the list
___Superficial incisional primary (SIP)
___Superficial incisional secondary (SIS)
___Deep incisional primary (DIP)
___Deep incisional secondary (DIS)
___ Organ/space: __

For this I made a serie of separated checkbox controls and texbox control.
The problem I am having is, the user can only choose one option , bu id the choose the last (Organ/Space, then they can add more information into that selection and then send out to the database)..

My code so far looks like the one below, can someone give some ideas how to do this
<td colspan="2" style="height: 30px">
            <span style="color: #FF0000">*</span> Specific Events<br />
            <asp:CheckBox ID="eventdetailsSSI1" runat="server" Text="SIP" />
            Superficial Incision Primary (SIP)<br />
            <asp:CheckBox ID="eventdetailsSSI2" runat="server" Text="SIS" />
            Superficial Incision Primary (SIS)<br />
            <asp:CheckBox ID="eventdetailsSSI3" runat="server" />
            Organ/Space (specify site):&nbsp;
            <asp:TextBox ID="eventdetailsSSI3Extra" runat="server"></asp:TextBox>
        <td colspan="2" style="height: 30px">
            <asp:CheckBox ID="eventdetailsSSI4" runat="server" Text="DIP" />
            &nbsp;Incisional Primary (DIP)<br />
            <asp:CheckBox ID="eventdetailsSSI5" runat="server" Text="DIS" />
            &nbsp;Deep Insisional Secondary (DIS)</td>

cs code behind
// If stSSI3 selected then look for extra value eventdetailsSSI3Extra and concatenate

        string stSSI3 = eventdetailsSSI3.Text;
        string st8 = eventdetailsSSI3Extra.Text;
        string stSSI3All = stSSI3 + (string.IsNullOrEmpty(st8) ? string.Empty : "," + st8);

        string stSSI4 = eventdetailsSSI4.Text;
        string stSSI5 = eventdetailsSSI5.Text;

Open in new window

Question by:TonyReba
    LVL 3

    Accepted Solution

    Just add onclick handler to last checkbox, that will enable/disable textbox field.
    LVL 9

    Author Comment

    How would I go on the code behind for inserting both the

    cs code behind

    // If stSSI3 checkbox is checked then look for extra value eventdetailsSSI3Extra and concatenate for insert the parameter...


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now