Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Disabling <%= %>?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Josh Valino - 25 Mar 2008 19:30 GMT
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
George Ter-Saakov - 25 Mar 2008 19:33 GMT
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

> Hi,
>
[quoted text clipped - 11 lines]
>
> Thanks
Josh Valino - 25 Mar 2008 19:46 GMT
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

> Check the source. Do you see <%=...%> in HTML.
> If yes then .NET is not installed in IIS and IIS serves the page as is.
[quoted text clipped - 16 lines]
>>
>> Thanks
Cowboy (Gregory A. Beamer) - 26 Mar 2008 01:28 GMT
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.

Signature

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!

*************************************************
> 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
[quoted text clipped - 26 lines]
>>>
>>> Thanks

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.