CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 12/27/2006 12:47:14 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 47 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
cpowers
Asp.Net User
Help with mouse over12/27/2006 12:47:14 AM

0/0

I am a newbie in need of help  I am trying to do mouse over on my gridviews this is the code that was suggested. I am running asp.net 2.0 with c# i keep getting a red squiggle between the ADD (  and I have a red squggle under the if   !    and at the end of the ) o the first line of if (e.Row etc... Can anyone tellme whats wrong

<

script runat="server">

 

if (e.Row.RowType != DataControlRowType.Header)

{

e.Row.Attributes.Add(

"onmouseover", "this.backgroundColor = '[Green]'");

e.Row.Attributes.Add(

"onmouseout", "this.backgroundColor = '[Orange]'");

}

 

 

</

script>

<

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

&nbsp;

<ELB:EasyListBox ID="DropDownList1" runat="server" AutoPostBack="True" ConnectionStringSqlServer="<%$ ConnectionStrings:AltracConnectionString1 %>" SelectQuery="SELECT LASTNAME FROM PATIENT ORDER BY LASTNAME" DataTextField="LASTNAME" DataValueField="LASTNAME" Height="72px" Style="z-index: 104; left: 200px; position: absolute; top: 154px" DisplayMode="Combo" UseAjax="True" SelectionMode="Single">

</ELB:EasyListBox>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

<table style="z-index: 100; left: 176px; position: absolute; top: 104px">

<tr>

<td align="center" style="width: 250px; background-color: #d3d3d3; height: 17px;">

<strong>Claimant / Patient Lookup</strong></td>

</tr>

</table>

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"

SelectMethod="GetData" TypeName="DataSet5TableAdapters.PATIENT1TableAdapter"></asp:ObjectDataSource>

<table style="z-index: 101; left: 176px; position: absolute; top: 125px">

<tr>

<td align="center" style="width: 250px; background-color: #d3d3d3">

Search By Last Name

</td>

</tr>

</table>

&nbsp;

<asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"

DataKeyNames="PATIENTID" DataSourceID="ObjectDataSource2" Style="z-index: 101;

left: 184px; position: absolute; top: 189px"

Width="965px" BackColor="DarkGray">

<Columns>

 

agolden
Asp.Net User
Re: Help with mouse over12/27/2006 1:11:30 AM

0/0

The if statement you have should be wrapped in a GridView RowDataBound event, like:

	protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
	{
		if (e.Row.RowType == DataControlRowType.DataRow)
		{
			e.Row.Attributes.Add("onmouseover", "this.backgroundColor = '[Green]'");
			e.Row.Attributes.Add("onmouseout", "this.backgroundColor = '[Orange]'");
		}
	}
 

and you'll need to add the event to the GridView markup.  I'd also check for rows that are data rows, not rows that are not header rows (e.g. footer and pager rows aren't headers, but you probably don't need the mouseover effects there).

Hope that helps.

Aaron

cpowers
Asp.Net User
Re: Help with mouse over12/27/2006 2:04:46 AM

0/0

I add this into the code and I still have no mouse over any suggestions do I have to select anything in the properties window?

 

<

script runat="server">

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)

{

if (e.Row.RowType == DataControlRowType.DataRow)

{

e.Row.Attributes.Add(

"onmouseover", "this.backgroundColor = '[Green]'");

e.Row.Attributes.Add(

"onmouseout", "this.backgroundColor = '[Orange]'");

}

}

 

</

script>

<

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

&nbsp;

<ELB:EasyListBox ID="DropDownList1" runat="server" AutoPostBack="True" ConnectionStringSqlServer="<%$ ConnectionStrings:AltracConnectionString1 %>" SelectQuery="SELECT LASTNAME FROM PATIENT ORDER BY LASTNAME" DataTextField="LASTNAME" DataValueField="LASTNAME" Height="72px" Style="z-index: 104; left: 200px; position: absolute; top: 154px" DisplayMode="Combo" UseAjax="True" SelectionMode="Single">

</ELB:EasyListBox>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

<table style="z-index: 100; left: 176px; position: absolute; top: 104px">

<tr>

<td align="center" style="width: 250px; background-color: #d3d3d3; height: 17px;">

<strong>Claimant / Patient Lookup</strong></td>

</tr>

</table>

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"

SelectMethod="GetData" TypeName="DataSet5TableAdapters.PATIENT1TableAdapter"></asp:ObjectDataSource>

<table style="z-index: 101; left: 176px; position: absolute; top: 125px">

<tr>

<td align="center" style="width: 250px; background-color: #d3d3d3">

Search By Last Name

</td>

</tr>

</table>

&nbsp;

<asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"

DataKeyNames="PATIENTID" DataSourceID="ObjectDataSource2" Style="z-index: 101;

left: 184px; position: absolute; top: 189px"

Width="965px" BackColor="DarkGray">

<Columns>

<asp:CommandField HeaderText="Editing" ShowEditButton="True" />

<asp:BoundField DataField="PATIENTID" HeaderText="Patient Id" InsertVisible="False"

ReadOnly="True" SortExpression="PATIENTID" />

<asp:BoundField DataField="LASTNAME" HeaderText="Last Name" SortExpression="LASTNAME" />

 

Iori_Jay
Asp.Net User
Re: Help with mouse over12/27/2006 3:13:19 AM

0/0

Hi, the function should be associated with some event handler to get fired. Try:


<asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
OnRowDataBound="GridView1_RowDataBound"
DataKeyNames="PATIENTID" DataSourceID="ObjectDataSource2"
Style="z-index: 101; left: 184px; position: absolute; top: 189px"Width="965px" BackColor="DarkGray">


Welcome to my SQL/ASPNET forum for Chinese
http://51up.org/bbs/forumdisplay.php?fid=38
agolden
Asp.Net User
Re: Help with mouse over12/27/2006 3:17:53 AM

0/0

To get the GridView1_RowDataBound event to fire, you have to wire it up to a GridView event:

<asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False" 
	DataKeyNames="PATIENTID" DataSourceID="ObjectDataSource2" 
	Style="z-index: 101; left: 184px; position: absolute; top: 189px" Width="965px" 
	BackColor="DarkGray" OnRowDataBound="GridView1_RowDataBound"> 
 

Hope that helps.

Aaron

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Adding Ajax Authors: Shelley Powers, Pages: 382, Published: 2007
Practical Web Technologies Authors: P. K. Yuen, V. Lau, Pages: 928, Published: 2003
JavaScript Programming for the Absolute Beginner: The Fun Way to Learn Programming Authors: Andrew Harris, Pages: 347, Published: 2001
PowerPoint 2007: The Missing Manual Authors: Emily A. Vander Veer, Pages: 469, Published: 2006
JavaScript For Dummies Authors: Emily A. Vander Veer, Pages: 384, Published: 2004
JavaScript: A Beginner's Guide Authors: John Pollock, Pages: 550, Published: 2004
Visual Basic.Net by Example Authors: Gabriel Oancea, Robert P. Donald, Pages: 976, Published: 2002
About Face 3: The Essentials of Interaction Design Authors: Alan Cooper, Robert Reimann, David Cronin, Pages: 610, Published: 2007
Visual Basic 2005 Express: Now Playing Authors: Wally Wang, Pages: 452, Published: 2005
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005

Web:
FREE - Mouseover Help Box - Javascript Jul 27, 2007 ... A very simple and powerfull Mouseover Help Box javascript !!!! This script show you a div helpbox when you mouseover a link or the object ...
Mouse Over ToolTip Help - JavaScript / DHTML / AJAX Mouse Over ToolTip Help - JavaScript / DHTML / AJAX Community and Forum - Our JS / DHTML / AJAX forum is the place for Q&A-style discussions ...
slayeroffice | tools | Mouseover DOM Inspector v2.0 Help Mouseover DOM Inspector v2.0.2 Help. Overview. The Mouseover DOM Inspector, or MODI for short, is a favelet (also known as a bookmarklet) that allows you to ...
Integrating Mouse Over Help The objective of this document is to provide information on creating a mouse over help button in a screen and thereby displaying Help content as well as a ...
Joomla! • View topic - Need help: "Dictionary" mouse-over tooltip Post subject: Re: Need help: "Dictionary" mouse-over tooltip. Post Posted: Wed Aug 29, 2007 3:32 am. Joomla! Ace. Joomla! Ace. Offline. Joined: Sat Feb 10, ...
[help] on mouse over scroll - Flash Kit Community Forums [help] on mouse over scroll Games. ... i do not know how to make it so that u can keep the mouse over and it will scroll at a constant rate ...
jQuery - Help - Hover/Mouseover - Image thumbnail preview ... Thanks: 0. Thanked 0 Times in 0 Posts. anom is an unknown quantity at this point . jQuery - Help - Hover/Mouseover - Image thumbnail preview ...
How To: Utilizing Mouse-Over Help - PublicWiki The encircled i icon to the left of the field prompts indicate that mouse-over help is available for the corresponding field. Placing your mouse over this ...
World of Warcraft - English (NA) Forums -> Need help with ... < RAINBOW FANTASTIC >. Mug'thol. 0. Need help with mouseover macro plz 03/08/ 2008 12:31:55 PM PST. quote · reply. Hello, I'm trying to make a mouseover ...
Help in mouseover and popup enlarge image Help in mouseover and popup enlarge image (from JavaScript)

Videos:
Return of Mega Man Machine: Contraptions - Play Mode Run 1 Return of Mega Man Machine: Contraptions is a second game in the series, which includes over 250 puzzles, including the head-to-head puzzles and over...
Try it Yourself: Episode 10 - MAC Terminal Tricks & HACKS High Quality Version: http://dillonp23.net/videos/tiy/tiy10.mp4 This is my TENTH episode of 'Try it Yourself' that I have made. Try it Yourself tea...
CREME CUPS MOUSE DRAKES CAKES TVDAYS.COM 1970's The largest collection of TV SHOWS,FILMS, CARTOONS, NEWSREELS,FILM SHORT SUBJECTS, SILENT & SOUND FILMS, HOME MOVIES, ,INDUSTRIALS & especially TV C...
[BannedStory/LunaPic tutorial] Animated Backgrounds *NOTE* A lot of people have been askign how to speed up the naimation. ALSO IF YOUR ANIMATION IS NOT WORKING OR ONLY REAPETS ONCE THIS COULD BE THE P...
Pure Pwnage Episode 12 - Game Over Pure Pwnage Episode 12 Season Finale.
GlovePIE + Halo Trial = HELP! Whenever I try to use the Wiimote to play Halo Trial, it glitches up and moves the mouse all over the screen. Camstudio shows where the mouse really ...
Joomla! - Adding Content to Mambo Content is organized in two ways. You can build static pages, which are an individual page where all the information is shown on the screen. The othe...
Customizing the XP Taskbar Start Button In this video I'll show you how to change what the Start Button in the taskbar says, and what is displayed when you move your mouse over it. RESOURC...
The-Rootie-Kazoote-Club-Vol-1_title03.avi The largest collection of TV SHOWS,FILMS, CARTOONS, NEWSREELS,FILM SHORT SUBJECTS, SILENT & SOUND FILMS, HOME MOVIES, ,INDUSTRIALS & especially TV C...
Custom mario world tutorial 1: 8X8 editing this vid shows you how to edit 8X8 graphics and actualy SAVE them. expect a 16X16 tut soon. step 1: open luanr magic and open yor ROM. step 2: find ...




Search This Site:










how to secure a folder with a password

add new page question - dnn3.0.12

problem connecting asp.net to active directory

grabbing form data from a html form located on client desktop

extending registration form

images not displayed in debug mode

noob question! unable to select objects in design view 'under' a table area?

why use string.empty vs. ""

undocumented error dnn3and dnn2

please help- can;t stop getting emails!!!!

msde client side components

microsoft application blocks

plain html files saved as aspx?

install issues with visual studio 2005 and asp

help, new user has can only login once

templates for asp.net with support for masterpages?

databinding very broad concept

problem with configuration page

salt + hash w/o ssl...js hashing?

configuring dnn to interface with your custom module

start action not retained between loadings of vs2005 sp1

date pick up in asp,net

visualstudio on sp1

help during view access

master page, response.redirect and viewstate

getting started: create a new database

new for asp

cookies

can i use sql server 2005 for dnn 3.0?

how to set specific date format

 
All Times Are GMT