Showing posts with label strange. Show all posts
Showing posts with label strange. Show all posts

Monday, March 26, 2012

This is really weird...

I've got a search on my site that runs off index server.. it works well enough but has something very strange going on - it only returns results for certain searches if the seach words are in uppercase..

Now - rather than try to figure out what was going on, I just converted the search terms to upper case in my asp.net script.. it still didn't work.

Next option - transform all text in the search box to uppercase using css..

still doesn't work?

It's really odd - I've got a text box that can only display uppercase letters yet the search returns different results if I have caps lock on or off. And, as I say, I'm also converting the text to uppercase before I chuck it into my sql..

It's almost as if there's another bit of info being sent - namely that I have caps lock on??

Am I missing something completely obvious here?

Any ideas?

Thanks.The index search should be case insensitive, so I am doubtful that has anything to do with it.

Can you provide the pertinent code surround the actual query execution?

Terri

this is strange....

Hey

asp.net 2.0

My problem is that the image web server control (see below) won't display
the image if web.config have this setting:
<authorization>
<deny users="?" />
</authorization>

<asp:Image ID="logo" runat="server" ImageUrl="~/logo.png" />

Any ideas what I should do to solve this so the image is displayed if
web.config have
<authorization>
<deny users="?" />
</authorization>

Best Regards!

JeffThis web page uses a theme

and it looks like the page can't use the theme either if
<authorization>
<deny users="?" />
</authorization>

<pages theme="Standard" maintainScrollPositionOnPostBack="true"></pages>

any suggestions?

"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
news:OFg7n$w4GHA.1460@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

Hey
>
asp.net 2.0
>
My problem is that the image web server control (see below) won't display
the image if web.config have this setting:
<authorization>
<deny users="?" />
</authorization>
>
<asp:Image ID="logo" runat="server" ImageUrl="~/logo.png" />
>
Any ideas what I should do to solve this so the image is displayed if
web.config have
<authorization>
<deny users="?" />
</authorization>
>
>
Best Regards!
>
Jeff
>


"?" stands for anonymous users and "*" for all users. So,

<allow users="Jv"/>
<deny users="?"/>

will allow user "Jv" but deny all anonymous users. You can use to separate
multiple identiies.

<allow users="Jv, Kylin"/>
<deny users="?"/>

"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message news:OjhGjTx4GHA.4352@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

This web page uses a theme
>
and it looks like the page can't use the theme either if
<authorization>
<deny users="?" />
</authorization>
>
<pages theme="Standard" maintainScrollPositionOnPostBack="true"></pages>
>
any suggestions?
>
>
"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message news:OFg7n$w4GHA.1460@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

>Hey
>>
>asp.net 2.0
>>
>My problem is that the image web server control (see below) won't display the image if web.config have this setting:
><authorization>
> <deny users="?" />
></authorization>
>>
><asp:Image ID="logo" runat="server" ImageUrl="~/logo.png" />
>>
>Any ideas what I should do to solve this so the image is displayed if web.config have
><authorization>
> <deny users="?" />
></authorization>
>>
>>
>Best Regards!
>>
>Jeff
>>


>
>


thanks!

"Jon Paal" <Jon[ nospam ]Paal @. everywhere dot comwrote in message
news:OIVEUIz4GHA.3512@.TK2MSFTNGP04.phx.gbl...

Quote:

Originally Posted by

"?" stands for anonymous users and "*" for all users. So,
>
<allow users="Jv"/>
<deny users="?"/>
>
will allow user "Jv" but deny all anonymous users. You can use to separate
multiple identiies.
>
<allow users="Jv, Kylin"/>
<deny users="?"/>
>
>
>
"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
news:OjhGjTx4GHA.4352@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

>This web page uses a theme
>>
>and it looks like the page can't use the theme either if
><authorization>
> <deny users="?" />
></authorization>
>>
><pages theme="Standard" maintainScrollPositionOnPostBack="true"></pages>
>>
>any suggestions?
>>
>>
>"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
>news:OFg7n$w4GHA.1460@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

>>Hey
>>>
>>asp.net 2.0
>>>
>>My problem is that the image web server control (see below) won't
>>display the image if web.config have this setting:
>><authorization>
>> <deny users="?" />
>></authorization>
>>>
>><asp:Image ID="logo" runat="server" ImageUrl="~/logo.png" />
>>>
>>Any ideas what I should do to solve this so the image is displayed if
>>web.config have
>><authorization>
>> <deny users="?" />
>></authorization>
>>>
>>>
>>Best Regards!
>>>
>>Jeff
>>>


>>
>>


>
>

Tuesday, March 13, 2012

thread restarting mid http request processing

I'm experiencing a really strange error at the moment, and was wondering if
anyone else has run into this.
This is a seemingly straightforward asp.net application -- i'm allowing the
user to make choices on a web form, collect the information, populate my
domain model, and then persist the domain model into session state which is
using the out of proc asp.net session state service.
The user behavior is that on a seemingly random interval, changes are simply
not persisted. Looking at the debugger, I can see that when this happens, m
y
thread responsible for processing the request is shut down and the request i
s
picked up by a new thread -- but apparently without the context of the
previous thread -- hence the data not being persisted.
Does anyone have any thoughts on why this is happening and how to go about
correcting?
tia,
_howardasp.net is thread agile, so switching threads is common. are you using any
STA components (vb6)? they will have this behavior in the agile model.
-- bruce (sqlwork.com)
"howard dierking" <howard dierking@.discussions.microsoft.com> wrote in
message news:0BF0E8CC-8FDB-4FEC-8360-13F665C19CBC@.microsoft.com...
> I'm experiencing a really strange error at the moment, and was wondering
if
> anyone else has run into this.
> This is a seemingly straightforward asp.net application -- i'm allowing
the
> user to make choices on a web form, collect the information, populate my
> domain model, and then persist the domain model into session state which
is
> using the out of proc asp.net session state service.
> The user behavior is that on a seemingly random interval, changes are
simply
> not persisted. Looking at the debugger, I can see that when this happens,
my
> thread responsible for processing the request is shut down and the request
is
> picked up by a new thread -- but apparently without the context of the
> previous thread -- hence the data not being persisted.
> Does anyone have any thoughts on why this is happening and how to go about
> correcting?
> tia,
> _howard
Hi Bruce,
no STA components - all asp.net
_howard
"bruce barker" wrote:

> asp.net is thread agile, so switching threads is common. are you using any
> STA components (vb6)? they will have this behavior in the agile model.
> -- bruce (sqlwork.com)
>
> "howard dierking" <howard dierking@.discussions.microsoft.com> wrote in
> message news:0BF0E8CC-8FDB-4FEC-8360-13F665C19CBC@.microsoft.com...
> if
> the
> is
> simply
> my
> is
>
>
are you using thread local storage? it will have the same problem. how are
you storing the model data? also when do you update the session?
-- bruce (sqlwork.com)
"howard dierking" <howarddierking@.discussions.microsoft.com> wrote in
message news:9D21988F-C431-4D66-B1BC-0959F9DB033A@.microsoft.com...
> Hi Bruce,
> no STA components - all asp.net
> _howard
>
> "bruce barker" wrote:
>
any
wondering
allowing
my
which
happens,
request
about
no explicit tls model data is stored as an actual session variable, so the
timing of it's persistance will be set by the normal control life cycle.
_howard
"bruce barker" wrote:

> are you using thread local storage? it will have the same problem. how are
> you storing the model data? also when do you update the session?
> -- bruce (sqlwork.com)
>
> "howard dierking" <howarddierking@.discussions.microsoft.com> wrote in
> message news:9D21988F-C431-4D66-B1BC-0959F9DB033A@.microsoft.com...
> any
> wondering
> allowing
> my
> which
> happens,
> request
> about
>
>