Link to home
Start Free TrialLog in
Avatar of JCWEBHOST
JCWEBHOST

asked on

checkbox

hey guys i am using this custom checkbox dll

<%@ Register assembly="EeekSoft.Web.Controls" namespace="EeekSoft.Web.Controls" tagprefix="cc1" %>

but i can not seem to code for the checked and uncheck in c#

i did every thing like they said, the pictures change off and on but the code when i press the button to check if the button is check or not does not work.

please help

my c# code

if (Gauteng.Checked)
        {
            E.Body = EmailBody(txtName.Text, txtCom_Name.Text, txtTelNo.Text, txtEmail.Text);
            E.Subject = "iOrganise Monthly Newsletter";
            E.To = "ritesh@jcweb.co.za";

            if (E.SendMail() != "")
            {
                count = 0;
            }
            else
                count = 2;
        }


aspx page

 <cc1:GraphicalCheckBox ID="Gauteng" runat="server" CheckedImg="images/on.gif" Text="Gauteng" Title="" UncheckedImg="images/off.gif" Style="z-index: 100;" />


<%@ Register assembly="EeekSoft.Web.Controls" namespace="EeekSoft.Web.Controls" tagprefix="cc1" %>

and put the dll in the bin

i have not done the gloabal file but
ASKER CERTIFIED SOLUTION
Avatar of dexterrajesh
dexterrajesh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JCWEBHOST
JCWEBHOST

ASKER

i must create a new class for the checkbox?