473,761 Members | 3,651 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

z-index change onclick event

is it possible to change an elements Z-INDEX value on an onclick event in
codebehind ?

id like to change the posistion of a datagrid once a button has been pressed

cheers

mark
Nov 18 '05 #1
4 3421
As Z-INDEX is a style attribute, yes, it is.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"mark" <ma**@remove.co m> wrote in message
news:_F******** ******@newsfe3-gui.ntli.net...
is it possible to change an elements Z-INDEX value on an onclick event in
codebehind ?

id like to change the posistion of a datagrid once a button has been pressed
cheers

mark

Nov 18 '05 #2
The only thing I can think of is that you do datagrid.style. add("z-index",
555); in the click event. it will apply the style to the <table tag
representing your grid.

Karl

"mark" <ma**@remove.co m> wrote in message
news:_F******** ******@newsfe3-gui.ntli.net...
is it possible to change an elements Z-INDEX value on an onclick event in
codebehind ?

id like to change the posistion of a datagrid once a button has been pressed
cheers

mark

Nov 18 '05 #3
This is just an idea, sort of a hack

DataGrid dg

oldstyle = dg.Attributes["style"];
dg.Attributes["style"] = changeZindexVal ue(oldStyle, newZindexValue) ;

The datagrid is renered as a table, perhaps you can use
dg.Attributes["style"]; to get the style string of the table.
Then you have to write the changeZindexVal ue function to repalce "z-index:
XX" with something different

just ideas, I don't know if it'd work

"Karl" <none> wrote in message news:eC******** ******@TK2MSFTN GP09.phx.gbl...
The only thing I can think of is that you do datagrid.style. add("z-index",
555); in the click event. it will apply the style to the <table tag
representing your grid.

Karl

"mark" <ma**@remove.co m> wrote in message
news:_F******** ******@newsfe3-gui.ntli.net...
is it possible to change an elements Z-INDEX value on an onclick event in codebehind ?

id like to change the posistion of a datagrid once a button has been

pressed

cheers

mark


Nov 18 '05 #4

"Karl" <none> wrote in message news:eC******** ******@TK2MSFTN GP09.phx.gbl...
The only thing I can think of is that you do datagrid.style. add("z-index",
555); in the click event. it will apply the style to the <table tag
representing your grid.

Karl


thanks!

it adds the style but doesnt appear to do anything, im thinking its because
the datagrid is inside a table,

ill try a few things

mark
Nov 18 '05 #5

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

Similar topics

17
61442
by: Mike Gratee | last post by:
Is it possible to use JavaScript to cause the browser to click a link on a page and have the browser act exactly like the user had clicked on the link directly? In other words, I need to programmatically issue a JavaScript statement which causes the browser to act just like the user clicked on a link in my page. And if that link has an onClick JS event defined, I'd want that onClick event to execute too, exactly the same as if the user...
2
3424
by: Vinita Sharma | last post by:
Hi All, I have a strange problem. I have 2 text boxes and a button in my form. There is a function called on onchange event of the first text box. There is another function called on onclick event of the button. Things work fine if you move from one field to another using tab keys. But if you change something in the first text box and move to button using mouse, the onchange event of the text box is called but the onclick event of the...
3
14092
by: delraydog | last post by:
I'm using: document.getElementById("mylink").childNodes.nodeValue = "New Text"; To change the text value of a link that I've created. How can I do something similar to change the onclick event? (doesn't work)
0
3174
by: Diane Yocom | last post by:
I'm very new to ASP.Net and probably jumped in a little over my head, but... I'm trying to create a user control that will control navigation through my site. It's sortof like Amazon.com, where there are tabs at the top with "submenu" buttons showing below the selected tab. The data that defines the tabs and submenus is stored in an XML file and I'm using nested repeaters to build them dynamically. I've got it working pretty well, except...
1
2603
by: tshad | last post by:
Is there a way to change the onClick event of a LinkButton? At the moment, I am using 2 buttons that I toggle the visibility on and off. I would like to use just one button, if possible and just change the onClick event as well as the ImageUrl during postback. I tried it but got the message:' Compiler Error Message: BC30390: 'System.Web.UI.WebControls.ImageButton.Protected Overridable Sub OnClick(e
1
2879
by: fabrice | last post by:
Hello, I d like to modify the Onclik Event of an ImageButton control in code behind. But when i do it , i get an error. This is ma code : The control is the pasx page :
7
33690
by: prash.marne | last post by:
Hello, I have a simple form <form method="POST"> <select name="activity"> <option value="0">None</option> <option value="M" onclick="popup_onclick()">Select Multiple</option> <option value="1">Kayaking</option>
18
3941
by: joaotsetsemoita | last post by:
Hello everyone, I'm having troubles assigning an onclick event to a cell. Im trying something like cursorPoint.cells.style.cursor = "hand"; cursorPoint.cells.width = "20"; cursorPoint.cells.onclick = "alert('this is a test');" cursorPoint.cells.alt = "Select the columns"; cursorPoint.cells.innerHTML = "&nbsp;"
4
3280
by: bbobely | last post by:
I have a generic subform control (subMain) whose sourceobject changes based on a combobox selection. Each sourceobject is a separate subform. These subforms (subsub1, subsub2 etc) have a field whose onclick event is DoCmd.OpenForm "frmVendor". When subMain is loaded its default sourceobject is subsub1 and the onclick event works fine. However, when I make a new selection in the combobox and change subMain's sourceobject to subsub2, subsub2's...
0
9522
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9948
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6603
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3866
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3446
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.