CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.internet_explorer_web_controls Tags:
Item Type: NewsGroup Date Entered: 12/14/2003 9:09:52 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 5 Views: 41 Favorited: 0 Favorite
6 Items, 1 Pages 1 |< << Go >> >|
danycantin
Asp.Net User
TabStrip with MultiPage (TabStrip.htc print FIX)12/14/2003 9:09:52 AM

0

Hi all, I have make an fix for printing focus problem on TabStrip with MultiPage.

In your TabStrip.htc file,

1- Add this function
-----------------------
function GetCookie(name) {
var arg = name+"=";
var i = 0;
while (i < element.document.cookie.length) {
var j = i + arg.length;
if (element.document.cookie.substring(i, j) == arg) {
var endstr = element.document.cookie.indexOf(";", j);
if (endstr == -1)
endstr = element.document.cookie.length;

return unescape(element.document.cookie.substring(j, endstr));
}

i = element.document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;
}

return null;
}

2- Inside the function f_Init() add
---------------------------------------
_Tabs = _bHorizontal ? oTBody.childNodes[0] : oTBody; //Line already exist
if ((GetCookie("LastIndex" + _Tabs.uniqueID) > 0) && (_nSelectedIndex == 0)) {
element.document.cookie = "PrintPreview" + _Tabs.uniqueID + "=1";
return;
}

3- Change the function f_NavigateMultiPage(oTab) to
-------------------------------------------------------------
function f_NavigateMultiPage(oTab)
{
var oTargetID = (oTab == null) ? null : oTab.getAttribute("targetid");
if (oTargetID != null)
{
var oTarget = element.document.all[oTargetID];
if (oTarget != null)
{
oTarget.setAttribute("activate", "true", 0);
}
}
else if (targetID != null)
{
var oTarget = element.document.all[targetID];
if (oTarget != null)
{
oTarget.selectedIndex = (GetCookie("PrintPreview"+_Tabs.uniqueID) == 1)?GetCookie("LastIndex"+_Tabs.uniqueID):_nSelectedIndex;

element.document.cookie = "LastIndex" + _Tabs.uniqueID + "=" + _nSelectedIndex;
element.document.cookie = "PrintPreview" + _Tabs.uniqueID + "=0";
}
}
}

Note: The limitation of this fix is that you can not combine TabStrip with AutoPostBack=True, with TabStrip with AutoPostBack=False on the same page.
Enjoy!
sdrzewic
Asp.Net User
Re: TabStrip with MultiPage (TabStrip.htc print FIX)1/7/2004 6:18:20 AM

0

I tried this fix and when I go to print, the first tab is still what prints.

An example of my problem is http://www.teapartyswings.com/schedule.aspx

Thanks,
Steve D.
tvshmat
Asp.Net User
Re: TabStrip with MultiPage (TabStrip.htc print FIX)1/13/2004 9:51:40 PM

0

Worked for me!!!
Make sure you've followed every step as described in first post.

Thanks a lot to 'danycantin' 8-)
Bill2clone
Asp.Net User
Re: sdrzewic1/14/2004 10:56:08 AM

0

That's OK for me on your site.
Fixed the bug?
DNN skins Forum
Tressleworks modules
DNN & webhosting
IEWCtrls
sdrzewic
Asp.Net User
Re: sdrzewic1/16/2004 11:44:28 PM

0

It works on my site for you?
Bill2Clone
Asp.Net User
Re: sdrzewic1/18/2004 10:42:31 AM

0

As I told you, it works for me.
Click on Sunday, print. Everything's OK.

I tested it on Win2k Pro / Frmw 1.1 / IE 6
DNN skins Forum
Tressleworks modules
DNN & webhosting
IEWCtrls
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
CodeProject: The XTabControl Server Control. Free source code and ... Aug 3, 2005 ... Multiple rows of tabs which rearranged themselves as you clicked them, and that sort of thing. ... could find were Microsoft's orphaned TabStrip and MultiPage controls, which have to be installed on the server, which use .htc files, ..... that it will automatically fix the problem for XTabControl . ...
CodeProject: The XTabControl Server Control. Free source code and ... Aug 3, 2005 ... Print Broken Article? Report add Share ... but all I could find were Microsoft's orphaned TabStrip and MultiPage controls, which have to be installed on the server, which use .htc files, ..... When Microsoft fixes this on their end, I hope that it will automatically fix the problem for XTabControl . ...
Microtools Tech Support Page How can I fix the "Failed to access IIS metabase" error? ... How can I print an Access report in VB .NET application? ...... 01/07/2003 04:38 PM 4584 MultiPage. htc 01/07/2003 04:38 PM 37171 TabStrip.htc ...
Microtools Tech Support Page How can I fix the authentication error in my web.config file? ..... Now the ANETVB8 provides you a way to preview or print your Access reports. ..... 01/07/ 2003 04:38 PM 4584 MultiPage.htc 01/07/2003 04:38 PM 37171 TabStrip.htc ...
PowerBuilder MultiPage.htc, TabStrip.htc, toolbar.htc, treeview.htc, webservice.htc, and ..... might encounter some of the following common, easy-to-fix issues at runtime: ..... In Web Form applications, output from supported PowerScript print ...







possibility to save treeview to xml?

treeview (microsoft internet explorer webcontrols) and xmldocument

treeview - multiple nodelevels from database

tabstrip rendering

adding dropdwon button command to toolbar

the page with treeview webcontrol could not be found on another client

problems

tabstrip selectedindexchange event is not firing

ie webcontrols tab/multipage state problem

with the help of xml how can i populate data in a treeview

how to install ie web controls in asp.net2.0

how to include internet explorer web controls in the tool bar

treeview control

treeview postback error and it's wired

please help with installing and running sample aspx

can i redistribute the microsoft.web.ui.webcontrols.dll with my commercial app?

view of treeview :(

i want to create tree view control on my web form

treeview behavior

tree view label side

collapsing old node on selecting new one

solution to: treeview showing only as text (still need permanent server solution!)

uiwebcontrols - treeview control

toolbar menu from the ie web control package

treeview webcontrol. where is the .htc file referenced? (asp.net 1.1)

treeview control is not available for asp.net

error while running build.bat file

parser error help plz for newbie

ie web control treeview for downlevel browsers

simple question

   
  Privacy | Contact Us
All Times Are GMT