problem with Microsoft web controls...

G

Guest

Hi,
I am building a .net 1.1 application with microsoft webcontrols. The
environment that i am deploying this application has 1.1 and 2.0 framework .
My development environment also has these environment side by side. Every
thing works fine on my development machine but on staging area i am have
problem with microsoft webcontrol.
I have downloaded and installed microsoft webcontrols and followed every
step in the readme.txt file but when i view the pages the tab control appears
as plain text rather than tabs. For example if i view tabstrip.aspx page that
comes with the sample i see "tab1 tab2 and tab3" displayed as text only.
I have searched web for help and have verified:
1. The webctrl_Client folder and its contents resides in my web root folder.
2. .htc files are there.
3. Microsoft.Web.UI.WebControls.dll resides under bin folder of my website.
Any suggestion?
 
W

Walter Wang [MSFT]

Hi,

The style should be set by the .htc file. It's not related to ASP.NET or
IIS. You can test this by using a simple html page:

<html>
<body>
<?XML:NAMESPACE PREFIX="TSNS" />
<?IMPORT NAMESPACE="TSNS" IMPLEMENTATION="tabstrip.htc" />
<TSNS:TabStrip selectedIndex="1"
tabDefaultStyle="background-color:#000000;font-family:verdana;font-weight:bo
ld;font-size:8pt;color:#ffffff;width:79;height:21;text-align:center;"
tabHoverStyle="background-color:#777777;"
tabSelectedStyle="background-color:#ffffff;color:#000000;" >
<TSNS:Tab>Home</TSNS:Tab>
<TSNS:Tab>About us</TSNS:Tab>
<TSNS:Tab>Products</TSNS:Tab>
<TSNS:Tab>Support</TSNS:Tab>
<TSNS:Tab>Contact us</TSNS:Tab>
</TSNS:TabStrip>
</body>
</html>


Put above html page and tabstrip.htc in the same folder and open the html
page in IE, IE Information Bar will first block the content, the TabStrip
just looks like some plain text; after you enabled it, it should render the
tabstrip with styles.

It this doesn't work on your side or the IE Information Bar doesn't show up
at all, it might be related with IE security settings.



Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Thanks Wang for the reply. But the problem i am facing is that i cannot see
tabstrip on same browser running on same machine when i request for the page
from 2 different website. To elaborate on that, i have same code on my
machine and production environment. When i request that page from my machine
using http://localhost/myPage.aspx (dummy name) then i see the tab strip
correctly but when i request the same page from my machine from our
production environment using https://mywebsite/mypage.aspx(again dummy names)
i don't see the tab strip!!! which means that the problem is not related to
IE security settings ( as i am using same machine to request pages from 2
different website).
Your thoughts...
 
W

Walter Wang [MSFT]

Well, this looks like your server might not be serving the .htc file to
client browser. Would you please take a look at w3svc log file to check
that?

You can find the log files at %windir%\system32\logfiles\W3SVC1, look for
the newest file and see if the .htc file is served correctly (you might
need to use other folder if you have multiple web sites).

Here's some sample log records on my site:

2006-11-14 11:39:21 W3SVC1 157.60.112.73 GET /tabstrip/test.htm - 443 -
157.60.113.223
Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+Maxthon;+.NET+CLR+2.0.507
27;+.NET+CLR+1.1.4322;+.NET+CLR+3.0.04506.30;+InfoPath.2) 200 0 0
2006-11-14 11:39:21 W3SVC1 157.60.112.73 GET /tabstrip/tabstrip.htc - 443 -
157.60.113.223
Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+Maxthon;+.NET+CLR+2.0.507
27;+.NET+CLR+1.1.4322;+.NET+CLR+3.0.04506.30;+InfoPath.2) 200 0 0


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Thanks, I found the cause of problem. We have URLScan on the production
machine which was preventing the .htc file to be served. Once i added that
file extension to list of allowed file extension everything started working
like charm...
Thanks a lot for you help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top