473,748 Members | 6,370 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Skinning CommandField

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

<asp:CommandFie ld ButtonType=Imag e ShowDeleteButto n= 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 1940
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.comwro te in message
news:OU******** ******@TK2MSFTN GP06.phx.gbl...
I'm using Themes with asp.net 2.0 and i have a command field(in a
gridview) like this:

<asp:CommandFie ld ButtonType=Imag e ShowDeleteButto n= 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.comwro te in message
news:OU******** ******@TK2MSFTN GP06.phx.gbl...
I'm using Themes with asp.net 2.0 and i have a command field(in a
gridview) like this:

<asp:CommandFie ld ButtonType=Imag e ShowDeleteButto n= 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
4818
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 etc. and though they provide skinning of existing application frames, forms and controls they do not allow for changing the shape of the form nor arrangement of the controls. I realise with .NET it is easy to provide a non-rectangular form by...
3
5886
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 great on the printed page, though when I try to get the TrackBar to look the way the concept was presented, it just doesn't seem to let me tweak it. Can you please tell me what I can do to easily customize the TrackBar
2
1473
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 apply one of the 30 or so color themes to that skin - so it's the same skin in different colors. I have looked at various skinning engines such as skinmagic, themeengine, directskin, etc, but none of those support color themes. Can anyone...
2
306
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 like the titlebar and pushbuttons, etc... Thanks, CJ
1
11329
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 with (which doesn't work): protected void GridView2_RowDataBound(object sender, GridViewRowEventArgs e) {
1
3551
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"> <ControlStyle Font-Size="X-Small" /> </asp:CommandField> </asp:GridView>
2
7225
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 checkbox on the grid. If someone clicks on the checkbox, I would like the bit field in that row in the database table to be updated immediately. I don't want to have to first
0
1261
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 executed two times and events are fired in this order : myGridView_RowDeleting
1
5891
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 VB.net.
0
8991
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
9544
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
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
8243
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6074
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
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
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.