|
I have decided to use the CssSpriteGenerator code to automaticallty generate image sprite in my ASP.net 4.0 website [http://www.codeproject.com/KB/aspnet/cssspritegenerator.aspx]. I have encountered a problem that I can't solve. I will explain.
I am storing all my icons (to be used in the sprite generator) in the "img/icons" folder. I've configured the web.config with the appropriate configuration. I want all the files in the img/icons folder to be used for the sprite and those who appear in the x.aspx to be inserted into the sprite and their images converted.
I am using the following CssSpriteGenerator configuration:
<cssSpriteGenerator active="Always" inlineSpriteStyles="false" processFolderImages="Always" imageFolderPathMatch="\\img\\icons\\" >
<imageGroups>
<add groupName="icons" pixelFormat="Format32bppPArgb" spriteImageType="Png" filePathMatch="(gif|png)$" />
</imageGroups>
</cssSpriteGenerator>
<combineAndMinify active="Always" inlineSpriteStyles="false" preloadAllImages="true"/>
The problem is that I can't get the code to work, means that the images stay as they are. I tried other options but I only get mt logo.png (which is on the masterpage) to be replaced with a CSS Sprite.
I wanted to know what type of configuration I need to use in order for it to work.
Please help me out, I'm breaking my head for hours on this one.
Thanks in advanced.
|
|
|
|
|
1. This has nothing to do with the .NET framework.
2. If you have a problem with someone's article then use the forum at the end of the article to contact the author.
|
|
|
|
|
Preface : In these series of question I will be shining a light on the more obscure parts of the .net framework, which I have used or found interesting in the hope of sparking a discussion and receiving your thoughts on the subject.
Part 1 : Threads
There are a the following methods found on the Thread object
Thread.SetData<br />
Thread.GetData<br />
Thread.GetNamedDataSlot
With these methods you can store data on a thread in a "NamedSlot" kind of like a key value pair, which will travel around with the thread and can be accessed by making the GetData call.
I have found them indispensable for implementing transaction processor within my applications which store a TransactionID on the thread and rollback or commit that ID when everything is done.
Kudos to .net team for implementing these methods.
Have you used these methods before? Your thoughts and comments please.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
Eh? What is the point of this question? If you want to shine a light on obscure parts of the framework, write an article on them.
|
|
|
|
|
Thanks,
I was hoping for a discussion on the subject.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
What good would that serve anybody? As threads are added, it would drop down the list so it would disappear from view.
|
|
|
|
|
Fair point, I will go and sob in the corner now.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
There are probably four of them; you could have Corner Local Storage in each of them.
|
|
|
|
|
Hi Luc,
I took your advise and got rid of the bronze colours (well most of them, 4 blues now), any more advise?
Cheers,
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
Well done.
There still is the small matter of your enquirer score, it is abominable. By now you should be able to come up with some excellent questions, so why don't you?
|
|
|
|
|
Hehehehehehe!
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
Mehdi Gholam wrote: I have found them indispensable
As long as they are used carefully and in a limited way.
|
|
|
|
|
I agree passing large objects around with them is a bad idea.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
|
I want to upload a file on my web page with httpwebreqest
<title>kilo
|
|
|
|
|
Is this a question that needs an answer? If so, then please explain what problems you are having: "I want to" does not really tell us anything.
|
|
|
|
|
|
Go ahead
My number one dev tool? Google
|
|
|
|
|
Use the resizing handle at the bottom right corner of the dialog.
|
|
|
|
|
I didnt understand your question correct.
Do you want to resize dialog using program code in some of the programming languages , or ...
To resize an open window:
To change the width, point to the left or right window border. When the pointer changes into a horizontal double-headed arrow , drag the border to the right or left.
To change the height, point to the top or bottom window border. When the pointer changes into a vertical double-headed arrow , drag the border up or down.
To change the height and width at the same time, point to any window corner. When the pointer changes into a diagonal double-headed arrow , drag the border in any direction.
Note
You cannot resize a window when it is displayed in a full screen (maximized).
If you need code ( C# ) for resizing dialog please reply to this message.
PS.
If you are creating program ,(based on the pictures you send),
in some of the visual tools ,use the properties in design mode for the wanted dialog (it seems that it is openFileDialog), where you usually can change the size of the dialog (Hight ,Width ) , it depends on what kind of programming tool you are using.
All the best,
Peric Zeljko
periczeljkosmederevo@yahoo.com
|
|
|
|
|
Trying to start learning and using the dotnetnuke .net framework with CMS to build a website.
I have used .Net framework to build web application using visual studio 2010.
What are key features and where can I learn more about it?
Looking for advice to get started.
|
|
|
|
|
|
Where go I to find about a search engine?
Pleas help and thanks many in advanc.
|
|
|
|
|
Go hire a detective; if you find said engine, please let us know.
|
|
|
|
|
Hello fellow programmers.
I would like some advice about comments. I am not asking about how to comment a particular line of code, but rather the comments that precedes a function, class, interface, or etc and how to describe it such that other programmers can quickly understand what it's all about.
The reason why I ask is if I am missing out on some creative way of documenting my code. I understand that I need a brief description of the object that I am creating along with a description of what each parameter (if any) and the return value (if any), but I am wondering is there something else that I am missing.
My question to all of you is what type of style of commenting does your work place enforce or what is your favorite style of commenting that you came up with?
Thanks in advance!
|
|
|
|