Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 21, 2007 08:03 PM by James Gao
Jan 27, 2006 11:08 PM|LINK
Has anyone gotten the IEWebControls, particularly the TabStrip and MultiPage, to work in ASP.NET 2?
I can run them on my machine without a problem using a website in .NET 1.1 but on a newer .NET 2 site, the tab strip doesn't work at all.
Jan 31, 2006 12:44 PM|LINK
You need to do some ground work for setting up IE Webcontrols to work in ASP.NET 2.0.
First of all you need to copy the webctrl_client folder into your application's folder. This will be available in the IIS root directory when you were working with 1.1 version.
First of all, in the web.config you need to specify the following within the <configuration> </configuration> section
<section name="MicrosoftWebControls" type="System.Configuration.NameValueSectionHandler,System,Version=22.214.171.124, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add key="CommonFiles" value="/yourwebsitename/webctrl_client/1_0/"/>
Then, you can normally reference the control in the Page directive and use the same.
Hope this helps.
Feb 01, 2006 06:55 PM|LINK
Im relatively new to asp.net, and im not using iis, im just using the built in function of VS 2005 to view server pages. Any idea of where i should even start to get this to work?
All i get is this error:
Parser Error Message: Could not load file or assembly 'Microsoft.Web.UI.WebControls' or one of its dependencies. The system cannot find the file specified.
Then i get a bunch of log entries. Thanks
Feb 02, 2006 04:30 AM|LINK
You need to download the Microsoft IE Webcontrols from here
Then you need to follow the instructions that come along with the download and create the 'Microsoft.Web.UI.WebControls' and also create the webctrl_client by following the instructions.
Finally, you need to copy the webctrl_client folder into your application's root folder and also add reference to the 'Microsoft.Web.UI.WebControls' DLL for your application.
This should solve your issue.
Write back if this doesnt help.
Feb 10, 2006 11:23 AM|LINK
Your post was very much useful. I was trying to use TabStrip. Wierdly for me after doing all the steps you had mentioned I didn't got the tabs at all. The controls in all tab pages were just appearing
in the same page without tabs. However my design window was showing tabs.
Then I tried differently. I downloaded IE Webcontrol once again and ran the build.bat with .NET 2.0 compiler. Then I copied the newly built Microsoft.Web.UI.WebControls dll to the bin folder. Even
now the tabs were not appearing.
Finally got bored of everything and tried to remove the web.config setting you had mentioned from my web.config. Voila! everything works - I got tabs. IE Webcontrol is Working !!! in ASP.NET 2.0.
Then I tried one more sample application. Strangely for me, if I give the web.config setting you have mentioned (MicrosoftWebControls) it is not working. If I don't
give it everthing seems to be fine. Probably the path must be the problem for me I guess.
Feb 13, 2006 08:08 PM|LINK
How did you compile with .net 2.0? I'm using a dll compiled in 1.x. I don't know if there are differences in execution...
Can you give me further information?
Feb 14, 2006 01:36 PM|LINK
You dont need to necessarily compile with ASP.NET 2.0. You can just use the old Microsoft.Web.UI.Webcontrols.DLL and specify the settings as mentioned in my original post.
They have been working fine for me (even intellisense pops up for them). The only issue is that PageView would be highlighted as an error. But you can just ignore it.
Feb 14, 2006 01:42 PM|LINK
I havent had any issues in terms of using the Microsoft.Web.UI.Webcontrols.DLL build using .NET 1.x versions. Probably, you missed out the step that the webctrl_client also needs to be a part of the root directory
or you forgot to enter the Control declaration in the page directive as you would do with usercontrols.
BTW, if you are looking at a scenario where you would have postbacks when you switch between tabs, consider usign the MultiView - View controls. They simplify the way you work with Tabstrip and you dont have
to do FindControl, Explicit Event Declaration etc., which were some of the mundane tasks when using Tabstrip in 1.x versions.
I have a couple of articles which examine these and IE Webcontrols extensively. May be you want to check them.
ASP.NET 2.0 MultiView Control - No more TabStrip / Panel Show-Hide
A better way of working with IE Webcontrol - Part I
A better way of workign with IE Webcontrol - Part II
Feb 14, 2006 09:54 PM|LINK
I've done all the installing of the webcontrols, and done the build.bat process and made 2 folders in the root of my applications (bin and webctrl_client) the application will come up in vs 2005 when i click view in browser (and when i test it on other servers
with the 2.0 framework) but whats weird is theyre not working right...i have tried this with the treeview and the tabstrip with the multipage and with the treeview all i get is the names of the treenodes that i made but they dont show up in an expandable form
its just the text in a flowlayout one after the other...any idea what im doing wrong?
Feb 15, 2006 04:42 AM|LINK
Did you do the web.config setting I had mentioned in the original post?