473,756 Members | 6,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SmartNavigation Datagrid problem in Windows 2003 Server

I have an ASP .net web application installed in a Windows 2003 server.

This web application has a webform that has a Datagrid.

This Datagrid is filled with the data of a SQL table.

I have a button that inserts a new row in the SQL table and then
refresh the datagrid.
In windows XP clients this webpage works fine but only in windows 2000
clients doesn't work.

The updates of the database are done but the datagrid doesn't refresh
the data when I insert new rows.
I have rebuilt the web application in the server and it doest'n work.

Before this my ASP net web application was in a Windows 2000 server and the
datagrid
was refreshing in Windows 2000 clients and in Windows XP clients.
What's wrong?
Thanks in advance.

(P.D. The webpage has the smartnavigation property enabled and all the asp
net web pages
are called from a window modal dialog.)
Nov 18 '05 #1
8 1956
Have you tried turning smart navigation off?

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"Inigo Jimenez" <in************ *@lycos.com> wrote in message
news:eS******** ******@TK2MSFTN GP10.phx.gbl...
I have an ASP .net web application installed in a Windows 2003 server.

This web application has a webform that has a Datagrid.

This Datagrid is filled with the data of a SQL table.

I have a button that inserts a new row in the SQL table and then
refresh the datagrid.
In windows XP clients this webpage works fine but only in windows 2000
clients doesn't work.

The updates of the database are done but the datagrid doesn't refresh
the data when I insert new rows.
I have rebuilt the web application in the server and it doest'n work.

Before this my ASP net web application was in a Windows 2000 server and the datagrid
was refreshing in Windows 2000 clients and in Windows XP clients.
What's wrong?
Thanks in advance.

(P.D. The webpage has the smartnavigation property enabled and all the asp
net web pages
are called from a window modal dialog.)

Nov 18 '05 #2
Yes, I've tried turning smart navigation off but it doesn't work. Somebody
said me that this problem could be because the smart navigation.

"Alvin Bruney" <va******@hotsp ammailme.com> escribió en el mensaje
news:ut******** ******@TK2MSFTN GP09.phx.gbl...
Have you tried turning smart navigation off?

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"Inigo Jimenez" <in************ *@lycos.com> wrote in message
news:eS******** ******@TK2MSFTN GP10.phx.gbl...
I have an ASP .net web application installed in a Windows 2003 server.

This web application has a webform that has a Datagrid.

This Datagrid is filled with the data of a SQL table.

I have a button that inserts a new row in the SQL table and then
refresh the datagrid.
In windows XP clients this webpage works fine but only in windows 2000
clients doesn't work.

The updates of the database are done but the datagrid doesn't refresh
the data when I insert new rows.
I have rebuilt the web application in the server and it doest'n work.

Before this my ASP net web application was in a Windows 2000 server and

the
datagrid
was refreshing in Windows 2000 clients and in Windows XP clients.
What's wrong?
Thanks in advance.

(P.D. The webpage has the smartnavigation property enabled and all the asp net web pages
are called from a window modal dialog.)


Nov 18 '05 #3
Yes, I've tried turning smart navigation off but it doesn't work. Somebody
says me that this problem could be because the smart navigation.

"Alvin Bruney" <va******@hotsp ammailme.com> escribió en el mensaje
news:ut******** ******@TK2MSFTN GP09.phx.gbl...
Have you tried turning smart navigation off?

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"Inigo Jimenez" <in************ *@lycos.com> wrote in message
news:eS******** ******@TK2MSFTN GP10.phx.gbl...
I have an ASP .net web application installed in a Windows 2003 server.

This web application has a webform that has a Datagrid.

This Datagrid is filled with the data of a SQL table.

I have a button that inserts a new row in the SQL table and then
refresh the datagrid.
In windows XP clients this webpage works fine but only in windows 2000
clients doesn't work.

The updates of the database are done but the datagrid doesn't refresh
the data when I insert new rows.
I have rebuilt the web application in the server and it doest'n work.

Before this my ASP net web application was in a Windows 2000 server and

the
datagrid
was refreshing in Windows 2000 clients and in Windows XP clients.
What's wrong?
Thanks in advance.

(P.D. The webpage has the smartnavigation property enabled and all the asp net web pages
are called from a window modal dialog.)


Nov 18 '05 #4
Yes, I've tried turning smart navigation off but it doesn't work. Somebody
said me that this problem could be because the smart navigation.

"Alvin Bruney" <va******@hotsp ammailme.com> escribió en el mensaje
news:ut******** ******@TK2MSFTN GP09.phx.gbl...
Have you tried turning smart navigation off?

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"Inigo Jimenez" <in************ *@lycos.com> wrote in message
news:eS******** ******@TK2MSFTN GP10.phx.gbl...
I have an ASP .net web application installed in a Windows 2003 server.

This web application has a webform that has a Datagrid.

This Datagrid is filled with the data of a SQL table.

I have a button that inserts a new row in the SQL table and then
refresh the datagrid.
In windows XP clients this webpage works fine but only in windows 2000
clients doesn't work.

The updates of the database are done but the datagrid doesn't refresh
the data when I insert new rows.
I have rebuilt the web application in the server and it doest'n work.

Before this my ASP net web application was in a Windows 2000 server and

the
datagrid
was refreshing in Windows 2000 clients and in Windows XP clients.
What's wrong?
Thanks in advance.

(P.D. The webpage has the smartnavigation property enabled and all the asp net web pages
are called from a window modal dialog.)


Nov 18 '05 #5
> > net web pages
are called from a window modal dialog.)
I don't understand this part. Would you care to explain?
Just to be sure here, after writing to the database you requery the
datasource and bind to the datagrid?

Can you post just that part of the code

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"Inigo Jimenez" <in************ *@lycos.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Yes, I've tried turning smart navigation off but it doesn't work. Somebody
says me that this problem could be because the smart navigation.

"Alvin Bruney" <va******@hotsp ammailme.com> escribió en el mensaje
news:ut******** ******@TK2MSFTN GP09.phx.gbl...
Have you tried turning smart navigation off?

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"Inigo Jimenez" <in************ *@lycos.com> wrote in message
news:eS******** ******@TK2MSFTN GP10.phx.gbl...
I have an ASP .net web application installed in a Windows 2003 server.

This web application has a webform that has a Datagrid.

This Datagrid is filled with the data of a SQL table.

I have a button that inserts a new row in the SQL table and then
refresh the datagrid.
In windows XP clients this webpage works fine but only in windows 2000
clients doesn't work.

The updates of the database are done but the datagrid doesn't refresh
the data when I insert new rows.
I have rebuilt the web application in the server and it doest'n work.

Before this my ASP net web application was in a Windows 2000 server
and the
datagrid
was refreshing in Windows 2000 clients and in Windows XP clients.
What's wrong?
Thanks in advance.

(P.D. The webpage has the smartnavigation property enabled and all the

asp net web pages
are called from a window modal dialog.)



Nov 18 '05 #6
Sorry but I haven't here the code. The code is at work. I'll send it on
Monday.

Thanks for your answers...
"Alvin Bruney" <va******@hotsp ammailme.com> escribió en el mensaje
news:uF******** ******@TK2MSFTN GP09.phx.gbl...
net web pages
are called from a window modal dialog.)
I don't understand this part. Would you care to explain?
Just to be sure here, after writing to the database you requery the
datasource and bind to the datagrid?

Can you post just that part of the code

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"Inigo Jimenez" <in************ *@lycos.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Yes, I've tried turning smart navigation off but it doesn't work. Somebody says me that this problem could be because the smart navigation.

"Alvin Bruney" <va******@hotsp ammailme.com> escribió en el mensaje
news:ut******** ******@TK2MSFTN GP09.phx.gbl...
Have you tried turning smart navigation off?

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"Inigo Jimenez" <in************ *@lycos.com> wrote in message
news:eS******** ******@TK2MSFTN GP10.phx.gbl...
> I have an ASP .net web application installed in a Windows 2003 server. >
> This web application has a webform that has a Datagrid.
>
> This Datagrid is filled with the data of a SQL table.
>
> I have a button that inserts a new row in the SQL table and then
> refresh the datagrid.
>
>
> In windows XP clients this webpage works fine but only in windows 2000 > clients doesn't work.
>
> The updates of the database are done but the datagrid doesn't refresh > the data when I insert new rows.
>
>
> I have rebuilt the web application in the server and it doest'n work. >
> Before this my ASP net web application was in a Windows 2000 server and the
> datagrid
> was refreshing in Windows 2000 clients and in Windows XP clients.
>
>
> What's wrong?
>
>
> Thanks in advance.
>
> (P.D. The webpage has the smartnavigation property enabled and all

the asp
> net web pages
> are called from a window modal dialog.)
>
>



Nov 18 '05 #7
Well I've copied some code lines so you can help me.

I've captured some windows for explain more detailly the problem.

The images are in the folder Webform at:
http://es.f1.pg.briefcase.yahoo.com/inigo_jimenez
The problem:

- From an ASP page I open a modal dialog (figure_A.JPG)

- If I click one of the buttons (the ! button) another window open so
I can choose one of the options (figure_B.JPG)

- When I've chosen one item, this window is closed and the datatable
is updated with a new row. The datagrid refresh automatically
(figure_C.JPG)

- I can insert a new row directly from the textbox that is down the
datagrid (figure_D.JPG)

- If I click on the button that is on the right of the textbox, the
datatable is updated with a new row and the datagrid is refreshed.
(figure_E.JPG).
Well, if this webpage is on a Windows 2000 server works fine but if
the same webpage is on a Windows 2003 server in Windows 2000 client
doesn't work but in Windows XP works fine. The problem is that the
data is inserted in the datatable but the datagrid doesn't refresh the
data.

What's Wrong?
Thanks in advance.
Here the code:

//----------------------------------------------------------------------
// THIS IS THE WEBPAGE HEADER
//----------------------------------------------------------------------
<%@ Page Language="vb" AutoEventWireup ="false"
Codebehind="frm Anomalias.aspx. vb" Inherits="Anoma lias.frmAnomali as"
smartNavigation ="True" %>

//----------------------------------------------------------------------
// THIS IS THE WEBPAGE HEADER
//----------------------------------------------------------------------
<DIV id="div1" style="Z-INDEX: 109; LEFT: 14px; OVERFLOW: auto; WIDTH:
451px; POSITION: absolute; TOP: 95px; HEIGHT: 116px"
ms_positioning= "GridLayout ">
<asp:datagrid id="gridPdtes" style="Z-INDEX: 115; LEFT: 0px;
POSITION: absolute; TOP: 0px" runat="server" ForeColor="Navy "
Height="64px" Width="433px" BackColor="Flor alWhite" BorderColor="Na vy"
AutoGenerateCol umns="False" Font-Size="8pt" Font-Names="Verdana" >
<HeaderStyle Font-Size="10pt" Font-Names="Verdana" Font-Bold="True"
ForeColor="Stee lBlue" BorderColor="Wh ite"
BackColor="Azur e"></HeaderStyle>
<Columns>
<asp:TemplateCo lumn></asp:TemplateCol umn>
<asp:BoundColum n DataField="Obje to"
HeaderText="Obj eto"></asp:BoundColumn >
<asp:BoundColum n DataField="Desc ripcion"
HeaderText="Des cripción"></asp:BoundColumn >
<asp:BoundColum n Visible="False" DataField="Inde x"
HeaderText="Ind ex"></asp:BoundColumn >
</Columns>
</asp:datagrid>
</DIV>
//----------------------------------------------------------------------
// THIS IS THE CODE OF THE BUTTON THAT INSERTS NEW ROWS
//----------------------------------------------------------------------
Private Sub bAddTxt_Click(B yVal sender As System.Object, ByVal e As
System.Web.UI.I mageClickEventA rgs) Handles bAddTxt.Click

If Me.txtAnomTxtLi bre.Text <> "" Then
AgregarAnomTxtL ibre(Me.txtAnom TxtLibre.Text)
Me.txtAnomTxtLi bre.Text = ""
RellenarTablas( )
End If

End Sub

//----------------------------------------------------------------------
// THIS IS THE CODE THAT USE A COMPONENT TO UPDATE/INSERT ROWS IN THE
// DATABASE
//----------------------------------------------------------------------
Public Sub AgregarAnomTxtL ibre(ByVal txt As String)

SETSI_XFolder = New SETSI_Folders.S ETSI_XFolders.S ETSI_XFolder()
FolderBase = New IDESFOLDERLib.F drClass()
XFolder = New IDESXLib.iDesX_ XFolderClass()
XFolder = FolderBase.XNew (SessionPId, ArchAnomPId)
XFolder.SetFiel dValue(SETSI_FL DID_ANOM_IDEXP, IdExp)
XFolder.SetFiel dValue(SETSI_FL DID_ANOM_IDOBJ, IdObj)
If IdTipoObj = 0 Then
XFolder.SetFiel dValue(SETSI_FL DID_ANOM_IDTIPO BJ, "Expediente ")
Else
XFolder.SetFiel dValue(SETSI_FL DID_ANOM_IDTIPO BJ,
ObjFunciones.De scripcionTipObj (IdTipoObj))
End If
XFolder.SetFiel dValue(SETSI_FL DID_ANOM_SUBSAN , "N")
XFolder.SetFiel dValue(SETSI_FL DID_ANOM_TEXTO, txt)
SETSI_XFolder.X Folder = XFolder
SETSI_XFolder.F lags = 0
SETSI_XFolders. Add(SETSI_XFold er)
SETSI_XFolder = Nothing
XFolder = Nothing
FolderBase = Nothing

End Sub
//----------------------------------------------------------------------
// THIS IS THE SUB THAT INITIALIZES THE DATATABLE OBJECT
//----------------------------------------------------------------------
Public Sub RellenarTablas( )
Dim table As New DataTable()
Dim col As New DataColumn()
Dim row As DataRow
Dim txt As String
Dim objTxt As String
Dim chk As System.Web.UI.W ebControls.Chec kBox
Dim i As Integer
Dim TipoObjeto As Object
Dim IdTipoObjeto As Object
Dim IdObjeto As Object
Dim IdTipoAnomalia As Object
Dim TextoAnomalia As Object
Dim Subsanada As Object

col.ColumnName = "Objeto"
table.Columns.A dd(col)
col = New DataColumn()
col.ColumnName = "Descripcio n"
table.Columns.A dd(col)
col = New DataColumn()
col.ColumnName = "Subsanada"
table.Columns.A dd(col)
col = New DataColumn()
col.ColumnName = "Index"
table.Columns.A dd(col)

For i = 0 To SETSI_XFolders. GetCount - 1
SETSI_XFolder = New
SETSI_Folders.S ETSI_XFolders.S ETSI_XFolder()
XFolder = New IDESXLib.iDesX_ XFolderClass()
SETSI_XFolder = SETSI_XFolders. GetItem(i)
If SETSI_XFolder.F lags = 0 Or SETSI_XFolder.F lags = 2 Then
XFolder = SETSI_XFolder.X Folder
objTxt = XFolder.GetFiel dValue(SETSI_FL DID_ANOM_IDTIPO BJ)
IdTipoObjeto = ObjFunciones.Ge tIdTipObj(CStr( objTxt))
IdObjeto = XFolder.GetFiel dValue(SETSI_FL DID_ANOM_IDOBJ)
IdTipoAnomalia =
XFolder.GetFiel dValue(SETSI_FL DID_ANOM_IDTIPO ANOM)
TextoAnomalia =
XFolder.GetFiel dValue(SETSI_FL DID_ANOM_TEXTO)
Subsanada = XFolder.GetFiel dValue(SETSI_FL DID_ANOM_SUBSAN )
If IdTipoObjeto > 1 And IdTipoObj <> 4 Then
' Equipos o titulados
objTxt = objTxt & " - " &
ObjFunciones.De scripcionObj(Ob jSession, SessionPId, IdTipoObjeto,
IdObjeto)
End If

If IsDBNull(IdTipo Anomalia) Then
txt = TextoAnomalia
Else
If IdTipoAnomalia = 0 Then
txt = TextoAnomalia
Else
RS = ObjSession.XDBS elect(SessionPI d, "A" &
SETSI_ARCHID_TI POS_ANOM & "SF", "FLD" & SETSI_FLDID_TIP OS_ANOM_VALOR,
"WHERE FDRID = " & IdTipoAnomalia, Found)
If Not RS Is Nothing And Found Then
RS.Item(1, txt)
End If
RS = Nothing
End If
End If
row = table.NewRow()
row.Item(0) = objTxt
row.Item(1) = txt
row.Item(2) = Subsanada
row.Item(3) = i

table.Rows.Add( row)
XFolder = Nothing
SETSI_XFolder = Nothing
End If
Next
CrearVistas(tab le)
AgregarCheckbox es()
DeshabilitarAut om()
End Sub

//----------------------------------------------------------------------
// THIS SUB BUILDS THE DATAVIEW ON THE DATATABLE OBJECT
//----------------------------------------------------------------------
Public Sub CrearVistas(ByV al table As DataTable)
Dim dv As DataView
If IdTipoObj > 1 Then
' Equipos y Titulados:
Me.gridPdtes.Co lumns(1).Visibl e = False
Me.gridSubs.Col umns(1).Visible = False
End If
dv = New DataView(table, "Subsanada='N'" , "",
DataViewRowStat e.CurrentRows)
Me.gridPdtes.Da taSource = dv
Me.gridPdtes.Da taBind()
dv = New DataView(table, "Subsanada='S'" , "",
DataViewRowStat e.CurrentRows)
Me.gridSubs.Dat aSource = dv
Me.gridSubs.Dat aBind()
End Sub

//----------------------------------------------------------------------
// THIS SUB INSERT CHECKBOXES IN THE DATAGRID
//----------------------------------------------------------------------
Public Sub AgregarCheckbox es()
Dim i As Int16
Dim chk As System.Web.UI.W ebControls.Chec kBox

For i = 0 To Me.gridPdtes.It ems.Count - 1
chk = New System.Web.UI.W ebControls.Chec kBox()
Me.gridPdtes.It ems.Item(i).Cel ls(0).Controls. Add(chk)
Next
For i = 0 To Me.gridSubs.Ite ms.Count - 1
chk = New System.Web.UI.W ebControls.Chec kBox()
Me.gridSubs.Ite ms.Item(i).Cell s(0).Controls.A dd(chk)
Next
End Sub
//----------------------------------------------------------------------
// THIS SUB PUTS SOME CONTROLS DISABLED
//----------------------------------------------------------------------
Private Sub DeshabilitarAut om()
Dim m_Item As System.Web.UI.W ebControls.Data GridItem
Dim Tipo As String
Dim Color As System.Drawing. Color
Color = Color.FromName( "Snow")
For Each m_Item In Me.gridPdtes.It ems
Tipo = m_Item.Cells(1) .Text
If Tipo = "Automática " Then
m_Item.Enabled = False
'm_Item.BackCol or = Color
End If
Next
End Sub
Nov 18 '05 #8
did you get help on this or figure this out. I'm sorry i took so long this
one slipped thru the cracks

--
Regards,
Alvin Bruney
http://www.networkip.net/dotnet/tidbits/default.htm
"Inigo Jimenez" <in************ *@lycos.com> wrote in message
news:9f******** *************** ***@posting.goo gle.com...
Well I've copied some code lines so you can help me.

I've captured some windows for explain more detailly the problem.

The images are in the folder Webform at:
http://es.f1.pg.briefcase.yahoo.com/inigo_jimenez
The problem:

- From an ASP page I open a modal dialog (figure_A.JPG)

- If I click one of the buttons (the ! button) another window open so
I can choose one of the options (figure_B.JPG)

- When I've chosen one item, this window is closed and the datatable
is updated with a new row. The datagrid refresh automatically
(figure_C.JPG)

- I can insert a new row directly from the textbox that is down the
datagrid (figure_D.JPG)

- If I click on the button that is on the right of the textbox, the
datatable is updated with a new row and the datagrid is refreshed.
(figure_E.JPG).
Well, if this webpage is on a Windows 2000 server works fine but if
the same webpage is on a Windows 2003 server in Windows 2000 client
doesn't work but in Windows XP works fine. The problem is that the
data is inserted in the datatable but the datagrid doesn't refresh the
data.

What's Wrong?
Thanks in advance.
Here the code:

//----------------------------------------------------------------------
// THIS IS THE WEBPAGE HEADER
//----------------------------------------------------------------------
<%@ Page Language="vb" AutoEventWireup ="false"
Codebehind="frm Anomalias.aspx. vb" Inherits="Anoma lias.frmAnomali as"
smartNavigation ="True" %>

//----------------------------------------------------------------------
// THIS IS THE WEBPAGE HEADER
//----------------------------------------------------------------------
<DIV id="div1" style="Z-INDEX: 109; LEFT: 14px; OVERFLOW: auto; WIDTH:
451px; POSITION: absolute; TOP: 95px; HEIGHT: 116px"
ms_positioning= "GridLayout ">
<asp:datagrid id="gridPdtes" style="Z-INDEX: 115; LEFT: 0px;
POSITION: absolute; TOP: 0px" runat="server" ForeColor="Navy "
Height="64px" Width="433px" BackColor="Flor alWhite" BorderColor="Na vy"
AutoGenerateCol umns="False" Font-Size="8pt" Font-Names="Verdana" >
<HeaderStyle Font-Size="10pt" Font-Names="Verdana" Font-Bold="True"
ForeColor="Stee lBlue" BorderColor="Wh ite"
BackColor="Azur e"></HeaderStyle>
<Columns>
<asp:TemplateCo lumn></asp:TemplateCol umn>
<asp:BoundColum n DataField="Obje to"
HeaderText="Obj eto"></asp:BoundColumn >
<asp:BoundColum n DataField="Desc ripcion"
HeaderText="Des cripción"></asp:BoundColumn >
<asp:BoundColum n Visible="False" DataField="Inde x"
HeaderText="Ind ex"></asp:BoundColumn >
</Columns>
</asp:datagrid>
</DIV>
//----------------------------------------------------------------------
// THIS IS THE CODE OF THE BUTTON THAT INSERTS NEW ROWS
//----------------------------------------------------------------------
Private Sub bAddTxt_Click(B yVal sender As System.Object, ByVal e As
System.Web.UI.I mageClickEventA rgs) Handles bAddTxt.Click

If Me.txtAnomTxtLi bre.Text <> "" Then
AgregarAnomTxtL ibre(Me.txtAnom TxtLibre.Text)
Me.txtAnomTxtLi bre.Text = ""
RellenarTablas( )
End If

End Sub

//----------------------------------------------------------------------
// THIS IS THE CODE THAT USE A COMPONENT TO UPDATE/INSERT ROWS IN THE
// DATABASE
//----------------------------------------------------------------------
Public Sub AgregarAnomTxtL ibre(ByVal txt As String)

SETSI_XFolder = New SETSI_Folders.S ETSI_XFolders.S ETSI_XFolder()
FolderBase = New IDESFOLDERLib.F drClass()
XFolder = New IDESXLib.iDesX_ XFolderClass()
XFolder = FolderBase.XNew (SessionPId, ArchAnomPId)
XFolder.SetFiel dValue(SETSI_FL DID_ANOM_IDEXP, IdExp)
XFolder.SetFiel dValue(SETSI_FL DID_ANOM_IDOBJ, IdObj)
If IdTipoObj = 0 Then
XFolder.SetFiel dValue(SETSI_FL DID_ANOM_IDTIPO BJ, "Expediente ")
Else
XFolder.SetFiel dValue(SETSI_FL DID_ANOM_IDTIPO BJ,
ObjFunciones.De scripcionTipObj (IdTipoObj))
End If
XFolder.SetFiel dValue(SETSI_FL DID_ANOM_SUBSAN , "N")
XFolder.SetFiel dValue(SETSI_FL DID_ANOM_TEXTO, txt)
SETSI_XFolder.X Folder = XFolder
SETSI_XFolder.F lags = 0
SETSI_XFolders. Add(SETSI_XFold er)
SETSI_XFolder = Nothing
XFolder = Nothing
FolderBase = Nothing

End Sub
//----------------------------------------------------------------------
// THIS IS THE SUB THAT INITIALIZES THE DATATABLE OBJECT
//----------------------------------------------------------------------
Public Sub RellenarTablas( )
Dim table As New DataTable()
Dim col As New DataColumn()
Dim row As DataRow
Dim txt As String
Dim objTxt As String
Dim chk As System.Web.UI.W ebControls.Chec kBox
Dim i As Integer
Dim TipoObjeto As Object
Dim IdTipoObjeto As Object
Dim IdObjeto As Object
Dim IdTipoAnomalia As Object
Dim TextoAnomalia As Object
Dim Subsanada As Object

col.ColumnName = "Objeto"
table.Columns.A dd(col)
col = New DataColumn()
col.ColumnName = "Descripcio n"
table.Columns.A dd(col)
col = New DataColumn()
col.ColumnName = "Subsanada"
table.Columns.A dd(col)
col = New DataColumn()
col.ColumnName = "Index"
table.Columns.A dd(col)

For i = 0 To SETSI_XFolders. GetCount - 1
SETSI_XFolder = New
SETSI_Folders.S ETSI_XFolders.S ETSI_XFolder()
XFolder = New IDESXLib.iDesX_ XFolderClass()
SETSI_XFolder = SETSI_XFolders. GetItem(i)
If SETSI_XFolder.F lags = 0 Or SETSI_XFolder.F lags = 2 Then
XFolder = SETSI_XFolder.X Folder
objTxt = XFolder.GetFiel dValue(SETSI_FL DID_ANOM_IDTIPO BJ)
IdTipoObjeto = ObjFunciones.Ge tIdTipObj(CStr( objTxt))
IdObjeto = XFolder.GetFiel dValue(SETSI_FL DID_ANOM_IDOBJ)
IdTipoAnomalia =
XFolder.GetFiel dValue(SETSI_FL DID_ANOM_IDTIPO ANOM)
TextoAnomalia =
XFolder.GetFiel dValue(SETSI_FL DID_ANOM_TEXTO)
Subsanada = XFolder.GetFiel dValue(SETSI_FL DID_ANOM_SUBSAN )
If IdTipoObjeto > 1 And IdTipoObj <> 4 Then
' Equipos o titulados
objTxt = objTxt & " - " &
ObjFunciones.De scripcionObj(Ob jSession, SessionPId, IdTipoObjeto,
IdObjeto)
End If

If IsDBNull(IdTipo Anomalia) Then
txt = TextoAnomalia
Else
If IdTipoAnomalia = 0 Then
txt = TextoAnomalia
Else
RS = ObjSession.XDBS elect(SessionPI d, "A" &
SETSI_ARCHID_TI POS_ANOM & "SF", "FLD" & SETSI_FLDID_TIP OS_ANOM_VALOR,
"WHERE FDRID = " & IdTipoAnomalia, Found)
If Not RS Is Nothing And Found Then
RS.Item(1, txt)
End If
RS = Nothing
End If
End If
row = table.NewRow()
row.Item(0) = objTxt
row.Item(1) = txt
row.Item(2) = Subsanada
row.Item(3) = i

table.Rows.Add( row)
XFolder = Nothing
SETSI_XFolder = Nothing
End If
Next
CrearVistas(tab le)
AgregarCheckbox es()
DeshabilitarAut om()
End Sub

//----------------------------------------------------------------------
// THIS SUB BUILDS THE DATAVIEW ON THE DATATABLE OBJECT
//----------------------------------------------------------------------
Public Sub CrearVistas(ByV al table As DataTable)
Dim dv As DataView
If IdTipoObj > 1 Then
' Equipos y Titulados:
Me.gridPdtes.Co lumns(1).Visibl e = False
Me.gridSubs.Col umns(1).Visible = False
End If
dv = New DataView(table, "Subsanada='N'" , "",
DataViewRowStat e.CurrentRows)
Me.gridPdtes.Da taSource = dv
Me.gridPdtes.Da taBind()
dv = New DataView(table, "Subsanada='S'" , "",
DataViewRowStat e.CurrentRows)
Me.gridSubs.Dat aSource = dv
Me.gridSubs.Dat aBind()
End Sub

//----------------------------------------------------------------------
// THIS SUB INSERT CHECKBOXES IN THE DATAGRID
//----------------------------------------------------------------------
Public Sub AgregarCheckbox es()
Dim i As Int16
Dim chk As System.Web.UI.W ebControls.Chec kBox

For i = 0 To Me.gridPdtes.It ems.Count - 1
chk = New System.Web.UI.W ebControls.Chec kBox()
Me.gridPdtes.It ems.Item(i).Cel ls(0).Controls. Add(chk)
Next
For i = 0 To Me.gridSubs.Ite ms.Count - 1
chk = New System.Web.UI.W ebControls.Chec kBox()
Me.gridSubs.Ite ms.Item(i).Cell s(0).Controls.A dd(chk)
Next
End Sub
//----------------------------------------------------------------------
// THIS SUB PUTS SOME CONTROLS DISABLED
//----------------------------------------------------------------------
Private Sub DeshabilitarAut om()
Dim m_Item As System.Web.UI.W ebControls.Data GridItem
Dim Tipo As String
Dim Color As System.Drawing. Color
Color = Color.FromName( "Snow")
For Each m_Item In Me.gridPdtes.It ems
Tipo = m_Item.Cells(1) .Text
If Tipo = "Automática " Then
m_Item.Enabled = False
'm_Item.BackCol or = Color
End If
Next
End Sub

Nov 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1273
by: Nicolas LeBlanc | last post by:
First of all, I'd like to state that I would like to have SmartNavigation enabled on my site due to some massive work on the UI do to nice things that works a lot better if the scroll position is kept. I managed to fix the error that the smartNavigation caused with Response.Redirect (redirected to a blank page), which was to simpley re-register asp.net because the aspnet_client wasn't present (good job at telling me, there is no .js...
4
1515
by: Chris Ruegsegger | last post by:
I have a registration type page that asks a series of questions but does so using Panels to display only a couple at a time. I have a Next and Back button on each panel for navigation purposes. Some of the next buttons have Validation enabled for input checking. SmartNavigation is set to True. If I proceed a few Panels in to the registration and try to backup using a Back button I get a script debug error from IE stating a value is...
7
4673
by: Matthew Wieder | last post by:
Hi - I have a datagrid that has a black header and the rows alternate white and gray. The problem is that until items are added to the grid, the grid appears as a large black rectangle, which is quite ugly. The black area is larger then it is once an item is added. How can I solve this problem either by: A) Having only the header black and the rest of the empty block white or gray (preffered solution) B) Having the color gray or white...
0
1065
by: Inigo Jimenez | last post by:
I have an ASP .net web application installed in a Windows 2003 server. This web application has a webform that has a Datagrid with smartnavigation enabled. In this webpage I have a button that fills the datagrid with data and creates new rows in the database. In windows XP clients this webpage works fine but only in windows 2000 clients doesn't work. The updates of the database are done but the datagrid doesn't refresh
2
402
by: amiringo | last post by:
I have two problems after set this page directive... First, when I run the web application in my side(installed VS.NET) the page include that directive, it will redirect to the following address. http://localhost/aspnet_client/system_web/1_1_4322/SmartNav.htm Every page which set SmartNavigation="True" will redirect to that page.... However, If I run my web application in testing server(no VS.NET installed), no redirect occour. Why it...
0
1261
by: Jim Fisher | last post by:
"Skeptical" wrote concerning SmartNavigation: > > Thanks a lot that is exactly what I have been looking for. It works in a > > standard row selecting case but somehow fails when I open > > another frame. It gives me an "Invalid Pointer" error. Not sure why but > > apparently it does not want to play along with a javascripted button in > > the datagrid. And again in:
3
1180
by: Rudy Ko | last post by:
Hi, I have a long site with SmartNavigation on. It works on my developing machine. When I published to server, it doesn't work on any machine. What do I miss? Anybody know? Thank you for any kind of help. -Rudy
3
2041
by: Ashhad Syed | last post by:
I have turned on smartnavigation=True for some of the forms in my .NET application. It seemed to be working fine on Windows 2000 SP4, which also has VS 2003 installted, but when I moved the application to window 2003 production evnironment, the Smartnavigation stopped working. Any ideas or suggestions would be appreciated. Thanks, Ashhad.
1
2106
by: danyeungw | last post by:
I get the following from the link http://support.microsoft.com/kb/314206. I need to have both work - the page stays where it is and set focus to next control. Does anyone have solution? I have been working on this for days. I am using ASP.NET 2003. Thanks. DanYeung PRB: Controls Lose Focus When You Enable SmartNavigation and AutoPostBack View products that this article applies to. Article ID : 314206 Last Review : February 23,...
0
9487
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9297
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9904
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8736
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7285
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5324
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3828
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.