473,387 Members | 1,464 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,387 software developers and data experts.

Skinning CommandField

JJ
I'm using Themes with asp.net 2.0 and i have a command field(in a gridview)
like this:

<asp:CommandField ButtonType=Image ShowDeleteButton= true
DeleteImageUrl="~/App_Themes/Theme1/Images/button-delete.gif"/>

My current Theme is "Theme1" but how about if i change the theme to any
other?. I have to change "deleteimageurl" too. How can i avoid this?.

JJ


Nov 21 '06 #1
2 1914
JJ
I've tried using:

DeleteImageUrl='<%# "~/App_Themes/" + this.Page.Theme + "/images/" +
"button-delete.gif" %>'

But it won't allow me to do this with this type of control.

There must be some way of skinning this part of the Gridview..?

??

"JJ" <ab*@xyz.comwrote in message
news:OU**************@TK2MSFTNGP06.phx.gbl...
I'm using Themes with asp.net 2.0 and i have a command field(in a
gridview) like this:

<asp:CommandField ButtonType=Image ShowDeleteButton= true
DeleteImageUrl="~/App_Themes/Theme1/Images/button-delete.gif"/>

My current Theme is "Theme1" but how about if i change the theme to any
other?. I have to change "deleteimageurl" too. How can i avoid this?.

JJ


Nov 21 '06 #2
JJ
Didn't find any soluion to this, so I ended up changing the button control's
parameters (e.g. imageURL) in the 'onRowCreated' event, in the code behind
file.

JJ

"JJ" <ab*@xyz.comwrote in message
news:OU**************@TK2MSFTNGP06.phx.gbl...
I'm using Themes with asp.net 2.0 and i have a command field(in a
gridview) like this:

<asp:CommandField ButtonType=Image ShowDeleteButton= true
DeleteImageUrl="~/App_Themes/Theme1/Images/button-delete.gif"/>

My current Theme is "Theme1" but how about if i change the theme to any
other?. I have to change "deleteimageurl" too. How can i avoid this?.

JJ


Nov 22 '06 #3

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

Similar topics

1
by: Paul Hartness | last post by:
I want to be able to skin my application producing non-standard form shapes such as WinAmp & Windows Media Player. I have reviewed toolkits such as DirectSkin, SkinCrafter, SkinBoxer, SkinMagic...
3
by: AtlasApollo | last post by:
Greetings! We are working on a project that has a bunch of TrackBars spec'ed as graphic controls. In other words, they are slick looking and green. In the design phase, these controls look...
2
by: meyer_phillip | last post by:
I am looking for an application skinning engine that supports colour themes. Winamp is an example of an app supporting colour themes. For example in Winamp I can pick the "Winamp Modern" skin and...
2
by: CJ Taylor | last post by:
I've been googling this for awhile, but can't seem to find anything really solid on skinning a windows forms app. I know how to skin the internal stuff but would like to see an example of stuff...
1
by: pittster | last post by:
I'm trying to change the text that is displayed for the Select command of a CommandField. I'm figuring that it would have to occur during the RowDataBound event. Here is the code I've started...
1
by: Burt | last post by:
I am trying to move all page attributes to a Theme skin file but can't set the Font-Size for a GridView Button. Anyone know how? <asp:GridView .... <asp:CommandField ButtonType="Button">...
2
by: hazz | last post by:
Given the update query UPDATE Columns SET Include_in_Report = @Include_in_Report WHERE (ID = @Original_ID); Include_In_Report is a bit field in the table, represented as a...
0
by: Sebho | last post by:
Hi, i'm using a gridView and an sqlDataSource. I've added a Delete CommandField in Columns collection (instead AutoGenerateDeleteButton) But when i clic on my CommandField, postback is...
1
by: BJ Stigall | last post by:
I would like to be able to turn off (ie, set to false) the ShowInsertButton option from my code for various users. I can't figure out how to do that. Can someone please educate me? I am using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.