grids conection gallery 
Author Message
 grids conection gallery

Can anyone give response to acces this examples grid data grid as seen in
action in www.vigallery.com specially in connections gallery how to do it
completely as direct connection via e:inetpub........ etc for all
instructions specially ones application (..........)
first error encountered in msdn after navigating 1o hours with t1 con and
througt yahoo thispage var not defined error in include ... has to be in
inmediatly directory now all errors are in recordset not defined code
included


<% ' VI 6.0 Scripting Object Model Enabled %>

<!--#include file="../_ScriptLibrary/pm.asp"-->

<% if StartPageProcessing() Then Response.End() %>

<FORM name=thisForm METHOD=post>

<HTML>

<HEAD>

<META NAME="GENERATOR" Content="Microsoft FrontPage 4.0">

</HEAD>

<BODY bgColor=#ffffff leftMargin=40 link=#500000 vLink=#505050>

<CODE>

<SCRIPT LANGUAGE=JScript RUNAT=Server>

function AlertIsVisible() {

x="<"

response.write(x + "SCRIPT Language=JavaScript>");

if (Grid1.isVisible()) {

response.write("alert('The grid is visible');");

Quote:
}

else {

response.write("alert('The grid is not visible');");

Quote:
}

response.write(x + "/SCRIPT>");

Quote:
}

</SCRIPT>

<p>

<FONT FACE="Verdana, Arial, Helvetica" SIZE=2>

<!--METADATA TYPE="DesignerControl" startspan

<OBJECT classid="clsid:9CF5D7C2-EC10-11D0-9862-0000F8027CA0"

id=DTCRecordset1 style="LEFT: 0px; TOP: 0px" dtcid="8">

<PARAM NAME="ExtentX" VALUE="12197">

<PARAM NAME="ExtentY" VALUE="2090">

<PARAM NAME="State"

VALUE="(TCConn=\qGallery\q,TCDBObject=\qTables\q,TCDBObjectName=\qBuques\q,T
CControlID_Unmatched=\qDTCRecordset1\q,TCPPConn=\qGallery\q,RCDBObject=\qRCD
BObject\q,TCPPDBObject=\qTables\q,TCPPDBObjectName=\qBuques\q,TCCursorType=\
q3\s-\sStatic\q,TCCursorLocation=\q3\s-\sUse\sclient-side\scursors\q,TCLockT
ype=\q3\s-\sOptimistic\q,TCCacheSize_Unmatched=\q10\q,TCCommTimeout_Unmatche
d=\q10\q,CCPrepared=0,CCAllRecords=1,TCNRecords_Unmatched=\q10\q,TCODBCSynta
x_Unmatched=\q\q,TCHTargetPlatform=\q\q,TCHTargetBrowser_Unmatched=\qServer\
s(ASP)\q,TCTargetPlatform=\qInherit\sfrom\spage\q,RCCache=\qRCBookPage\q,CCO
pen=1,GCParameters=(Rows=0))">

<PARAM NAME="RelativePath" VALUE="../"></OBJECT>

-->

<!--#INCLUDE FILE="../_ScriptLibrary/Recordset.ASP"-->

<script language="JavaScript" runat="server">

function _initDTCRecordset1()

{

// var dbPath ="e:/inetpub/asotransporte.com/...........mdb" ideal

var DBConn = Server.CreateObject('ADODB.Connection');

DBConn.ConnectionTimeout = Application('Gallery_ConnectionTimeout');

// var Gallery_ConnectionString = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA
SOURCE=" & dbPath ideal

DBConn.CommandTimeout = Application('Gallery_CommandTimeout');

DBConn.CursorLocation = Application('Gallery_CursorLocation');

DBConn.Open(Application('Gallery_ConnectionString'),

Application('Gallery_RuntimeUserName'),
Application('Gallery_RuntimePassword'));

var cmdTmp = Server.CreateObject('ADODB.Command');

var rsTmp = Server.CreateObject('ADODB.Recordset');

cmdTmp.ActiveConnection = DBConn;

rsTmp.Source = cmdTmp;

cmdTmp.CommandType = 2;

cmdTmp.CommandTimeout = 10;

cmdTmp.CommandText = '`Buques`';

rsTmp.CacheSize = 10;

rsTmp.CursorType = 3;

rsTmp.CursorLocation = 3;

rsTmp.LockType = 3;

DTCRecordset1.setRecordSource(rsTmp);

DTCRecordset1.open();

if (thisPage.getState('pb_DTCRecordset1') != null)

DTCRecordset1.setBookmark(thisPage.getState('pb_DTCRecordset1'));

Quote:
}

function _DTCRecordset1_ctor()

{

CreateRecordset('DTCRecordset1', _initDTCRecordset1, null);

Quote:
}

function _DTCRecordset1_dtor()

{

DTCRecordset1._preserveState();

thisPage.setState('pb_DTCRecordset1', DTCRecordset1.getBookmark());

Quote:
}

</script>

</CODE>

<SCRIPT LANGUAGE=JScript RUNAT=Server>

function AlertIsVisible() {

x="<"

response.write(x + "SCRIPT Language=JavaScript>");

if (Grid1.isVisible()) {

response.write("alert('The grid is visible');");

Quote:
}

else {

response.write("alert('The grid is not visible');");

Quote:
}

response.write(x + "/SCRIPT>");

Quote:
}

</SCRIPT>

</font>

<p>

<FONT FACE="Verdana, Arial, Helvetica" SIZE=2>

<!--METADATA TYPE="DesignerControl" startspan

<OBJECT id=DTCRecordset1 style="LEFT: 0px; TOP: 0px"
classid="clsid:9CF5D7C2-EC10-11D0-9862-0000F8027CA0" dtcid="1" width="461"
height="101">

<param name="ExtentX" value="12197">

<param name="ExtentY" value="2672">

<param name="State"
value="(TCConn_Unmatched=\qGallery\q,TCDBObject_Unmatched=\qtablas\q,TCDBObj
ectName_Unmatched=\qBuques\q,TCControlID_Unmatched=\qDTCRecordset1\q,TCPPCon
n_Unmatched=\qGallery\q,RCDBObject=\qRCDBObject\q,TCPPDBObject_Unmatched=\qt
ablas\q,TCPPDBObjectName_Unmatched=\qBuques\q,TCCursorType=\q3\s-\sStatic\q,
TCCursorLocation=\q3\s-\sUse\sclient-side\scursors\q,TCLockType=\q3\s-\sOpti
mistic\q,TCCacheSize_Unmatched=\q10\q,TCCommTimeout_Unmatched=\q10\q,CCPrepa
red=0,CCAllRecords=1,TCNRecords_Unmatched=\q10\q,TCODBCSyntax_Unmatched=\q\q
,TCHTargetPlatform=\q\q,TCHTargetBrowser_Unmatched=\qServer\s(ASP)\q,TCTarge
tPlatform=\qInherit\sfrom\spage\q,RCCache=\qRCBookPage\q,CCOpen=1,GCParamete
rs=(Rows=0))">

<param name="LocalPath" value="../"></OBJECT>

-->

<!--METADATA TYPE="DesignerControl" endspan-->

<!--METADATA TYPE="DesignerControl" startspan

<OBJECT id=Grid1 style="LEFT: 0px; TOP: 0px"

classid=clsid:277FC3F2-E90F-11D0-B767-0000F81E081D dtcid="2" width="304"
height="147">

<param name="_ExtentX" value="8043">

<param name="_ExtentY" value="3889">

<param name="DataConnection" value>

<param name="SourceType" value>

<param name="Recordset" value="DTCRecordset1">

<param name="CtrlName" value="Grid1">

<param name="UseAdvancedOnly" value="0">

<param name="AdvAddToStyles" value="-1">

<param name="AdvTableTag" value="align=center">

<param name="AdvHeaderRowTag" value>

<param name="AdvHeaderCellTag" value>

<param name="AdvDetailRowTag" value>

<param name="AdvDetailCellTag" value>

<param name="ScriptLanguage" value="1">

<param name="ScriptingPlatform" value="0">

<param name="EnableRowNav" value="-1">

<param name="HiliteColor" value="Yellow">

<param name="RecNavBarHasNextButton" value="-1">

<param name="RecNavBarHasPrevButton" value="-1">

<param name="RecNavBarNextText" value=" > ">

<param name="RecNavBarPrevText" value=" < ">

<param name="ColumnsNames"
value=""ID","FechaLLegada","Buque","Origen","Destino","Producto","Resultado"
,"Expediente","B_L","Toneladas"">

<param name="columnIndex" value="0,1,2,3,4,5,6,7,8,9">

<param name="displayWidth" value="68,68,68,68,68,68,68,68,68,68">

<param name="Coltype" value="1,1,1,1,1,1,1,1,1,1">

<param name="formated" value="0,0,0,0,0,0,0,0,0,0">

<param name="DisplayName"
value=""ID","FechaLLegada","Buque","Origen","Destino","Producto","Resultado"
,"Expediente","B_L","M_T"">

<param name="DetailAlignment" value=",,,,,,,,,">

<param name="HeaderAlignment" value=",,,,,,,,,">

<param name="DetailBackColor" value=",,,,,,,,,">

<param name="HeaderBackColor" value=",,,,,,,,,">

<param name="HeaderFont" value=",,,,,,,,,">

<param name="HeaderFontColor" value=",,,,,,,,,">

<param name="HeaderFontSize" value=",,,,,,,,,">

<param name="HeaderFontStyle" value=",,,,,,,,,">

<param name="DetailFont" value=",,,,,,,,,">

<param name="DetailFontColor" value=",,,,,,,,,">

<param name="DetailFontSize" value=",,,,,,,,,">

<param name="DetailFontStyle" value=",,,,,,,,,">

<param name="ColumnCount" value="10">

<param name="CurStyle" value="Basic Navy">

<param name="TitleFont" value="Arial">

<param name="titleFontSize" value="4">

<param name="TitleFontColor" value="0">

<param name="TitleBackColor" value="8421504">

<param name="TitleFontStyle" value="1">

<param name="TitleAlignment" value="0">

<param name="RowFont" value="Arial">

<param name="RowFontColor" value="0">

<param name="RowFontStyle" value="0">

<param name="RowFontSize" value="2">

<param name="RowBackColor" value="16777215">

<param name="RowAlignment" value="0">

<param name="HighlightColor3D" value="12632256">

<param name="ShadowColor3D" value="8421504">

<param name="PageSize" value="10">

<param name="MoveFirstCaption" value=" |< ">

<param name="MoveLastCaption" value=" >| ">

<param name="MovePrevCaption" value=" << ">

<param name="MoveNextCaption" value=" >> ">

<param name="BorderSize" value="4">

<param name="BorderColor" value="268435455">

<param name="GridBackColor" value="16777215">

<param name="AltRowBckgnd" value="268435455">

<param name="CellSpacing" value="1">

<param name="WidthSelectionMode" value="2">

<param name="GridWidth" value="109">

<param name="EnablePaging" value="-1">

<param name="ShowStatus" value="-1">

<param name="ShowStatus" value="-1">

<param name="StyleValue" value="465869">

<param name="LocalPath" value="../">

</OBJECT>

--><!--#INCLUDE FILE="../_ScriptLibrary/Button.ASP"-->

<!--#INCLUDE FILE="../_ScriptLibrary/RSNavBar.ASP"-->

<!--#INCLUDE FILE="../_ScriptLibrary/DataGrid.ASP"-->

<SCRIPT LANGUAGE=JavaScript RUNAT=Server>

function _initGrid1()

{

Grid1.pageSize = 10;

Grid1.setDataSource(DTCRecordset1);

Grid1.tableAttributes = 'align=center cellpadding=2 cellspacing=1 cols=10
rules=ALL nowrap';

Grid1.headerAttributes = ' bgcolor=Gray align=Left nowrap';

Grid1.headerFormat = '<Font face="Arial" size=4 color=Black> <b>';

Grid1.colHeader[0] = '\'\'';

Grid1.colHeader[1] = '\'Column1\'';

Grid1.colHeader[2] = '\'Column2\'';

Grid1.colHeader[3] = '\'Column3\'';

Grid1.colHeader[4] = '\'Column4\'';

Grid1.colHeader[5] = '\'Column5\'';

Grid1.colHeader[6] = '\'Column6\'';

Grid1.colHeader[7] = '\'Column7\'';

Grid1.colHeader[8] = '\'Column8\'';

Grid1.colHeader[9] = '\'Column9\'';

Grid1.rowAttributes[0] = ' bgcolor = White align=Left nowrap ';

Grid1.rowFormat[0] = ' <Font face="Arial" size=2 color=Black >';

Grid1.colAttributes[0] = ' ';

Grid1.colFormat[0] = '<Font Size=2 Face="Arial" Color=Black >';

Grid1.colData[0] = '';

Grid1.colAttributes[1] = ' ';

Grid1.colFormat[1] = '<Font Size=2 Face="Arial" Color=Black >';

Grid1.colData[1] = 'DTCRecordset1.fields.getValue(\'Column1\')';

Grid1.colAttributes[2] = ' ';

Grid1.colFormat[2] = '<Font Size=2 Face="Arial" Color=Black >';

Grid1.colData[2] = 'DTCRecordset1.fields.getValue(\'Column2\')';

Grid1.colAttributes[3] = ' ';

Grid1.colFormat[3] = '<Font Size=2 Face="Arial" Color=Black >';

Grid1.colData[3] = 'DTCRecordset1.fields.getValue(\'Column3\')';

Grid1.colAttributes[4] = ' ';

Grid1.colFormat[4] = '<Font Size=2 Face="Arial" Color=Black >';

Grid1.colData[4] = 'DTCRecordset1.fields.getValue(\'Column4\')';

Grid1.colAttributes[5] = ' ';

Grid1.colFormat[5] = '<Font Size=2 Face="Arial" Color=Black >';

Grid1.colData[5] = 'DTCRecordset1.fields.getValue(\'Column5\')';

Grid1.colAttributes[6] = ' ';

Grid1.colFormat[6] = '<Font Size=2 Face="Arial" Color=Black >';

Grid1.colData[6] = 'DTCRecordset1.fields.getValue(\'Column6\')';

Grid1.colAttributes[7] = ' ';

Grid1.colFormat[7] = '<Font Size=2 Face="Arial" Color=Black >';

Grid1.colData[7] = 'DTCRecordset1.fields.getValue(\'Column7\')';

Grid1.colAttributes[8] = ' ';

Grid1.colFormat[8] = '<Font Size=2 Face="Arial" Color=Black >';

Grid1.colData[8] = 'DTCRecordset1.fields.getValue(\'Column8\')';

Grid1.colAttributes[9] = ' ';

Grid1.colFormat[9] = '<Font Size=2 Face="Arial" Color=Black >';

Grid1.colData[9] = 'DTCRecordset1.fields.getValue(\'Column9\')';

Grid1.navbarAlignment = 'Left';

var objPageNavbar = Grid1.showPageNavbar(170,1);

objPageNavbar.getButton(0).value = ' |< ';

objPageNavbar.getButton(1).value = ' << ';

objPageNavbar.getButton(2).value = ' >> ';

objPageNavbar.getButton(3).value = ' >| ';

Grid1.hasPageNumber = true;

Grid1.hiliteAttributes = ' bgcolor=Yellow';

var objRecNavbar = Grid1.showRecordNavbar(40,1);

objRecNavbar.getButton(1).value = ' < ';

objRecNavbar.getButton(2).value = ' > ';

Quote:
}

function _Grid1_ctor()

{

CreateDataGrid('Grid1',_initGrid1);

Quote:
}

</SCRIPT>

<% Grid1.display %>

<!--METADATA TYPE="DesignerControl" endspan-->

<!--METADATA TYPE="DesignerControl" startspan

<OBJECT id=btnHide style="LEFT: 0px; WIDTH: 49px; TOP: 0px; HEIGHT: 27px"

classid=clsid:B6FC3A14-F837-11D0-9CC8-006008058731 width=49 height=27
dtcid="3"><PARAM NAME="_ExtentX" VALUE="1296"><PARAM NAME="_ExtentY"
VALUE="714"><PARAM NAME="id" VALUE="btnHide"><PARAM NAME="Caption"
VALUE="Hide"><PARAM NAME="Image" VALUE=""><PARAM NAME="AltText"
VALUE=""><PARAM NAME="Visible" VALUE="-1"><PARAM NAME="Platform"
VALUE="256"><PARAM NAME="LocalPath" VALUE="../">

</OBJECT>

--><SCRIPT LANGUAGE=JavaScript RUNAT=Server>

function _initbtnHide()

{

btnHide.value = 'Hide';

btnHide.setStyle(0);

Quote:
}

function _btnHide_ctor()

{

CreateButton('btnHide', _initbtnHide, null);

Quote:
}

</script>

<% btnHide.display %>

<!--METADATA TYPE="DesignerControl" endspan-->

<!--METADATA TYPE="DesignerControl" startspan

<OBJECT id=btnShow style="LEFT: 10px; WIDTH: 53px; TOP: 287px; HEIGHT: 27px"

classid=clsid:B6FC3A14-F837-11D0-9CC8-006008058731 width=53 height=27
dtcid="4"><PARAM NAME="_ExtentX" VALUE="1402"><PARAM NAME="_ExtentY"
VALUE="714"><PARAM NAME="id" VALUE="btnShow"><PARAM NAME="Caption"
VALUE="Show"><PARAM NAME="Image" VALUE=""><PARAM NAME="AltText"
VALUE=""><PARAM NAME="Visible" VALUE="-1"><PARAM NAME="Platform"
VALUE="256"><PARAM NAME="LocalPath" VALUE="../">

</OBJECT>

--><SCRIPT LANGUAGE=JavaScript RUNAT=Server>

function _initbtnShow()

{

btnShow.value = 'Show';

btnShow.setStyle(0);

Quote:
}

function _btnShow_ctor()

{

CreateButton('btnShow', _initbtnShow, null);

Quote:
}

</script>

<% btnShow.display %>

<!--METADATA TYPE="DesignerControl" endspan-->

<!--METADATA TYPE="DesignerControl" startspan

<OBJECT id=btnIsVisible

style="LEFT: 10px; WIDTH: 76px; TOP: 314px; HEIGHT: 27px"

classid=clsid:B6FC3A14-F837-11D0-9CC8-006008058731 width=76 height=27
dtcid="5"><PARAM NAME="_ExtentX" VALUE="2011"><PARAM NAME="_ExtentY"
VALUE="714"><PARAM NAME="id" VALUE="btnIsVisible"><PARAM NAME="Caption"
VALUE="isVisible"><PARAM NAME="Image" VALUE=""><PARAM NAME="AltText"
VALUE=""><PARAM NAME="Visible" VALUE="-1"><PARAM NAME="Platform"
VALUE="256"><PARAM NAME="LocalPath" VALUE="../">

</OBJECT>

--><SCRIPT LANGUAGE=JavaScript RUNAT=Server>

function _initbtnIsVisible()

{

btnIsVisible.value = 'isVisible';

btnIsVisible.setStyle(0);

Quote:
}

function _btnIsVisible_ctor()

{

CreateButton('btnIsVisible', _initbtnIsVisible, null);

Quote:
}

</script>

<% btnIsVisible.display %>

<!--METADATA TYPE="DesignerControl" endspan-->

<!--METADATA TYPE="DesignerControl" startspan

<OBJECT id=btnbindAllColumns

style="LEFT: 10px; WIDTH: 123px; TOP: 341px; HEIGHT: 27px"

classid=clsid:B6FC3A14-F837-11D0-9CC8-006008058731 width=123 height=27
dtcid="6"><PARAM NAME="_ExtentX" VALUE="3254"><PARAM NAME="_ExtentY"
VALUE="714"><PARAM NAME="id" VALUE="btnbindAllColumns"><PARAM NAME="Caption"
VALUE="bindAllColumns"><PARAM NAME="Image" VALUE=""><PARAM NAME="AltText"
VALUE=""><PARAM NAME="Visible" VALUE="-1"><PARAM NAME="Platform"
VALUE="256"><PARAM NAME="LocalPath" VALUE="../">

</OBJECT>

--><SCRIPT LANGUAGE=JavaScript RUNAT=Server>

function _initbtnbindAllColumns()

{

btnbindAllColumns.value = 'bindAllColumns';

btnbindAllColumns.setStyle(0);

Quote:
}

function _btnbindAllColumns_ctor()

{

CreateButton('btnbindAllColumns', _initbtnbindAllColumns, null);

Quote:
}

</script>

<% btnbindAllColumns.display %>

<!--METADATA TYPE="DesignerControl" endspan-->

<!--METADATA TYPE="DesignerControl" startspan

<OBJECT id=FormManager1 style="LEFT: 0px; TOP: 0px"
classid="clsid:CEB04D01-0445-11D1-BB81-006097C553C8" dtcid="7" width="160"
height="23">

<PARAM NAME="ExtentX" VALUE="4233">

<PARAM NAME="ExtentY" VALUE="609">

<PARAM NAME="State"
VALUE="(txtName_Unmatched=\qFormManager1\q,txtNewMode_Unmatched=\qGrid\q,grF
ormMode=(Rows=2,Row1=(txtMode_Unmatched=\qHide\q),Row2=(txtMode_Unmatched=\q
Show\q)),txtDefaultMode=\qShow\q,grMasterMode=(Rows=6,Row1=(txtName_Unmatche
d=\q1\q,txtControl_Unmatched=\qbtnShow\q,txtProperty_Unmatched=\qdisabled\q,
txtValue_Unmatched=\qfalse\q),Row2=(txtName_Unmatched=\q1\q,txtControl_Unmat
ched=\qbtnHide\q,txtProperty_Unmatched=\qdisabled\q,txtValue_Unmatched=\qtru
e\q),Row3=(txtName_Unmatched=\q1\q,txtControl_Unmatched=\qbtnbindAllColumns\
q,txtProperty_Unmatched=\qdisabled\q,txtValue_Unmatched=\qtrue\q),Row4=(txtN
ame_Unmatched=\q2\q,txtControl_Unmatched=\qbtnShow\q,txtProperty_Unmatched=\
qdisabled\q,txtValue_Unmatched=\qtrue\q),Row5=(txtName_Unmatched=\q2\q,txtCo
ntrol_Unmatched=\qbtnHide\q,txtProperty_Unmatched=\qdisabled\q,txtValue_Unma
tched=\qfalse\q),Row6=(txtName_Unmatched=\q2\q,txtControl_Unmatched=\qbtnbin
dAllColumns\q,txtProperty_Unmatched=\qdisabled\q,txtValue_Unmatched=\qfalse\
q)),grTransitions=(Rows=5,Row1=(txtCurrentMode=\qShow\q,txtObject=\qbtnHide\
q,txtEvent=\qonclick\q,txtNextMode=\qHide\q),Row2=(txtCurrentMode=\qHide\q,t
xtObject=\qbtnShow\q,txtEvent=\qonclick\q,txtNextMode=\qShow\q),Row3=(txtCur
rentMode=\qShow\q,txtObject=\qbtnbindAllColumns\q,txtEvent=\qonclick\q,txtNe
xtMode=\qShow\q),Row4=(txtCurrentMode=\qShow\q,txtObject=\qbtnIsVisible\q,tx
tEvent=\qonclick\q,txtNextMode=\qShow\q),Row5=(txtCurrentMode=\qHide\q,txtOb
ject=\qbtnIsVisible\q,txtEvent=\qonclick\q,txtNextMode=\qHide\q)),grMasterSt
ep=(Rows=9,Row1=(txtName_Unmatched=\q1\q,txtControl_Unmatched=\qGrid1\q,txtA
ction_Unmatched=\qhide\q,txtValue_Unmatched=\q()\q),Row2=(txtName_Unmatched=
\q1\q,txtControl_Unmatched=\qbtnHide\q,txtAction_Unmatched=\qdisabled\q,txtV
alue_Unmatched=\qtrue\q),Row3=(txtName_Unmatched=\q1\q,txtControl_Unmatched=
\qbtnShow\q,txtAction_Unmatched=\qdisabled\q,txtValue_Unmatched=\qfalse\q),R
ow4=(txtName_Unmatched=\q2\q,txtControl_Unmatched=\qGrid1\q,txtAction_Unmatc
hed=\qshow\q,txtValue_Unmatched=\q()\q),Row5=(txtName_Unmatched=\q2\q,txtCon
trol_Unmatched=\qbtnShow\q,txtAction_Unmatched=\qdisabled\q,txtValue_Unmatch
ed=\qtrue\q),Row6=(txtName_Unmatched=\q2\q,txtControl_Unmatched=\qbtnHide\q,
txtAction_Unmatched=\qdisabled\q,txtValue_Unmatched=\qfalse\q),Row7=(txtName
_Unmatched=\q3\q,txtControl_Unmatched=\qGrid1\q,txtAction_Unmatched=\qbindAl
lColumns\q,txtValue_Unmatched=\q()\q),Row8=(txtName_Unmatched=\q4\q,txtContr
ol_Unmatched=\q\q,txtAction_Unmatched=\qAlertIsVisible\q,txtValue_Unmatched=
\q()\q),Row9=(txtName_Unmatched=\q5\q,txtControl_Unmatched=\q\q,txtAction_Un
matched=\qAlertIsVisible\q,txtValue_Unmatched=\q()\q)))"></OBJECT>

--><SCRIPT RUNAT=SERVER LANGUAGE="JavaScript">

function _FormManager1_ctor()

{

thisPage.advise(PAGE_ONINIT, _FormManager1_init);

Quote:
}

function _FormManager1_init()

{

if (thisPage.getState("FormManager1_formmode") == null)

_FormManager1_SetMode("Show");

btnHide.advise("onclick", "_FormManager1_btnHide_onclick()");

btnShow.advise("onclick", "_FormManager1_btnShow_onclick()");

btnbindAllColumns.advise("onclick",
"_FormManager1_btnbindAllColumns_onclick()");

btnIsVisible.advise("onclick", "_FormManager1_btnIsVisible_onclick()");

Quote:
}

function _FormManager1_SetMode(formmode)

{

thisPage.setState("FormManager1_formmode", formmode);

if (formmode == "Hide")

{

btnShow.disabled = false;

btnHide.disabled = true;

btnbindAllColumns.disabled = true;

Quote:
}

if (formmode == "Show")

{

btnShow.disabled = true;

btnHide.disabled = false;

btnbindAllColumns.disabled = false;

Quote:
}
}

function _FormManager1_btnHide_onclick()

{

if (thisPage.getState("FormManager1_formmode") == "Show")

{

Grid1.hide();

btnHide.disabled = true;

btnShow.disabled = false;

_FormManager1_SetMode("Hide");

Quote:
}

else _FormManager1_SetMode(thisPage.getState("FormManager1_formmode"))

Quote:
}

function _FormManager1_btnShow_onclick()

{

if (thisPage.getState("FormManager1_formmode") == "Hide")

{

Grid1.show();

btnShow.disabled = true;

btnHide.disabled = false;

_FormManager1_SetMode("Show");

Quote:
}

else _FormManager1_SetMode(thisPage.getState("FormManager1_formmode"))

Quote:
}

function _FormManager1_btnbindAllColumns_onclick()

{

if (thisPage.getState("FormManager1_formmode") == "Show")

{

Grid1.bindAllColumns();

_FormManager1_SetMode("Show");

Quote:
}

else _FormManager1_SetMode(thisPage.getState("FormManager1_formmode"))

Quote:
}

function _FormManager1_btnIsVisible_onclick()

{

if (thisPage.getState("FormManager1_formmode") == "Show")

{

AlertIsVisible();

_FormManager1_SetMode("Show");

Quote:
}

else if (thisPage.getState("FormManager1_formmode") == "Hide")

{

AlertIsVisible();

_FormManager1_SetMode("Hide");

Quote:
}

else _FormManager1_SetMode(thisPage.getState("FormManager1_formmode"))

Quote:
}

</SCRIPT>

<!--METADATA TYPE="DesignerControl" endspan-->

</FONT>

</BODY>

<% ' VI 6.0 Scripting Object Model Enabled %>

<% EndPageProcessing() %>

</FORM>

</HTML>



Tue, 18 Mar 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. source code required for conection c and sql*plus

2. send files over a socket conection

3. problem access conection URGENT

4. Conection to terminals

5. IIS 5.0 Connection pooling and Rcset persistence in conection

6. How to make a conection in ODBC by Program

7. URGENT!! PLEASE : PC To PC Paralell Port conection

8. Remote Automation Conection Manager

9. Multi-login conection with OLE-DB.

10. Target conection through Evc++

11. URGENT: How to configure RAS conection

12. Grid Controls - Dundas, StingRay, Chris Maunder's Grid

 

 
Powered by phpBB® Forum Software