By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,152 Members | 1,837 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,152 IT Pros & Developers. It's quick & easy.

Disabling <%= %>?

P: n/a
Hi,

I have a client that has our product and in one of the aspx files, there is
code like this:

<%= SomePublicProperty %>

where the public property returns a string. In the test environment at the
client's site, the value is being REsponse.Written as expected. In their
production environment, it is not. No errors or anything. It's just as if
that <%= %line doesn't exist at all. Is there anything I should know
about at the IIS level, where they may perhaps have disabled server-side
scripts in aspx files?

Thanks
Mar 25 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Check the source. Do you see <%=...%in HTML.
If yes then .NET is not installed in IIS and IIS serves the page as is.

George

"Josh Valino" <no spam pleasewrote in message
news:uh**************@TK2MSFTNGP04.phx.gbl...
Hi,

I have a client that has our product and in one of the aspx files, there
is code like this:

<%= SomePublicProperty %>

where the public property returns a string. In the test environment at
the client's site, the value is being REsponse.Written as expected. In
their production environment, it is not. No errors or anything. It's
just as if that <%= %line doesn't exist at all. Is there anything I
should know about at the IIS level, where they may perhaps have disabled
server-side scripts in aspx files?

Thanks

Mar 25 '08 #2

P: n/a
Sorry, I should stated that. No, it doesn't show up. So, it seems to be
executing. The DLL that contains the value of this property is identical
(according to Beyond Compare 2, so they say), so I have reason to believe
that the property does still have a value. The only thing I can come up
with is that someone deleted the line out of the aspx file for some reason.
I'm waiting for them to send me the file but I figured I'd venture into the
remote possibility that it's an IIS configuration option.

Thanks
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:OX**************@TK2MSFTNGP05.phx.gbl...
Check the source. Do you see <%=...%in HTML.
If yes then .NET is not installed in IIS and IIS serves the page as is.

George

"Josh Valino" <no spam pleasewrote in message
news:uh**************@TK2MSFTNGP04.phx.gbl...
>Hi,

I have a client that has our product and in one of the aspx files, there
is code like this:

<%= SomePublicProperty %>

where the public property returns a string. In the test environment at
the client's site, the value is being REsponse.Written as expected. In
their production environment, it is not. No errors or anything. It's
just as if that <%= %line doesn't exist at all. Is there anything I
should know about at the IIS level, where they may perhaps have disabled
server-side scripts in aspx files?

Thanks


Mar 25 '08 #3

P: n/a
One option is to add traces to the page. It makes things easier to 'debug'
in production, as you can have your client run the page and examine the
trace. This allows you to see what is going on wtihout having to send back
files.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"Josh Valino" <no spam pleasewrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Sorry, I should stated that. No, it doesn't show up. So, it seems to be
executing. The DLL that contains the value of this property is identical
(according to Beyond Compare 2, so they say), so I have reason to believe
that the property does still have a value. The only thing I can come up
with is that someone deleted the line out of the aspx file for some
reason. I'm waiting for them to send me the file but I figured I'd venture
into the remote possibility that it's an IIS configuration option.

Thanks
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:OX**************@TK2MSFTNGP05.phx.gbl...
>Check the source. Do you see <%=...%in HTML.
If yes then .NET is not installed in IIS and IIS serves the page as is.

George

"Josh Valino" <no spam pleasewrote in message
news:uh**************@TK2MSFTNGP04.phx.gbl...
>>Hi,

I have a client that has our product and in one of the aspx files, there
is code like this:

<%= SomePublicProperty %>

where the public property returns a string. In the test environment at
the client's site, the value is being REsponse.Written as expected. In
their production environment, it is not. No errors or anything. It's
just as if that <%= %line doesn't exist at all. Is there anything I
should know about at the IIS level, where they may perhaps have disabled
server-side scripts in aspx files?

Thanks



Mar 26 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.