|
Hallo!
I have such code in to the .htaccess file:
RewriteEngine on<br />
RewriteBase /<br />
<br />
RewriteCond %{REQUEST_URI} /one1<br />
RewriteRule ^[^.]*$ for_one.php [L]<br />
<br />
RewriteCond %{REQUEST_URI} /two2<br />
RewriteRule .* for_two.php [L]
Here every thing works as it should be:
test.ru/one1 => for_one.php
test.ru/two2 => for_two.php
But when I exclude second RewriteCond every thing breakes:
I call /one1 it return me for_two.php
RewriteEngine on<br />
RewriteBase /<br />
<br />
<br />
RewriteCond %{REQUEST_URI} /one1<br />
RewriteRule ^[^.]*$ for_one.php [L]<br />
<br />
RewriteRule .* for_two.php [L]
test.ru/one1 => for_two.php
Nevertheless it must work: first RewriteCond is true and there is [L] flag after RewriteRule, so the Rewriting process must stop!
Why [L] flag dose not work?
Why the rewriting process dose not stop?
Here is text from apache manual:
Stop the rewriting process here and don't apply any more rewrite rules. This corresponds to the Perl last command or the break command in C. Use this flag to prevent the currently rewritten URL from being rewritten further by following rules. Remember, however, that if the RewriteRule generates an internal redirect (which frequently occurs when rewriting in a per-directory context), this will reinject the request and will cause processing to be repeated starting from the first RewriteRule.
Maybe here Internal-Redirection happened? but what is this, and how it could happend? I did not call Redirect flag [R].
Or internal Redirection is alway when using .htacess files?....
|
|
|
|
|
Hi guys,
I'm currently experiencing a strange phenomenon.
I have a user-control which allows the user to add data into a list on clicking on the OK Button.
On the page where I use this control all works fine.
However, now I need to have a second page where i need to enter the same data. So I wanted to re-use the control.
The control is shown but when I click on the OK button no event is trigger, nothing happens?
I have put a break point in the PageLoad of the user-control, but it doesn't event get there.
It seems like that the event if any is missing at all, althought that the html (client-side) code is the same.
Does anyone have a thought, or knows a reason why this could happen?
Thx,
Kurt
Learn from the mistakes of others, you may not live long enough to make them all yourself.
|
|
|
|
|
I think i have miss post this question
I will post it under the ASP.Net forum
Kurt
Learn from the mistakes of others, you may not live long enough to make them all yourself.
|
|
|
|
|
can you provide more detail ??
Like what type of control you are using, custom control, user control, etc.....
And what exactly you want on second page that is not happened after you copy
control and code from first page. (Which is working on first page)
Jinal Desai
|
|
|
|
|
Thanks for the reaction.
I'm using controls designed by DevXpress, so i did a search on there forums as well. While there I stumble onto a similar problem. The problem could lay in a databinding control which could prevent events from firing.
This second page exists out of a tab control with 4 pages. When I remove the 2 last pages the control starts working. So my best guess is that one off the bindings onto those pages misbehave.
Thanks anyway
Learn from the mistakes of others, you may not live long enough to make them all yourself.
|
|
|
|
|
Got it working.
Image name was different by a capital letter!
I have a css that reads like this...
div.boxedtext2
{
border-right:navy thin solid;
padding-right:25px;
border-top:navy thin solid;
padding-left:25px;
float:left;
padding-bottom:25px;
margin:0px 25px 15px 0px;
border-left:navy thin solid;
padding-top:25px;
border-bottom:navy thin solid;
width:848px;
height:300px;
background-color:#ffd0fc;
background-image: url('images/tardis.jpg');
background-repeat: no-repeat;
background-position: center center
}
.onmouse:hover
{
background-image:url('images/tardis2.jpg');
}
.onmouse
{
}
I am calling it under <div class="boxedtext2 onmouse">
I am getting the first image on first appearance, but not the second image on mouse over.
Why?
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
modified on Monday, April 26, 2010 5:56 PM
|
|
|
|
|
Good that you got it sorted. Did any of those PDF's I sent you help, or did they muddy the water? And did you download that "TopStyle Lite" application I recommended? If not, go get it from here http://topstyle.en.softonic.com/download[^] It helps you visualize styles without the webpage getting in-the-way.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
I sent them to my home machine, but not had a chance to look at them too hard, but I have a long weekend coming up in which to get some serious learning done.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Hi,
I have an asp page that I want to connect with WCF Service
Can someone guide me how can I connect and call the service?
<%
Dim soapServer
soapServer = "https://XXXXXX.YYYYYY.com/ZZZZZZZZ/20100201/ABC.svc"
Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "POST", soapServer, False,"USERNAME","PASSWORD"
xmlhttp.setRequestHeader "SOAPAction", POST & " " & soapServer & " HTTP/1.1"
xmlhttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
Response.Write "About to call WCF Web Service from Classic ASP..."
xmlhttp.send()
Response.Write "<br>Finished calling Web Service."
Response.Write "<br>Status = " & "<font color='red'>" & xmlhttp.statusText & "</font>"
Response.Write "<br>ResponseText = " & xmlhttp.responseText
%>
I got Status = Bad Request Result when I ran the asp page .
I don't have idea whether my creadetial get pass or fail or do I properly connect with WCF service or not ?
Can any one help me in this matter?
modified on Monday, April 26, 2010 3:20 PM
|
|
|
|
|
It seems you want to pass the client's network credentials in your call to the service. See this[^] article.
/ravi
|
|
|
|
|
|
We have a 32-bit library written and compiled in Borland Delphi. This library is referenced by various other projects including a WCF Web Service hosted in IIS. The web service is compiled using the x86 option and everything works fine on a 32-bit machine. However, on our 64-bit server the service fails when calling into the 32-bit Delphi library. Does anyone know why .NET code compiled with 32-bit option would still fail while calling a non-.NET 32-bit library on a 64-bit machine?
|
|
|
|
|
In IIS7 and higher, you'll need to run the calling app in a 32-bit application pool.
Note that if your server is running in a cluster configuration, this will not work, if I remember well.
|
|
|
|
|
Thanks for the reply Michel. We have indeed set it to run in the 32-bit application pool and are not running in a cluster configuration...and we are still miffed as to why its not working.
|
|
|
|
|
Bummer. Makes me as miffed as you...
|
|
|
|
|
Heap corruption! Apparently there is a flag called HeapEnableTerminationOnCorruption that was not previously enabled by default. As a new feature in Windows Vista, the IIS worker process terminates when the heap corruption is detected. So, it only APPEARED to be working in our stand-alone apps and on our 32-bit Windows XP machines, when in actuality it was simply ignoring the error.
To fix the problem we changed our code for calling into the Delphi libraries to use IntPtrs and pass data back using out parameters. For example:
public string CallDLL(string sTest)
{
string s = "";
IntPtr p1 = Marshal.StringToHGlobalAnsi(sTest);
s = Marshal.PtrToStringAnsi(p1);
if (p1 != IntPtr.Zero)
{
Class1.TestDLL(out p1);
s = Marshal.PtrToStringAnsi(p1);
}
Marshal.FreeCoTaskMem(p1);
return s;
}
Hope this helps anyone with the same issue.
|
|
|
|
|
Great! Nice to hear something back from someone when a solution is found. Thanks for sharing that.
|
|
|
|
|
hi:
I want to turn a Firefox Add-On I'm having developed [almost done] into a similar IE Extension; can you help with that? If so, pls e-mail me.
pls let me know,
Marshall
|
|
|
|
|
Wrong site. Try rentacoder.com
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Want to learn how to leverage your existing ASP.NET skills to build Windows Azure applications? Then be sure to check out two new articles, Cloud Development in Visual Studio 2010 and Developing and Deploying Windows Azure Apps in Visual Studio 2010, that explain how to build cloud services and applications with Visual Studio 2010.
NOTE: if you aren't a Visual Studio user today, you can use the Windows Azure support in Visual Studio 2010 Express to evaluate the Windows Azure Tools for Visual Studio for FREE.
Details in blog post http://blogs.msdn.com/windowsazure/archive/2010/04/09/how-to-develop-for-the-cloud-in-visual-studio-2010.aspx
|
|
|
|
|
Out of advertising-budget? Why would I invest my precious time in a technology that isn't even worth the advertising space?
That's at least what your post suggests
Have a great weekend
|
|
|
|
|
|
Hey guys,
In my ASP.NET(.aspx) pages am referencing an external css file,
When I run my pages in a website, firefox 'cannot' interpret
anything in my css file but Internet Explorer can...
Does anyone know what i can do to help firefox read my css?
Please help
Thanks,
Morg
|
|
|
|
|
Cross posting?
Well, at least you are talking abou an external css file now. Just Google[^] for it wil lead you to your answer.
Wout Louwers
|
|
|
|
|