Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > beginner question

Reply
Thread Tools

beginner question

 
 
John
Guest
Posts: n/a
 
      08-27-2007
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!




 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      08-27-2007
"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> 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

 
Reply With Quote
 
 
 
 
Shaun Rigby
Guest
Posts: n/a
 
      08-27-2007
John,

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


"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!
>
>
>
>


 
Reply With Quote
 
Shaun Rigby
Guest
Posts: n/a
 
      08-27-2007
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" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
please see the attachment file; the problem that i am having.
thanks,

"John" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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!
>
>
>
>

 
Reply With Quote
 
John
Guest
Posts: n/a
 
      08-27-2007
i believe so, i would like you to include CSS also in your project and see why those checkboxes could not clicked.

"Shaun Rigby" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
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" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
please see the attachment file; the problem that i am having.
thanks,

"John" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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!
>
>
>
>

 
Reply With Quote
 
Shaun Rigby
Guest
Posts: n/a
 
      08-27-2007
Hi John, could you possibly attach the relevant style sheet and I will add it to the project

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

"Shaun Rigby" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
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" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
please see the attachment file; the problem that i am having.
thanks,

"John" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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!
>
>
>
>

 
Reply With Quote
 
John
Guest
Posts: n/a
 
      08-28-2007
hi,
the stysheet.css at the bottom. thanks,

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

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

"Shaun Rigby" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
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" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
please see the attachment file; the problem that i am having.
thanks,

"John" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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!
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner's Beginner william nelson Ruby 7 04-11-2011 11:23 PM
beginner's question.. Scott Needham Wireless Networking 4 09-06-2005 12:52 AM
No Class at ALL!!! beginner/beginner question =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?= ASP .Net 7 02-03-2005 02:47 PM
Tutorial for beginner/ Tutorial voor beginner Rensjuh C++ 7 09-02-2004 12:41 AM
Beginner question: What trigs processes Jerker Hammarberg VHDL 16 07-22-2003 03:58 PM



Advertisments