|
Is that HTML Code?????????
YasinXp
|
|
|
|
|
I want to install/copy some files from my server to the client. Browser will connect to the server and ask for the files. Those files will be copied to the client machin with out showing the open/save dialog box.
plz help...If somebody knows..
|
|
|
|
|
You cannot do that without the user accepting it in some way. You would need to run an ActiveX component or Java applet or similar in the browser to be able to access the file system of the client.
---
b { font-weight: normal; }
|
|
|
|
|
Its called V I R U S you loser!
|
|
|
|
|
Hello,
I have created a webite in VS.NET 2005. I placed the folder containing the project items in
c:\Inetpub\wwwroot. When I type http://localhost/website in my browser it doesn't come up.
I have IIS installed and running and have created a virtual directory for the website. I do not know what I am doing wrong. Can anyone help? Thank you. Joe
|
|
|
|
|
What does come up then? Do you get any error message?
---
b { font-weight: normal; }
|
|
|
|
|
"The page cannot be displayed. The page is unavailable."
|
|
|
|
|
If I have VS.NET running and start it then it displays. ASP.NET srver is running. I can't seem to get the IIS to show the page without VS.NET running or the ASP.NET server running. When I close out of VS.NET the ASP.NET server stops and I can no longer reference the page. I thought that IIS would enable one to display a page in \Inetput\wwwroot.
|
|
|
|
|
You have to install .NET framework for IIS to be able to run aspx pages.
---
b { font-weight: normal; }
|
|
|
|
|
I have the .NET framework installed(V1.1 and V2.0). I believe that I may be misusing the IIS server somehow.
|
|
|
|
|
Run ISS. List (local computer)->Web Sites->Default Web Site. Is "website" in the list? If not, right-click on Default Web Site, choose New->Virtual directory and complete wizzard. If it is already there, right click on it. Select properties... Is button "configuration" grayed? If yes, click on "create". If not, click on "configuration". Do you see .aspx in list of extentions? If not, ASP.NET is not installed in IIS. Run Aspnet_regii.exe[^]. Should help. If it doesn't help, find somebody who understand to all of that permissions and configurations and other boring stuff.
David
|
|
|
|
|
I'm looking at adding a feature to one of our sites. What I'd like to do is store a two dimensional array in a session variable. Each array would hold approx two to three rows each with three columns of text data. Traffic is medium-heavy on this site most of the time. I'm using ASP. Does anyone have experience with something like this? I know session variable can be a memory issue. Everything works great on a development server but I'm worried about unleashing this into heavy traffic.
Any thought or questions are much welcomed!
"Half this game is ninety percent mental."
- Yogi Berra
|
|
|
|
|
You are wise to be worried about memory issues. It is stuff that are stored for long periods of time in memory that consume resources on the server.
Let's do some calculations on how much memory this will use.
Say that the array structure will contain 9 references that are each 16 bytes. Then add the text data, let's say 30 characters times 9. That adds up to 414 bytes.
This should be multiplied with the number of session objects held in memory. If the session timeout is 20 minutes (standard setting), the number of session objects is at least the number of visitors you have during a 20 minute period. If you have say 100 session objects, the extra memory load will be 41400 bytes.
Not really much data, but you should be careful never the less. If the number of users or the data size for each users increases, the memory load can grow quite a lot. Also, the server will be more sensetive to DoS attacks, as each request to the server can create a new session object, using up some memory every time.
---
b { font-weight: normal; }
|
|
|
|
|
Why are you wanting to do this anyways?
|
|
|
|
|
Dear group,
I am using the IHTMLCurrentStyle class (Visual C++) from the IE's API to get the colour of elements on webpages. I am using the method: HRESULT IHTMLCurrentStyle::get_color(VARIANT *p);
It works perfectly fine. As you might know i would need to do hexadecimal to RGB conversion. but the problem is that people sometimes encode colour as names instead of hexadecimal representation (red instead of #ff0000).
This makes life harder for me because i will need to convert colours from actual names to hexadecimal representations then to RGB format
Does anyone know any method which directly extracts colours in RGB formats ? or at least have any idea on how to perform this efficiently ?
Any ideas are welcomed
llp00na
|
|
|
|
|
Do the names match up with names in the Color class ? Or are you not using ASP.NET ? In that case, a Dictionary of names to colors might be needed.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am not using ASP.NET,
Do you guys know how to convert from hex format to RGB format??? normal cases such as #ffffff would be easy, but some designer use formats like #fff !!!
any algorithms to sort out this problem ?
cheers
llp00na
|
|
|
|
|
llp00na wrote:
I am not using ASP.NET,
Wow - then you're in hell....
llp00na wrote:
Do you guys know how to convert from hex format to RGB format??? normal cases such as #ffffff would be easy, but some designer use formats like #fff !!!
#fff == #000fff.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
#fff == #000fff
That is not correct.
The code #fff represents the same color as #ffffff.
Each digit in a three digit color code is a value for each of the red, green and blue components. Each four bit value (0-f) is multiplied by the hexadecimal number 11 to create an eight bit (00-ff) value.
In the code #abc, a is the red component, b is the green component and c is the blue component.
a times 11 is aa, b times 11 is bb, c times 11 is cc, so the full 24 bit color code represented by #abc is #aabbcc.
---
b { font-weight: normal; }
|
|
|
|
|
Guffa wrote:
The code #fff represents the same color as #ffffff.
Really ? That is ridiculous.
Guffa wrote:
Each digit in a three digit color code is a value for each of the red, green and blue components.
Yeah, I know that.
Guffa wrote:
Each four bit value (0-f) is multiplied by the hexadecimal number 11 to create an eight bit (00-ff) value.
OK - that's the most counter intuitive thing I've ever heard.
Guffa wrote:
In the code #abc, a is the red component, b is the green component and c is the blue component.
Yeah, I know. But a Windows bitmap is BGR. I know all this.
Guffa wrote:
a times 11 is aa, b times 11 is bb, c times 11 is cc, so the full 24 bit color code represented by #abc is #aabbcc.
Well, I apologise, I had no idea that this sort of crap was going on. That is without a doubt, the dumbest thing ever. I assumed that #fff would be a shorthand, not some magically multiplied value for the subset of RGB triples where each value is a fact of 11.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
Really ? That is ridiculous.
Really? Why do you think that?
Christian Graus wrote:
Yeah, I know that.
Why did you write that #fff was the same as #000fff then? That would make one of the digits in the tree digit code being the lower four bits of the green component, and the other two digits being the blue component. That would really be ridiculous.
Christian Graus wrote:
OK - that's the most counter intuitive thing I've ever heard.
Ok, if you created a three digit color code, how would you distribute the values across the color space?
Christian Graus wrote:
Yeah, I know. But a Windows bitmap is BGR. I know all this.
What does a windows bitmap have anything at all to do with this?
Christian Graus wrote:
Well, I apologise, I had no idea that this sort of crap was going on. That is without a doubt, the dumbest thing ever. I assumed that #fff would be a shorthand, not some magically multiplied value for the subset of RGB triples where each value is a fact of 11.
It is a shorthand. If you take some time to think about it, it's not as magical at all. It's very simple. In fact, the three digit color codes is much simpler to understand than the six digit color codes. I have yet to meet someone that understands the six digit color code that couldn't grasp the three digit color code. Given that they even try, of course.
---
b { font-weight: normal; }
|
|
|
|
|
Guffa wrote:
Why do you think that?
Because it's not remotely logical and intuitive.
Guffa wrote:
Why did you write that #fff was the same as #000fff then?
Because I assumed that the value was just being passed as it stands. That would be logical. 5 is the same a 005 is the same as 000005.
Guffa wrote:
Ok, if you created a three digit color code, how would you distribute the values across the color space?
If I was able to specify the three bytes of a colour and I did it in hex, I'd assume that FFF equalled FFF. I would not assume that extra values would fly out of the air.
Guffa wrote:
What does a windows bitmap have anything at all to do with this?
Just that you're lecturing me about how colours are specified in windows, and the odds are small that you know more about it than me overall, even though it seems that you're right in this case ( at least I assume you are ), and the way you specify colours in HTML is completely at odds with what seems logical to anyone who writes code, or reads numbers in general.
Guffa wrote:
It is a shorthand. If you take some time to think about it, it's not as magical at all. It's very simple.
It may well be simple, and obvious to those who understand it. However, it is not *intuitive*.
Guffa wrote:
In fact, the three digit color codes is much simpler to understand than the six digit color codes.
ROTFL - how ? It's equally simple, assuming that you want to use only colours that factor to 11, and you understand how they work.
Guffa wrote:
I have yet to meet someone that understands the six digit color code that couldn't grasp the three digit color code. Given that they even try, of course.
You are being obtuse. Obviously, I immediately grasped what you were saying about how they work. I have also apologised for giving wrong advice, on the basis that I assumed that colour codes would work the same as every number system in the known world, and certainly any number system used in code.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
Because it's not remotely logical and intuitive.
Perhaps, but it's not less logical and intuitive than the six digit color code.
Christian Graus wrote:
Because I assumed that the value was just being passed as it stands. That would be logical. 5 is the same a 005 is the same as 000005.
That would be true if the color code would be a single value, but it is a composite of three separate values.
Christian Graus wrote:
Just that you're lecturing me about how colours are specified in windows, and the odds are small that you know more about it than me overall, even though it seems that you're right in this case ( at least I assume you are ), and the way you specify colours in HTML is completely at odds with what seems logical to anyone who writes code, or reads numbers in general.
If you got the impression that I was lecturing you, I apologise. The information was presented in general for anyone that is reading the message board. How the colors are specified in html and css does not really have much to do with how the colors are specified in windows.
If you want a more logical way do define a color, there is: #fff or #ffffff can also be written as: rgb(255,255,255).
Christian Graus wrote:
It's equally simple, assuming that you want to use only colours that factor to 11, and you understand how they work.
No, the three digit code is simpler. You don't really have to understand how hexadecimal numbers work to use it. To use the six digit code, you have to understand how a two digit hexadecimal number translates into a value.
---
b { font-weight: normal; }
|
|
|
|
|
You should also point out that the three digit version (ie, #fff) is only useful if the digits are the same. You cannot specify #f36523 in three digit notation which makes it a very small convenience mostly.
And Christian is correct in assuming that 0xfff = 0x000fff as it does mathematically speaking. The short usage in web colors is a very weird way to use three hex digits.
And yes you do sound as if you are lecturing him.
$0.02
|
|
|
|
|
fakefur wrote:
You should also point out that the three digit version (ie, #fff) is only useful if the digits are the same. You cannot specify #f36523 in three digit notation which makes it a very small convenience mostly.
The 4096 colors that you can specify with the three digit code is sufficient for most cases. The colors #f36523 and #e62 is not possible to distinguish unless you display them right next to each other, and even then you will hardly see the difference. I seldom use colors outside what can be specified with the three digit code. So, in real life the convenience is not that small.
fakefur wrote:
And Christian is correct in assuming that 0xfff = 0x000fff as it does mathematically speaking. The short usage in web colors is a very weird way to use three hex digits.
Again, that would be true if the color code would be a single value. Any mathematical rule only applies in the environment where it is defined. Although the hexadecimal value ead is the same as 000ead, the word "head" is not the same as the word "h000ead".
fakefur wrote:
And yes you do sound as if you are lecturing him.
Yes, maybe it does, and maybe I am. I corrected him as he was offering guidance in a field where he obviously did not have the sufficient knowledge. His answer to this is that the way things work is ridiculous. Maybe he needs a lecture...
---
b { font-weight: normal; }
|
|
|
|