473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Cell/td on mouse click event using ASP

Hi

I have a basic page for which I have included some of the code for at the
end of this message. It may not run correctly as I have cropped out a lot
of code.

I am trying to handle the click event for a cell. From the code you should
be able to see that I am handling the mouse over event and would like to
link to another page via the cell click.

I addition, but not too important at the moment, I would like to pass a
string or two across to the called page. For example link to the next page
and within that page identify which cell was clicked and possible pass a
string for the image used in the clicked cell.

Any help on either subject would be greatly appreciated.

Kind regards, Carl Gilbert.

<HTML>
<HEAD>
<TITLE>Categories</TITLE>
<META name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<META name="CODE_LANGUAGE" content="Visual Basic 7.0">
<META name="vs_defaultClientScript" content="JavaScript">
<META name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0">
<STYLE type="text/css">
.over { background-color:silver; }
.out { background-color:white; }
</STYLE>

</HEAD>
<BODY ms_positioning="FlowLayout">
<FORM id="Categories" method="post" runat="server" action="designs.asp">
<TABLE border="0" cellpadding="0" cellspacing="0" id="Table3">
<TR><TD height="37" style="border:3 solid black;" valign="top"
onmouseover="this.className='over'" onmouseout="this.className='out'">
<A href="designs.asp">Designs</A></TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>
Jul 19 '05 #1
2 2865
have the <a..> do the onClick and set it to 100% width

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Carl Gilbert" <mr*************@hotmail.com> wrote in message
news:66**************************@posting.google.c om...
Hi

I have a basic page for which I have included some of the code for at the
end of this message. It may not run correctly as I have cropped out a lot
of code.

I am trying to handle the click event for a cell. From the code you should be able to see that I am handling the mouse over event and would like to
link to another page via the cell click.

I addition, but not too important at the moment, I would like to pass a
string or two across to the called page. For example link to the next page and within that page identify which cell was clicked and possible pass a
string for the image used in the clicked cell.

Any help on either subject would be greatly appreciated.

Kind regards, Carl Gilbert.

<HTML>
<HEAD>
<TITLE>Categories</TITLE>
<META name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<META name="CODE_LANGUAGE" content="Visual Basic 7.0">
<META name="vs_defaultClientScript" content="JavaScript">
<META name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0">
<STYLE type="text/css">
.over { background-color:silver; }
.out { background-color:white; }
</STYLE>

</HEAD>
<BODY ms_positioning="FlowLayout">
<FORM id="Categories" method="post" runat="server" action="designs.asp">
<TABLE border="0" cellpadding="0" cellspacing="0" id="Table3">
<TR><TD height="37" style="border:3 solid black;" valign="top"
onmouseover="this.className='over'" onmouseout="this.className='out'">
<A href="designs.asp">Designs</A></TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>

Jul 19 '05 #2
Hi

Thanks for the reply. Do you mean put the click event and the A tag in
between the TD tags and will I need any code in the STYLE tag?
I have only been using ASP for a few days so a sample line would be greatly
appreciated.

Regards, Carl

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:u0*************@TK2MSFTNGP11.phx.gbl...
have the <a..> do the onClick and set it to 100% width

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Carl Gilbert" <mr*************@hotmail.com> wrote in message
news:66**************************@posting.google.c om...
Hi

I have a basic page for which I have included some of the code for at the end of this message. It may not run correctly as I have cropped out a lot of code.

I am trying to handle the click event for a cell. From the code you

should
be able to see that I am handling the mouse over event and would like to
link to another page via the cell click.

I addition, but not too important at the moment, I would like to pass a
string or two across to the called page. For example link to the next

page
and within that page identify which cell was clicked and possible pass a
string for the image used in the clicked cell.

Any help on either subject would be greatly appreciated.

Kind regards, Carl Gilbert.

<HTML>
<HEAD>
<TITLE>Categories</TITLE>
<META name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<META name="CODE_LANGUAGE" content="Visual Basic 7.0">
<META name="vs_defaultClientScript" content="JavaScript">
<META name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0">
<STYLE type="text/css">
.over { background-color:silver; }
.out { background-color:white; }
</STYLE>

</HEAD>
<BODY ms_positioning="FlowLayout">
<FORM id="Categories" method="post" runat="server" action="designs.asp"> <TABLE border="0" cellpadding="0" cellspacing="0" id="Table3">
<TR><TD height="37" style="border:3 solid black;" valign="top"
onmouseover="this.className='over'" onmouseout="this.className='out'">
<A href="designs.asp">Designs</A></TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: christian9997 | last post by:
Hi I was trying to create a page where a SubMenu would appear when the user moved the mouse over an item of a Menu (= Table Cell <TD>). Unfortunately there seems to be a problem; the onMouseOver...
3
by: Dav | last post by:
I have a Winform with a derived datagrid and a button that adds a row to the datagrid in its Click event. The button has a shortcut text "&New Row". When I enter a value in a datagrid cell and...
1
by: orekinbck | last post by:
Hi There I have a datagrid whose main purpose in life is to provide a nice way for users to make a single choice from a list. The grid is read only, single row select and has its data source as...
2
by: Davisro | last post by:
I would like to get the cell contents of an asp.net datagrid when the mouse is down? Mouse Click, cell click etc... Is there a way to get this? Thanks,
0
by: melanieab | last post by:
Hi, I have a datagrid with a datatable, and am using the MouseMove event to make a tooltip pop up whenever the text in the cell is longer than the cell width. This works ok, but there's a problem....
2
by: Ryan Liu | last post by:
Hi, I need the MouseDown event be trigged everytime when you press mouse in a datagrid (System.Windows.Forms). But seems mouse event will only fire once, and it seems changed to edit mode...
1
by: Ryan Liu | last post by:
Hi, I need the MouseDown event be trigged everytime when you press mouse in a datagrid (System.Windows.Forms). Hi, I need the MouseDown event be trigged everytime when press mouse in a...
3
by: Ryan Liu | last post by:
Can someone give a sample to prevent a row from being deleted in a datatable? I tried e.Row.RejectChanges(); in dt_RowDeleting() but seems does not work. I need verify if there other data...
6
TMS
by: TMS | last post by:
This spreadsheet is almost done, but there is some functionality that is driving me nuts. For instance: a cell, for instance 'a0' is to have 'a0' as a string, but if something is entered like...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.