beginner question

Discussion in 'ASP .Net' started by John, Aug 27, 2007.

  1. John

    John Guest

    please look at below:

    default.aspx
    =========
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
    Inherits="_Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >

    <head runat="server">

    <title>Untitled Page</title>

    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />

    </head>

    <body>

    <form id="form1" runat="server">

    <div id="div0">

    <div id="div1" style="width: 125px; height: 83px" class="div1">

    <asp:CheckBox ID="CheckBox1" runat="server" ForeColor="White"
    Text="checkbox1" /><br />

    <asp:CheckBox ID="CheckBox2" runat="server" ForeColor="White"
    Text="checkbox2" /><br />

    </div>


    <div id="div2" class="div2" style="width: 100px; height: 100px">

    <br />

    &nbsp;<asp:RadioButton ID="RadioButton1" runat="server" Text="radiobutton1"
    /><br />

    <asp:RadioButton ID="RadioButton2" runat="server" Text="radiobutton2" />

    </div>

    </div>

    </form>

    </body>

    </html>



    Stylesheet.css:

    =============

    body {

    }

    #div1

    {

    background-color:Blue;

    }

    #div2

    {

    margin-left:200px;

    margin-top:-90px;

    background-color:Orange;

    }



    question:

    ========

    what should i do to make checkbox1 and checkbox2 able to click? and what
    mistakes i've made?

    thanks a lot!
     
    John, Aug 27, 2007
    #1
    1. Advertising

  2. "John" <> wrote in message
    news:...

    > what should i do to make checkbox1 and checkbox2 able to click?


    What does that mean exactly...?


    --
    Mark Rae
    ASP.NET MVP
    http://www.markrae.net
     
    Mark Rae [MVP], Aug 27, 2007
    #2
    1. Advertising

  3. John

    Shaun Rigby Guest

    John,

    When you say tick do you mean for a tick to actually show? or for the value
    to be passed?


    "John" <> wrote in message
    news:...
    > please look at below:
    >
    > default.aspx
    > =========
    > <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
    > Inherits="_Default" %>
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    >
    > <html xmlns="http://www.w3.org/1999/xhtml" >
    >
    > <head runat="server">
    >
    > <title>Untitled Page</title>
    >
    > <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
    >
    > </head>
    >
    > <body>
    >
    > <form id="form1" runat="server">
    >
    > <div id="div0">
    >
    > <div id="div1" style="width: 125px; height: 83px" class="div1">
    >
    > <asp:CheckBox ID="CheckBox1" runat="server" ForeColor="White"
    > Text="checkbox1" /><br />
    >
    > <asp:CheckBox ID="CheckBox2" runat="server" ForeColor="White"
    > Text="checkbox2" /><br />
    >
    > </div>
    >
    >
    > <div id="div2" class="div2" style="width: 100px; height: 100px">
    >
    > <br />
    >
    > &nbsp;<asp:RadioButton ID="RadioButton1" runat="server"
    > Text="radiobutton1" /><br />
    >
    > <asp:RadioButton ID="RadioButton2" runat="server" Text="radiobutton2" />
    >
    > </div>
    >
    > </div>
    >
    > </form>
    >
    > </body>
    >
    > </html>
    >
    >
    >
    > Stylesheet.css:
    >
    > =============
    >
    > body {
    >
    > }
    >
    > #div1
    >
    > {
    >
    > background-color:Blue;
    >
    > }
    >
    > #div2
    >
    > {
    >
    > margin-left:200px;
    >
    > margin-top:-90px;
    >
    > background-color:Orange;
    >
    > }
    >
    >
    >
    > question:
    >
    > ========
    >
    > what should i do to make checkbox1 and checkbox2 able to click? and what
    > mistakes i've made?
    >
    > thanks a lot!
    >
    >
    >
    >
     
    Shaun Rigby, Aug 27, 2007
    #3
  4. John

    Shaun Rigby Guest

    Hi John,

    I have just copied and pasted the controls directly into a project and both boxes ticked, perhaps something to do with ur CSS>??
    "John" <> wrote in message news:...
    please see the attachment file; the problem that i am having.
    thanks,

    "John" <> wrote in message news:...
    > please look at below:
    >
    > default.aspx
    > =========
    > <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
    > Inherits="_Default" %>
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    >
    > <html xmlns="http://www.w3.org/1999/xhtml" >
    >
    > <head runat="server">
    >
    > <title>Untitled Page</title>
    >
    > <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
    >
    > </head>
    >
    > <body>
    >
    > <form id="form1" runat="server">
    >
    > <div id="div0">
    >
    > <div id="div1" style="width: 125px; height: 83px" class="div1">
    >
    > <asp:CheckBox ID="CheckBox1" runat="server" ForeColor="White"
    > Text="checkbox1" /><br />
    >
    > <asp:CheckBox ID="CheckBox2" runat="server" ForeColor="White"
    > Text="checkbox2" /><br />
    >
    > </div>
    >
    >
    > <div id="div2" class="div2" style="width: 100px; height: 100px">
    >
    > <br />
    >
    > &nbsp;<asp:RadioButton ID="RadioButton1" runat="server" Text="radiobutton1"
    > /><br />
    >
    > <asp:RadioButton ID="RadioButton2" runat="server" Text="radiobutton2" />
    >
    > </div>
    >
    > </div>
    >
    > </form>
    >
    > </body>
    >
    > </html>
    >
    >
    >
    > Stylesheet.css:
    >
    > =============
    >
    > body {
    >
    > }
    >
    > #div1
    >
    > {
    >
    > background-color:Blue;
    >
    > }
    >
    > #div2
    >
    > {
    >
    > margin-left:200px;
    >
    > margin-top:-90px;
    >
    > background-color:Orange;
    >
    > }
    >
    >
    >
    > question:
    >
    > ========
    >
    > what should i do to make checkbox1 and checkbox2 able to click? and what
    > mistakes i've made?
    >
    > thanks a lot!
    >
    >
    >
    >
     
    Shaun Rigby, Aug 27, 2007
    #4
  5. John

    John Guest

    i believe so, i would like you to include CSS also in your project and see why those checkboxes could not clicked.

    "Shaun Rigby" <> wrote in message news:%...
    Hi John,

    I have just copied and pasted the controls directly into a project and both boxes ticked, perhaps something to do with ur CSS>??
    "John" <> wrote in message news:...
    please see the attachment file; the problem that i am having.
    thanks,

    "John" <> wrote in message news:...
    > please look at below:
    >
    > default.aspx
    > =========
    > <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
    > Inherits="_Default" %>
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    >
    > <html xmlns="http://www.w3.org/1999/xhtml" >
    >
    > <head runat="server">
    >
    > <title>Untitled Page</title>
    >
    > <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
    >
    > </head>
    >
    > <body>
    >
    > <form id="form1" runat="server">
    >
    > <div id="div0">
    >
    > <div id="div1" style="width: 125px; height: 83px" class="div1">
    >
    > <asp:CheckBox ID="CheckBox1" runat="server" ForeColor="White"
    > Text="checkbox1" /><br />
    >
    > <asp:CheckBox ID="CheckBox2" runat="server" ForeColor="White"
    > Text="checkbox2" /><br />
    >
    > </div>
    >
    >
    > <div id="div2" class="div2" style="width: 100px; height: 100px">
    >
    > <br />
    >
    > &nbsp;<asp:RadioButton ID="RadioButton1" runat="server" Text="radiobutton1"
    > /><br />
    >
    > <asp:RadioButton ID="RadioButton2" runat="server" Text="radiobutton2" />
    >
    > </div>
    >
    > </div>
    >
    > </form>
    >
    > </body>
    >
    > </html>
    >
    >
    >
    > Stylesheet.css:
    >
    > =============
    >
    > body {
    >
    > }
    >
    > #div1
    >
    > {
    >
    > background-color:Blue;
    >
    > }
    >
    > #div2
    >
    > {
    >
    > margin-left:200px;
    >
    > margin-top:-90px;
    >
    > background-color:Orange;
    >
    > }
    >
    >
    >
    > question:
    >
    > ========
    >
    > what should i do to make checkbox1 and checkbox2 able to click? and what
    > mistakes i've made?
    >
    > thanks a lot!
    >
    >
    >
    >
     
    John, Aug 27, 2007
    #5
  6. John

    Shaun Rigby Guest

    Hi John, could you possibly attach the relevant style sheet and I will add it to the project

    RGDS,
    Shaun
    "John" <> wrote in message news:...
    i believe so, i would like you to include CSS also in your project and see why those checkboxes could not clicked.

    "Shaun Rigby" <> wrote in message news:%...
    Hi John,

    I have just copied and pasted the controls directly into a project and both boxes ticked, perhaps something to do with ur CSS>??
    "John" <> wrote in message news:...
    please see the attachment file; the problem that i am having.
    thanks,

    "John" <> wrote in message news:...
    > please look at below:
    >
    > default.aspx
    > =========
    > <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
    > Inherits="_Default" %>
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    >
    > <html xmlns="http://www.w3.org/1999/xhtml" >
    >
    > <head runat="server">
    >
    > <title>Untitled Page</title>
    >
    > <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
    >
    > </head>
    >
    > <body>
    >
    > <form id="form1" runat="server">
    >
    > <div id="div0">
    >
    > <div id="div1" style="width: 125px; height: 83px" class="div1">
    >
    > <asp:CheckBox ID="CheckBox1" runat="server" ForeColor="White"
    > Text="checkbox1" /><br />
    >
    > <asp:CheckBox ID="CheckBox2" runat="server" ForeColor="White"
    > Text="checkbox2" /><br />
    >
    > </div>
    >
    >
    > <div id="div2" class="div2" style="width: 100px; height: 100px">
    >
    > <br />
    >
    > &nbsp;<asp:RadioButton ID="RadioButton1" runat="server" Text="radiobutton1"
    > /><br />
    >
    > <asp:RadioButton ID="RadioButton2" runat="server" Text="radiobutton2" />
    >
    > </div>
    >
    > </div>
    >
    > </form>
    >
    > </body>
    >
    > </html>
    >
    >
    >
    > Stylesheet.css:
    >
    > =============
    >
    > body {
    >
    > }
    >
    > #div1
    >
    > {
    >
    > background-color:Blue;
    >
    > }
    >
    > #div2
    >
    > {
    >
    > margin-left:200px;
    >
    > margin-top:-90px;
    >
    > background-color:Orange;
    >
    > }
    >
    >
    >
    > question:
    >
    > ========
    >
    > what should i do to make checkbox1 and checkbox2 able to click? and what
    > mistakes i've made?
    >
    > thanks a lot!
    >
    >
    >
    >
     
    Shaun Rigby, Aug 27, 2007
    #6
  7. John

    John Guest

    hi,
    the stysheet.css at the bottom. thanks,

    "Shaun Rigby" <> wrote in message news:%...
    Hi John, could you possibly attach the relevant style sheet and I will add it to the project

    RGDS,
    Shaun
    "John" <> wrote in message news:...
    i believe so, i would like you to include CSS also in your project and see why those checkboxes could not clicked.

    "Shaun Rigby" <> wrote in message news:%...
    Hi John,

    I have just copied and pasted the controls directly into a project and both boxes ticked, perhaps something to do with ur CSS>??
    "John" <> wrote in message news:...
    please see the attachment file; the problem that i am having.
    thanks,

    "John" <> wrote in message news:...
    > please look at below:
    >
    > default.aspx
    > =========
    > <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
    > Inherits="_Default" %>
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    >
    > <html xmlns="http://www.w3.org/1999/xhtml" >
    >
    > <head runat="server">
    >
    > <title>Untitled Page</title>
    >
    > <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
    >
    > </head>
    >
    > <body>
    >
    > <form id="form1" runat="server">
    >
    > <div id="div0">
    >
    > <div id="div1" style="width: 125px; height: 83px" class="div1">
    >
    > <asp:CheckBox ID="CheckBox1" runat="server" ForeColor="White"
    > Text="checkbox1" /><br />
    >
    > <asp:CheckBox ID="CheckBox2" runat="server" ForeColor="White"
    > Text="checkbox2" /><br />
    >
    > </div>
    >
    >
    > <div id="div2" class="div2" style="width: 100px; height: 100px">
    >
    > <br />
    >
    > &nbsp;<asp:RadioButton ID="RadioButton1" runat="server" Text="radiobutton1"
    > /><br />
    >
    > <asp:RadioButton ID="RadioButton2" runat="server" Text="radiobutton2" />
    >
    > </div>
    >
    > </div>
    >
    > </form>
    >
    > </body>
    >
    > </html>
    >
    >
    >
    > Stylesheet.css:
    >
    > =============
    >
    > body {
    >
    > }
    >
    > #div1
    >
    > {
    >
    > background-color:Blue;
    >
    > }
    >
    > #div2
    >
    > {
    >
    > margin-left:200px;
    >
    > margin-top:-90px;
    >
    > background-color:Orange;
    >
    > }
    >
    >
    >
    > question:
    >
    > ========
    >
    > what should i do to make checkbox1 and checkbox2 able to click? and what
    > mistakes i've made?
    >
    > thanks a lot!
    >
    >
    >
    >
     
    John, Aug 28, 2007
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jerker Hammarberg

    Beginner question: What trigs processes

    Jerker Hammarberg, Jul 17, 2003, in forum: VHDL
    Replies:
    16
    Views:
    1,639
    Mike Treseler
    Jul 22, 2003
  2. smu
    Replies:
    3
    Views:
    2,646
    shobhit24
    Jun 28, 2006
  3. =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=

    No Class at ALL!!! beginner/beginner question

    =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=, Feb 2, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    621
    =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=
    Feb 3, 2005
  4. Rensjuh
    Replies:
    7
    Views:
    1,008
    Mabden
    Sep 2, 2004
  5. william nelson

    Beginner's Beginner

    william nelson, Apr 11, 2011, in forum: Ruby
    Replies:
    7
    Views:
    234
    7stud --
    Apr 12, 2011
Loading...

Share This Page