|
<blockquote class="FQ"><div class="FQA">Psycho-*Coder*-Extreme wrote:</div>without it theres an ugly border around the image, which I dont want</blockquote>
I have tested both ASP.NET image and HTML image as below. I didn't get the border that you mentioned.
eg:
<asp:Image ID="Image1" runat="server" ImageUrl="Winter.jpg" />
<img src="Winter.jpg" />
Maybe. you can try like that if you are still getting the border that you dont want.
<img src="Winter.jpg" style="border:0px" />
Hope it helps.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
|
|
|
|
|
actually
<a href="../../about_us.htm" ><img alt="About Us" height="31" src="../../images/nav_images/about_normal.gif" width="74" name="about_us" id="about_us" /></a>
without the border="0" will indeed put an ugly border around the image (when the image is enclosed in an a href tag), it's been that way since the dawn of HTML but the new XHTML validation doesn't allow this. I ended up making a CSS class that has
border-top-style: none;
border-right-style: none;
border-left-style: none;
border-bottom-style: none;
and it got rid of the border. I went with the CSS class so I didn't have to put style="" on every link image in the site (there are 77 pages in the site) and with this class (yes I did have to add the class="" to all the images but if I have to alter/add anything to the images in the future I change the CSS class and not all 77 pages).
"Okay, I give up: which is NOT a real programming language????"
Michael Bergman
|
|
|
|
|
Yeah. Making CSS class is better...
I think you can use this one line border:0px; instead of four lines..
|
|
|
|
|
Or border: none; I think.
|
|
|
|
|
To apply no border on all image use this stylesheet:
img { border:0px; }
(tested on FF and IE)
La Richesse & la Gloire ne griseront jamais que les temples
|
|
|
|
|
Visual Studio 2005 recommends the same via stylesheets.
|
|
|
|
|
dear all,
it was a fine day time when i thought i had completed most of my project on asp.net when i found viruses all over my system. So, i had to copy the project file in a removable drive and format the system. But as i reinstalled the operating system done all the formalities of installing vs.net IDE
and tried to open the same application thinking of completing the same, i got an error for IIS as the same folder was not there in the default web site.
How do i go about solving the prob?
-- modified at 16:48 Tuesday 17th July, 2007
|
|
|
|
|
LOL! This is a programming question...but I'll answer anyway
You didn't copy your "C:\inetpub\wwwroot\Projectname" directory...which contained the asmx files(otherwise known as...ALL THE CODE).
|
|
|
|
|
hi copy the folder to the location C:\inetpub\wwwroot
if posible create a virtual directory
hope it works
|
|
|
|
|
I have tried... sad thing is, I know it's simple..
What is the regular expression characters(s) for "match any number of any characters"?
eg:
Can someone pls give me a regular expression that will return true if the input matches the bignning of the test
eg, I want to test input against "dagwood"
d would match
da would match
dag would match
wood would not macth
xyzdagwood would not match
Fred
|
|
|
|
|
The "*" matches zero or more matches; the "+" matches 1 or more matches, and the "?" matches zero or one matches.
I don't really understand what you want? If you want to find words that either start with d or da or dag this works:
\b(d|da|dag)(?:[a-z]*)
Regex^ rx = gcnew Regex("\\b(d|da|dag)(?:[a-z]*)");
MatchCollection^ matches = rx->Matches("dog daddy dagwood wood xyzdagwood");
for each (Match^ match in matches)
{
Console::WriteLine(match->Value);
}</code>
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Thanks but... sort of..
.. what you've provided will almost do, but what I need is a genereic expression that says "if what you type in is a match for the beginning of my word ["dagwood" in this example] then I'll return true"
The word dagwood may change though, so I'll be building up the regex dynamically; it may be any length; so I can't explicitly cover all possibilities as in your example.
cheers...
F
|
|
|
|
|
Wouldn't the StartsWith method of the string class do?
---
single minded; short sighted; long gone;
|
|
|
|
|
StartWith what though?
Suppose I want to check their input aganst the word "Dingbat"
they type "x" - I want to return false;
they type "D" - true;
they type "Dx" - false;
they type "Di" - true;
So how would I use StartsWith in this contecxt?
And can it be case-insensitive?
ta...
|
|
|
|
|
Fred_Smith wrote: Suppose I want to check their input aganst the word "Dingbat"
they type "x" - I want to return false;
they type "D" - true;
they type "Dx" - false;
they type "Di" - true;
string word = "Dingbat";<br />
word.StartsWith("x") -> false<br />
word.StartsWith("D") -> true<br />
word.StartsWith("Dx") -> false<br />
word.StartsWith("Di") -> true
Fred_Smith wrote: And can it be case-insensitive?
There is an overload that takes a StringComparison parameter that you can use to control case sensitivity and culture.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks but I ned something more generic than that - I can't be building up tests for every possibility. I want something that says:
"If your input matches any part of the start of my word I'll return true"
cheers
|
|
|
|
|
Take another look at what I wrote, and think about how the strings that you wrote as "they type" corresponds to the literal strings I offered as examples. Perhaps you could use a variable?
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi all, I know this is a pretty common problem and there are lots of hits on google for the problem but I have spent the last few days goin through all these hits and nothing seems to work, the server is new and it is running Windows Server 2003, IIS 6 and .Net Framework 1.1 any help, advise or anything would really be appreciated.
Thanks in advance
Tim
|
|
|
|
|
I remember this exception from when I was creating entries in the event log in an application, is this something which you are doing?
I think specifically its adding items to a new event log (ie not application, security, etc) and you need specific permissions to create this.
If this is not something which your application does then please post back.
|
|
|
|
|
thanks for your reply
yes the application is tryin to write to the event log using Microsoft dlls the error is specifically related to the following 3 dlls
Microsoft.Practices.EnterpriseLibrary.Data.dll
Microsoft.Practices.EnterpriseLibrary.Configuration.dll
Microsoft.Practices.EnterpriseLibrary.Common.dll
from what i understand of the error bein dispayed these are trying to write to the event log but do not have the permissions needed
thanks again
Tim
|
|
|
|
|
|
i actually found this article and managed to do the First Approach but i was unable to run the InstallUtil EventLogSourceInstaller.dll part of the Second Approach do u know what directory u need to be in to run it and can u do it use normal command prompt
Thanks
Tim
|
|
|
|
|
If you search functionality causes a postback (which I think you have) you can use stylesheets to highlight the matches.
for example if a user enters a search string, you can use regular expressions to find matches and replace those matches so that a html tag surrounds the match (searchmatch ).
Doing so client-side will be pretty complicated... not having a solution right now :->
|
|
|
|
|
I have created maps in microsoft mappoint 2006 that i want to display on a Sharepoint site. As the maps are already created I don't think I need the SOAP service. I do need the search, pan and zoom control so just displaying the .gif of the map will not cut it. Idon't want to install MP2006 on everyones desktop just to inherit the controls.
Does anyone know how to build the web part to display preexisting maps (ex: Florida.ptm, Texas1.ptm etc.) will the search, zoom and pan controls in the browser window?
I would really appreciate anyones help.
Here is an example on Live Earth
http://maps.live.com/default.aspx?v=2&cp=30.357323~-89.859753&style=r&lvl=12&tilt=-90&dir=0&alt=-1000&scene=8584496&rtp=null~null&cid=C4CD47A0FE51B4AF!101&encType=1
|
|
|
|
|
Hi All,
My Code:
oxmlhttp.Open "POST", webservices & "getdate.asp?tname="Navneet"
oxmlhttp.send
return me :
ok
where as i want only ok to be returned
Can any one suggest the solution
Regard & Wishes
Navneet Hegde
Develop2Program & Program2Develop
|
|
|
|