ラベル url の投稿を表示しています。 すべての投稿を表示
ラベル url の投稿を表示しています。 すべての投稿を表示

2012年3月28日水曜日

Resizable Control bug?

The following code:

_lining.style.backgroundImage = 'url(invalid)'; // Keeps IE from ignoring the content-free element

in ResizableControlBehavior class is not working well with IE6. The image is being requested by browser every event the control fires (mousedown, mouseup, mousemove etc.). Check out your browser's status bar while resizing the control (watch it carefully as the text blinks very quickly) or use Nikhil's Web Development Helper with http logging on to see the requests.

There are many ways to fix this. I use solid black background with 20% opacity for additional effect.

Thanks for reporting this. Could you file an issue with this information atwww.codeplex.com?

Choose "Atlas Control Toolkit" then "Issues".

Thanks!

ResolveUrl equivalent from web service

Hi,I need to resolve a relative URL (eg "~/path/to/file") from within a web service. The only way I know how is using Control.ResolveUrl (or ResolveClientUrl) but obviously neither of these are available from outwith a control context. I've had a look with Reflector at what goes on in those methods and it all uses internal classes so I don't know how I can emulate it.Any ideas? I'm sure theres a method for this somewhere I just need it pointed out!CheersRory

try:

HttpContext.Current.Server.MapPath("~") + "/App_Data/TestFile.jpg", ImageFormat.Jpeg);


Thanks for the reply but I don't see how thats going to help me.

Maybe I wasn't clear enough but I need a Url I can return to the browser. ie From "~/path/to/file" I want to get "/MyApp/path/to/file"


sorry, not much of client side guy myself. I thought you were trying to resolve ~ in a web service to a real path