473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

URGENTLY PLEASE System.Reflection.AmbiguousMatchException: Se ha encontrado una coincidencia ambigua

A page let of work for me

I commented almost all lines but nothing

the code is this

AUXILIO! EXTREMA URGENCIA!!! System.Reflection.AmbiguousMatchException: Se
ha encontrado una coincidencia ambigua

Una aplicacion me dejo de funcionar y me saca ese errror el codigo es el
siguiente

<%@ Register TagPrefix="uc1" TagName="menu" Src="menu.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="consultaproducon.aspx.vb"
Inherits="SolicitudMantenimiento.consultaproducon" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>default</title>
<meta content="Microsoft Visual Studio .NET 7.1" name=GENERATOR>
<meta content="Visual Basic .NET 7.1" name=CODE_LANGUAGE>
<meta content=JavaScript name=vs_defaultClientScript>
<meta content=http://schemas.microsoft.com/intellisense/ie5
name=vs_targetSchema>
</HEAD>
<body>
<form id=Form1 method=post runat="server">
<TABLE id=Table1 style="HEIGHT: 104px" cellSpacing=0 cellPadding=0 width=800
border=1>
<TBODY>
<TR>
<TD colSpan=2>
<P align=center><IMG src="cabezote-con-foto.jpg" ></P></TD></TR>
<TR>
<TD style="HEIGHT: 26px" vAlign=top align=center width="100%"
bgColor=blue
colSpan=2>
<P align=left><uc1:menu id=Menu1
runat="server"></uc1:menu></P></TD></TR>
<TR>
<TD vAlign=top>
<P align=center><asp:label id=Label1 runat="server"></asp:label></P>
<P align=center><FONT face="Trebuchet MS"
<STRONG>APLICATIVO DE SOLICITUD DE SERVICIOS DE MANTENIMIENT </STRONG></FONT></P><asp:panel
id=panellogin
runat="server" Width="100%" Height="27px">
<asp:DataGrid id=dgsolicitud runat="server" Width="800px" CellSpacing="1"
ForeColor="Black" BorderWidth="1pt" BackColor="White" Font-Size="X-Small"
Font-Names="Trebuchet MS" BorderColor="Black" AutoGenerateColumns="False"
CellPadding="3">
<HeaderStyle BackColor="Orange"></HeaderStyle>
<Columns>
<asp:BoundColumn DataField="idserviciomantenimiento"
HeaderText="Id"></asp:BoundColumn>
<asp:BoundColumn DataField="Nombre"
HeaderText="Nombre"></asp:BoundColumn>
<asp:BoundColumn DataField="Diagnostico"
HeaderText="Diagnostico"></asp:BoundColumn>
<asp:BoundColumn DataField="Estado"
HeaderText="Estado"></asp:BoundColumn>
<asp:ButtonColumn Text="Procesar" HeaderText="Procesar"
CommandName="Ejecutar" >
<ItemStyle ForeColor="Blue"></ItemStyle>
</asp:ButtonColumn>
<asp:ButtonColumn Text="Finalizar" HeaderText="Finalizar"
CommandName="Finalizar">
<ItemStyle ForeColor="Blue"></ItemStyle>
</asp:ButtonColumn>
</Columns>
</asp:DataGrid></asp:panel><asp:panel id=panelanalizar
runat="server" Height="152px" Visible="False">
<TABLE id=Table2 style="HEIGHT: 219px" borderColor=black cellSpacing=1
cellPadding=1 width=800 border=1>
<TR>
<TD align=center bgColor=orange colSpan=2 ?><FONT
face="Trebuchet MS"><STRONG>DETALLE DE SERVICIO DE
MANTENIMIENTO</STRONG></FONT></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label2 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Id</asp:Label></TD>
<TD>
<asp:Label id=ID runat="server" Font-Size="X-Small" Font-Names="Trebuchet
MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px; HEIGHT: 22px">
<asp:Label id=Label3 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Nombre</asp:Label></TD>
<TD style="HEIGHT: 22px">
<asp:Label id=nombre runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label4 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Centro de Costos</asp:Label></TD>
<TD>
<asp:Label id=centrodecostos runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label5 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Prioridad</asp:Label></TD>
<TD>
<asp:Label id=prioridad runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label6 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Diagnostico</asp:Label></TD>
<TD>
<asp:Label id=diagnostico runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label7 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Comentarios Usuario</asp:Label></TD>
<TD>
<asp:Label id=comentariosusuario runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label8 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Comentarios Producon</asp:Label></TD>
<TD>
<asp:TextBox id=TextBox1 runat="server" Width="400px" Height="110px"
BorderWidth="1px" BorderColor="Black" BorderStyle="Solid"
TextMode="MultiLine">comentarios</asp:TextBox>
<asp:RequiredFieldValidator id=RequiredFieldValidator1 runat="server"
ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></TD></T
R>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label9 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Fecha Estimada Inicio</asp:Label></TD>
<TD>
<asp:TextBox id=fechainicio runat="server" BorderWidth="1px"
BorderColor="Black" BorderStyle="Solid"></asp:TextBox>
<asp:RegularExpressionValidator id=RegularExpressionValidator1
runat="server" ErrorMessage="RegularExpressionValidator"
ControlToValidate="fechainicio"
ValidationExpression="^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[2][0]\d{2})$"Formato dd/mm/aaaa</asp:RegularExpressionValidator></TD></TR> <TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label10 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Fecha Estimada Fin</asp:Label></TD>
<TD>
<asp:TextBox id=fechafin runat="server" BorderWidth="1px"
BorderColor="Black" BorderStyle="Solid"></asp:TextBox>
<asp:RegularExpressionValidator id=RegularExpressionValidator2
runat="server" ErrorMessage="RegularExpressionValidator"
ControlToValidate="fechafin"
ValidationExpression="^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[2][0]\d{2})$"Formato dd/mm/aaaa</asp:RegularExpressionValidator></TD></TR> <TR>
<TD align=center colSpan=2>
<asp:Button id=ejecutar runat="server" Text="Ejecutar"></asp:Button>
<asp:Button id=rechazar runat="server"
Text="Rechazar"></asp:Button></TD></TR></TABLE></asp:panel></TD></TR></TBODY</TABLE></form>

</body>
</HTML>
Le puse comentarios a todo y nada....

Imports System.Data.SqlClient

Public Class consultaproducon

Inherits System.Web.UI.Page

#Region " Código generado por el Diseñador de Web Forms "

'El Diseñador de Web Forms requiere esta llamada.

<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

Me.SqlConnection1 = New System.Data.SqlClient.SqlConnection

'

'SqlConnection1

'

Me.SqlConnection1.ConnectionString = "workstation id=LUISVAL;packet
size=4096;user id=escritura;data source=med20nt;per" & _

"sist security info=False;initial catalog=seradmin; password=escritura"

End Sub

Protected WithEvents Label1 As System.Web.UI.WebControls.Label

Protected WithEvents panellogin As System.Web.UI.WebControls.Panel

Protected WithEvents panelanalizar As System.Web.UI.WebControls.Panel

Protected WithEvents SqlConnection1 As System.Data.SqlClient.SqlConnection

Protected WithEvents dgsolicitud As System.Web.UI.WebControls.DataGrid

Protected WithEvents Label2 As System.Web.UI.WebControls.Label

Protected WithEvents Label3 As System.Web.UI.WebControls.Label

Protected WithEvents Label4 As System.Web.UI.WebControls.Label

Protected WithEvents Label5 As System.Web.UI.WebControls.Label

Protected WithEvents Label6 As System.Web.UI.WebControls.Label

Protected WithEvents Label7 As System.Web.UI.WebControls.Label

Protected WithEvents Label8 As System.Web.UI.WebControls.Label

Protected WithEvents Label9 As System.Web.UI.WebControls.Label

Protected WithEvents Label10 As System.Web.UI.WebControls.Label

Protected WithEvents ID As System.Web.UI.WebControls.Label

Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox

Protected WithEvents fechainicio As System.Web.UI.WebControls.TextBox

Protected WithEvents fechafin As System.Web.UI.WebControls.TextBox

Protected WithEvents RequiredFieldValidator1 As
System.Web.UI.WebControls.RequiredFieldValidator

Protected WithEvents RegularExpressionValidator1 As
System.Web.UI.WebControls.RegularExpressionValidat or

Protected WithEvents RegularExpressionValidator2 As
System.Web.UI.WebControls.RegularExpressionValidat or

Protected WithEvents ejecutar As System.Web.UI.WebControls.Button

Protected WithEvents rechazar As System.Web.UI.WebControls.Button

Protected WithEvents nombre As System.Web.UI.WebControls.Label

Protected WithEvents centrodecostos As System.Web.UI.WebControls.Label

Protected WithEvents prioridad As System.Web.UI.WebControls.Label

Protected WithEvents diagnostico As System.Web.UI.WebControls.Label

Protected WithEvents comentariosusuario As System.Web.UI.WebControls.Label

'NOTA: el Diseñador de Web Forms necesita la siguiente declaración del
marcador de posición.

'No se debe eliminar o mover.

Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init

'CODEGEN: el Diseñador de Web Forms requiere esta llamada de método

'No la modifique con el editor de código.

InitializeComponent()

End Sub

#End Region

Protected WithEvents menu1 As menu

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

'Introducir aquí el código de usuario para inicializar la página

'If Not Page.IsPostBack Then

menu1.usuario = StrReverse(Mid(StrReverse(User.Identity.Name), 1,
InStr(StrReverse(User.Identity.Name), "\") - 1))

' populatedataset()

'End If

End Sub

'Public Sub populatedataset()

' Dim myds As DataSet = New DataSet

' Dim myadapter As SqlDataAdapter = New SqlDataAdapter("select * from
vistaSolicitudServicioMantenimiento", SqlConnection1)

' Try

' SqlConnection1.Open()

' myadapter.Fill(myds, "vistaSolicitudServicioMantenimiento")

' dgsolicitud.DataSource =
myds.Tables("vistaSolicitudServicioMantenimiento") .DefaultView

' dgsolicitud.DataBind()

' Catch ex As Exception

' Label1.Text = ex.Message

' End Try

'End Sub

'Private Sub dgSolicitud_EditCommand(ByVal source As System.Object, ByVal e
As System.Web.UI.WebControls.DataGridCommandEventArgs )

' dgsolicitud.EditItemIndex = e.Item.ItemIndex

' populatedataset()

'End Sub

'Private Sub dgSolicitud_UpdateCommand(ByVal source As System.Object, ByVal
e As System.Web.UI.WebControls.DataGridCommandEventArgs )

' If Page.IsValid Then

' Dim estador As RadioButtonList = e.Item.FindControl("estadot")

' Dim fechai As TextBox = e.Item.FindControl("fechainiciot")

' Dim fechaf As TextBox = e.Item.FindControl("fechafint")

' Dim comentarios As TextBox = e.Item.FindControl("comentariosproducomt")

' Dim mysqlcmd As SqlCommand = New SqlCommand("uptate
intranetsolicitudmantenimiento set estado=@estado,
observaciones=@observaciones, fechaincioest=@fechainicioest,
fechafinest@fechafinest where idserviciomantenimiento=@id", SqlConnection1)

' mysqlcmd.Parameters.Add("@id", e.Item.ItemIndex)

' mysqlcmd.Parameters.Add("@estado", estador.SelectedValue)

' mysqlcmd.Parameters.Add("@observaciones", comentarios.Text)

' mysqlcmd.Parameters.Add("@fechainicioest", fechai.Text)

' mysqlcmd.Parameters.Add("@fechafinest", fechaf.Text)

' Try

' SqlConnection1.Open()

' mysqlcmd.ExecuteNonQuery()

' Catch ex As Exception

' Label1.Text = ex.Message

' Finally

' SqlConnection1.Close()

' End Try

' End If

'End Sub

'Private Sub dgsolicitud_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
dgsolicitud.ItemDataBound

' If Trim(e.Item.Cells(3).Text) = "ENVIADO" Then

' e.Item.Cells(5).Text = "No puede finalizar"

' ElseIf Trim(e.Item.Cells(3).Text) = "EN EJECUCION" Then

' e.Item.Cells(4).Text = "Esta en ejecucion"

' ElseIf Trim(e.Item.Cells(3).Text) = "FINALIZO" Then

' e.Item.Cells(5).Text = ""

' e.Item.Cells(4).Text = ""

' End If

'End Sub

'Private Sub dgsolicitud_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles
dgsolicitud.ItemCommand

' Dim idint As Int32 = e.Item.ItemIndex

' Dim rows As DataRow() =
myds.Tables("vistaSolicitudServicioMantenimiento") .Select("idserviciomanteni
miento = " + idint + "")

' If e.CommandName = "Procesar" Then

' dgsolicitud.Visible = False

' panelanalizar.Visible = True

' nombre.Text = rows(0).Item(1)

' centrodecostos.Text = rows(0).Item(4)

' prioridad.Text = rows(0).Item(5)

' diagnostico.Text = rows(0).Item(7)

' comentariosusuario.Text = rows(0).Item(10)

' End If

' If e.CommandName = "Finalizar" Then

' End If

'End Sub

End Class

AUXLIO

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 2.
MIEMBRO ACTIVO DE ALIANZADEV
--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 2.
MIEMBRO ACTIVO DE ALIANZADEV
Nov 18 '05 #1
3 5626
my limited spanish gets me that "ha encontrado una coincidencia ambigua" is
equivalent to the "unexpected error"

do you have a line number? and if so post the code for that line
"Luis Esteban Valencia" <lu*******@haceb.com> wrote in message
news:uz**************@TK2MSFTNGP14.phx.gbl...
A page let of work for me

I commented almost all lines but nothing

the code is this

AUXILIO! EXTREMA URGENCIA!!! System.Reflection.AmbiguousMatchException:
Se
ha encontrado una coincidencia ambigua

Una aplicacion me dejo de funcionar y me saca ese errror el codigo es el
siguiente

<%@ Register TagPrefix="uc1" TagName="menu" Src="menu.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="consultaproducon.aspx.vb"
Inherits="SolicitudMantenimiento.consultaproducon" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>default</title>
<meta content="Microsoft Visual Studio .NET 7.1" name=GENERATOR>
<meta content="Visual Basic .NET 7.1" name=CODE_LANGUAGE>
<meta content=JavaScript name=vs_defaultClientScript>
<meta content=http://schemas.microsoft.com/intellisense/ie5
name=vs_targetSchema>
</HEAD>
<body>
<form id=Form1 method=post runat="server">
<TABLE id=Table1 style="HEIGHT: 104px" cellSpacing=0 cellPadding=0
width=800
border=1>
<TBODY>
<TR>
<TD colSpan=2>
<P align=center><IMG src="cabezote-con-foto.jpg" ></P></TD></TR>
<TR>
<TD style="HEIGHT: 26px" vAlign=top align=center width="100%"
bgColor=blue
colSpan=2>
<P align=left><uc1:menu id=Menu1
runat="server"></uc1:menu></P></TD></TR>
<TR>
<TD vAlign=top>
<P align=center><asp:label id=Label1 runat="server"></asp:label></P>
<P align=center><FONT face="Trebuchet MS"
><STRONG>APLICATIVO DE SOLICITUD

DE SERVICIOS DE MANTENIMIENT </STRONG></FONT></P><asp:panel
id=panellogin
runat="server" Width="100%" Height="27px">
<asp:DataGrid id=dgsolicitud runat="server" Width="800px" CellSpacing="1"
ForeColor="Black" BorderWidth="1pt" BackColor="White" Font-Size="X-Small"
Font-Names="Trebuchet MS" BorderColor="Black" AutoGenerateColumns="False"
CellPadding="3">
<HeaderStyle BackColor="Orange"></HeaderStyle>
<Columns>
<asp:BoundColumn DataField="idserviciomantenimiento"
HeaderText="Id"></asp:BoundColumn>
<asp:BoundColumn DataField="Nombre"
HeaderText="Nombre"></asp:BoundColumn>
<asp:BoundColumn DataField="Diagnostico"
HeaderText="Diagnostico"></asp:BoundColumn>
<asp:BoundColumn DataField="Estado"
HeaderText="Estado"></asp:BoundColumn>
<asp:ButtonColumn Text="Procesar" HeaderText="Procesar"
CommandName="Ejecutar" >
<ItemStyle ForeColor="Blue"></ItemStyle>
</asp:ButtonColumn>
<asp:ButtonColumn Text="Finalizar" HeaderText="Finalizar"
CommandName="Finalizar">
<ItemStyle ForeColor="Blue"></ItemStyle>
</asp:ButtonColumn>
</Columns>
</asp:DataGrid></asp:panel><asp:panel id=panelanalizar
runat="server" Height="152px" Visible="False">
<TABLE id=Table2 style="HEIGHT: 219px" borderColor=black
cellSpacing=1
cellPadding=1 width=800 border=1>
<TR>
<TD align=center bgColor=orange colSpan=2 ?><FONT
face="Trebuchet MS"><STRONG>DETALLE DE SERVICIO DE
MANTENIMIENTO</STRONG></FONT></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label2 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Id</asp:Label></TD>
<TD>
<asp:Label id=ID runat="server" Font-Size="X-Small" Font-Names="Trebuchet
MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px; HEIGHT: 22px">
<asp:Label id=Label3 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Nombre</asp:Label></TD>
<TD style="HEIGHT: 22px">
<asp:Label id=nombre runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label4 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Centro de Costos</asp:Label></TD>
<TD>
<asp:Label id=centrodecostos runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label5 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Prioridad</asp:Label></TD>
<TD>
<asp:Label id=prioridad runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label6 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Diagnostico</asp:Label></TD>
<TD>
<asp:Label id=diagnostico runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label7 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Comentarios Usuario</asp:Label></TD>
<TD>
<asp:Label id=comentariosusuario runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label8 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Comentarios Producon</asp:Label></TD>
<TD>
<asp:TextBox id=TextBox1 runat="server" Width="400px" Height="110px"
BorderWidth="1px" BorderColor="Black" BorderStyle="Solid"
TextMode="MultiLine">comentarios</asp:TextBox>
<asp:RequiredFieldValidator id=RequiredFieldValidator1 runat="server"
ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></TD></T
R>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label9 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Fecha Estimada Inicio</asp:Label></TD>
<TD>
<asp:TextBox id=fechainicio runat="server" BorderWidth="1px"
BorderColor="Black" BorderStyle="Solid"></asp:TextBox>
<asp:RegularExpressionValidator id=RegularExpressionValidator1
runat="server" ErrorMessage="RegularExpressionValidator"
ControlToValidate="fechainicio"
ValidationExpression="^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[2][0]\d{2})$"
Formato dd/mm/aaaa</asp:RegularExpressionValidator></TD></TR>

<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label10 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Fecha Estimada Fin</asp:Label></TD>
<TD>
<asp:TextBox id=fechafin runat="server" BorderWidth="1px"
BorderColor="Black" BorderStyle="Solid"></asp:TextBox>
<asp:RegularExpressionValidator id=RegularExpressionValidator2
runat="server" ErrorMessage="RegularExpressionValidator"
ControlToValidate="fechafin"
ValidationExpression="^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[2][0]\d{2})$"
Formato dd/mm/aaaa</asp:RegularExpressionValidator></TD></TR>

<TR>
<TD align=center colSpan=2>
<asp:Button id=ejecutar runat="server" Text="Ejecutar"></asp:Button>
<asp:Button id=rechazar runat="server"
Text="Rechazar"></asp:Button></TD></TR></TABLE></asp:panel></TD></TR></TBODY
</TABLE></form>

</body>
</HTML>
Le puse comentarios a todo y nada....

Imports System.Data.SqlClient

Public Class consultaproducon

Inherits System.Web.UI.Page

#Region " Código generado por el Diseñador de Web Forms "

'El Diseñador de Web Forms requiere esta llamada.

<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()

Me.SqlConnection1 = New System.Data.SqlClient.SqlConnection

'

'SqlConnection1

'

Me.SqlConnection1.ConnectionString = "workstation id=LUISVAL;packet
size=4096;user id=escritura;data source=med20nt;per" & _

"sist security info=False;initial catalog=seradmin; password=escritura"

End Sub

Protected WithEvents Label1 As System.Web.UI.WebControls.Label

Protected WithEvents panellogin As System.Web.UI.WebControls.Panel

Protected WithEvents panelanalizar As System.Web.UI.WebControls.Panel

Protected WithEvents SqlConnection1 As System.Data.SqlClient.SqlConnection

Protected WithEvents dgsolicitud As System.Web.UI.WebControls.DataGrid

Protected WithEvents Label2 As System.Web.UI.WebControls.Label

Protected WithEvents Label3 As System.Web.UI.WebControls.Label

Protected WithEvents Label4 As System.Web.UI.WebControls.Label

Protected WithEvents Label5 As System.Web.UI.WebControls.Label

Protected WithEvents Label6 As System.Web.UI.WebControls.Label

Protected WithEvents Label7 As System.Web.UI.WebControls.Label

Protected WithEvents Label8 As System.Web.UI.WebControls.Label

Protected WithEvents Label9 As System.Web.UI.WebControls.Label

Protected WithEvents Label10 As System.Web.UI.WebControls.Label

Protected WithEvents ID As System.Web.UI.WebControls.Label

Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox

Protected WithEvents fechainicio As System.Web.UI.WebControls.TextBox

Protected WithEvents fechafin As System.Web.UI.WebControls.TextBox

Protected WithEvents RequiredFieldValidator1 As
System.Web.UI.WebControls.RequiredFieldValidator

Protected WithEvents RegularExpressionValidator1 As
System.Web.UI.WebControls.RegularExpressionValidat or

Protected WithEvents RegularExpressionValidator2 As
System.Web.UI.WebControls.RegularExpressionValidat or

Protected WithEvents ejecutar As System.Web.UI.WebControls.Button

Protected WithEvents rechazar As System.Web.UI.WebControls.Button

Protected WithEvents nombre As System.Web.UI.WebControls.Label

Protected WithEvents centrodecostos As System.Web.UI.WebControls.Label

Protected WithEvents prioridad As System.Web.UI.WebControls.Label

Protected WithEvents diagnostico As System.Web.UI.WebControls.Label

Protected WithEvents comentariosusuario As System.Web.UI.WebControls.Label

'NOTA: el Diseñador de Web Forms necesita la siguiente declaración del
marcador de posición.

'No se debe eliminar o mover.

Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init

'CODEGEN: el Diseñador de Web Forms requiere esta llamada de método

'No la modifique con el editor de código.

InitializeComponent()

End Sub

#End Region

Protected WithEvents menu1 As menu

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

'Introducir aquí el código de usuario para inicializar la página

'If Not Page.IsPostBack Then

menu1.usuario = StrReverse(Mid(StrReverse(User.Identity.Name), 1,
InStr(StrReverse(User.Identity.Name), "\") - 1))

' populatedataset()

'End If

End Sub

'Public Sub populatedataset()

' Dim myds As DataSet = New DataSet

' Dim myadapter As SqlDataAdapter = New SqlDataAdapter("select * from
vistaSolicitudServicioMantenimiento", SqlConnection1)

' Try

' SqlConnection1.Open()

' myadapter.Fill(myds, "vistaSolicitudServicioMantenimiento")

' dgsolicitud.DataSource =
myds.Tables("vistaSolicitudServicioMantenimiento") .DefaultView

' dgsolicitud.DataBind()

' Catch ex As Exception

' Label1.Text = ex.Message

' End Try

'End Sub

'Private Sub dgSolicitud_EditCommand(ByVal source As System.Object, ByVal
e
As System.Web.UI.WebControls.DataGridCommandEventArgs )

' dgsolicitud.EditItemIndex = e.Item.ItemIndex

' populatedataset()

'End Sub

'Private Sub dgSolicitud_UpdateCommand(ByVal source As System.Object,
ByVal
e As System.Web.UI.WebControls.DataGridCommandEventArgs )

' If Page.IsValid Then

' Dim estador As RadioButtonList = e.Item.FindControl("estadot")

' Dim fechai As TextBox = e.Item.FindControl("fechainiciot")

' Dim fechaf As TextBox = e.Item.FindControl("fechafint")

' Dim comentarios As TextBox = e.Item.FindControl("comentariosproducomt")

' Dim mysqlcmd As SqlCommand = New SqlCommand("uptate
intranetsolicitudmantenimiento set estado=@estado,
observaciones=@observaciones, fechaincioest=@fechainicioest,
fechafinest@fechafinest where idserviciomantenimiento=@id",
SqlConnection1)

' mysqlcmd.Parameters.Add("@id", e.Item.ItemIndex)

' mysqlcmd.Parameters.Add("@estado", estador.SelectedValue)

' mysqlcmd.Parameters.Add("@observaciones", comentarios.Text)

' mysqlcmd.Parameters.Add("@fechainicioest", fechai.Text)

' mysqlcmd.Parameters.Add("@fechafinest", fechaf.Text)

' Try

' SqlConnection1.Open()

' mysqlcmd.ExecuteNonQuery()

' Catch ex As Exception

' Label1.Text = ex.Message

' Finally

' SqlConnection1.Close()

' End Try

' End If

'End Sub

'Private Sub dgsolicitud_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
dgsolicitud.ItemDataBound

' If Trim(e.Item.Cells(3).Text) = "ENVIADO" Then

' e.Item.Cells(5).Text = "No puede finalizar"

' ElseIf Trim(e.Item.Cells(3).Text) = "EN EJECUCION" Then

' e.Item.Cells(4).Text = "Esta en ejecucion"

' ElseIf Trim(e.Item.Cells(3).Text) = "FINALIZO" Then

' e.Item.Cells(5).Text = ""

' e.Item.Cells(4).Text = ""

' End If

'End Sub

'Private Sub dgsolicitud_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles
dgsolicitud.ItemCommand

' Dim idint As Int32 = e.Item.ItemIndex

' Dim rows As DataRow() =
myds.Tables("vistaSolicitudServicioMantenimiento") .Select("idserviciomanteni
miento = " + idint + "")

' If e.CommandName = "Procesar" Then

' dgsolicitud.Visible = False

' panelanalizar.Visible = True

' nombre.Text = rows(0).Item(1)

' centrodecostos.Text = rows(0).Item(4)

' prioridad.Text = rows(0).Item(5)

' diagnostico.Text = rows(0).Item(7)

' comentariosusuario.Text = rows(0).Item(10)

' End If

' If e.CommandName = "Finalizar" Then

' End If

'End Sub

End Class

AUXLIO

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 2.
MIEMBRO ACTIVO DE ALIANZADEV
--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 2.
MIEMBRO ACTIVO DE ALIANZADEV

Nov 18 '05 #2
I already fixed it. I had a label with iD = ID

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 2.
MIEMBRO ACTIVO DE ALIANZADEV
"Thomas Dodds" <th*********@hotmail.com> escribió en el mensaje
news:e9*************@TK2MSFTNGP11.phx.gbl...
my limited spanish gets me that "ha encontrado una coincidencia ambigua" is equivalent to the "unexpected error"

do you have a line number? and if so post the code for that line
"Luis Esteban Valencia" <lu*******@haceb.com> wrote in message
news:uz**************@TK2MSFTNGP14.phx.gbl...
A page let of work for me

I commented almost all lines but nothing

the code is this

AUXILIO! EXTREMA URGENCIA!!! System.Reflection.AmbiguousMatchException:
Se
ha encontrado una coincidencia ambigua

Una aplicacion me dejo de funcionar y me saca ese errror el codigo es el
siguiente

<%@ Register TagPrefix="uc1" TagName="menu" Src="menu.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="consultaproducon.aspx.vb"
Inherits="SolicitudMantenimiento.consultaproducon" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>default</title>
<meta content="Microsoft Visual Studio .NET 7.1" name=GENERATOR>
<meta content="Visual Basic .NET 7.1" name=CODE_LANGUAGE>
<meta content=JavaScript name=vs_defaultClientScript>
<meta content=http://schemas.microsoft.com/intellisense/ie5
name=vs_targetSchema>
</HEAD>
<body>
<form id=Form1 method=post runat="server">
<TABLE id=Table1 style="HEIGHT: 104px" cellSpacing=0 cellPadding=0
width=800
border=1>
<TBODY>
<TR>
<TD colSpan=2>
<P align=center><IMG src="cabezote-con-foto.jpg" ></P></TD></TR>
<TR>
<TD style="HEIGHT: 26px" vAlign=top align=center width="100%"
bgColor=blue
colSpan=2>
<P align=left><uc1:menu id=Menu1
runat="server"></uc1:menu></P></TD></TR>
<TR>
<TD vAlign=top>
<P align=center><asp:label id=Label1 runat="server"></asp:label></P> <P align=center><FONT face="Trebuchet MS"
><STRONG>APLICATIVO DE SOLICITUD

DE SERVICIOS DE MANTENIMIENT </STRONG></FONT></P><asp:panel
id=panellogin
runat="server" Width="100%" Height="27px">
<asp:DataGrid id=dgsolicitud runat="server" Width="800px" CellSpacing="1" ForeColor="Black" BorderWidth="1pt" BackColor="White" Font-Size="X-Small" Font-Names="Trebuchet MS" BorderColor="Black" AutoGenerateColumns="False" CellPadding="3">
<HeaderStyle BackColor="Orange"></HeaderStyle>
<Columns>
<asp:BoundColumn DataField="idserviciomantenimiento"
HeaderText="Id"></asp:BoundColumn>
<asp:BoundColumn DataField="Nombre"
HeaderText="Nombre"></asp:BoundColumn>
<asp:BoundColumn DataField="Diagnostico"
HeaderText="Diagnostico"></asp:BoundColumn>
<asp:BoundColumn DataField="Estado"
HeaderText="Estado"></asp:BoundColumn>
<asp:ButtonColumn Text="Procesar" HeaderText="Procesar"
CommandName="Ejecutar" >
<ItemStyle ForeColor="Blue"></ItemStyle>
</asp:ButtonColumn>
<asp:ButtonColumn Text="Finalizar" HeaderText="Finalizar"
CommandName="Finalizar">
<ItemStyle ForeColor="Blue"></ItemStyle>
</asp:ButtonColumn>
</Columns>
</asp:DataGrid></asp:panel><asp:panel id=panelanalizar
runat="server" Height="152px" Visible="False">
<TABLE id=Table2 style="HEIGHT: 219px" borderColor=black
cellSpacing=1
cellPadding=1 width=800 border=1>
<TR>
<TD align=center bgColor=orange colSpan=2 ?><FONT
face="Trebuchet MS"><STRONG>DETALLE DE SERVICIO DE
MANTENIMIENTO</STRONG></FONT></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label2 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Id</asp:Label></TD>
<TD>
<asp:Label id=ID runat="server" Font-Size="X-Small" Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px; HEIGHT: 22px">
<asp:Label id=Label3 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Nombre</asp:Label></TD>
<TD style="HEIGHT: 22px">
<asp:Label id=nombre runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label4 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Centro de Costos</asp:Label></TD>
<TD>
<asp:Label id=centrodecostos runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label5 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Prioridad</asp:Label></TD>
<TD>
<asp:Label id=prioridad runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label6 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Diagnostico</asp:Label></TD>
<TD>
<asp:Label id=diagnostico runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label7 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Comentarios Usuario</asp:Label></TD>
<TD>
<asp:Label id=comentariosusuario runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS"></asp:Label></TD></TR>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label8 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Comentarios Producon</asp:Label></TD>
<TD>
<asp:TextBox id=TextBox1 runat="server" Width="400px" Height="110px"
BorderWidth="1px" BorderColor="Black" BorderStyle="Solid"
TextMode="MultiLine">comentarios</asp:TextBox>
<asp:RequiredFieldValidator id=RequiredFieldValidator1 runat="server"
ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></TD></T R>
<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label9 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Fecha Estimada Inicio</asp:Label></TD>
<TD>
<asp:TextBox id=fechainicio runat="server" BorderWidth="1px"
BorderColor="Black" BorderStyle="Solid"></asp:TextBox>
<asp:RegularExpressionValidator id=RegularExpressionValidator1
runat="server" ErrorMessage="RegularExpressionValidator"
ControlToValidate="fechainicio"
ValidationExpression="^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[2][0]\d{2})$"
Formato dd/mm/aaaa</asp:RegularExpressionValidator></TD></TR>

<TR>
<TD style="WIDTH: 262px">
<asp:Label id=Label10 runat="server" Font-Size="X-Small"
Font-Names="Trebuchet MS">Fecha Estimada Fin</asp:Label></TD>
<TD>
<asp:TextBox id=fechafin runat="server" BorderWidth="1px"
BorderColor="Black" BorderStyle="Solid"></asp:TextBox>
<asp:RegularExpressionValidator id=RegularExpressionValidator2
runat="server" ErrorMessage="RegularExpressionValidator"
ControlToValidate="fechafin"
ValidationExpression="^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[2][0]\d{2})$"
Formato dd/mm/aaaa</asp:RegularExpressionValidator></TD></TR>

<TR>
<TD align=center colSpan=2>
<asp:Button id=ejecutar runat="server" Text="Ejecutar"></asp:Button>
<asp:Button id=rechazar runat="server"
Text="Rechazar"></asp:Button></TD></TR></TABLE></asp:panel></TD></TR></TBODY
</TABLE></form>

</body>
</HTML>
Le puse comentarios a todo y nada....

Imports System.Data.SqlClient

Public Class consultaproducon

Inherits System.Web.UI.Page

#Region " Código generado por el Diseñador de Web Forms "

'El Diseñador de Web Forms requiere esta llamada.

<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()

Me.SqlConnection1 = New System.Data.SqlClient.SqlConnection

'

'SqlConnection1

'

Me.SqlConnection1.ConnectionString = "workstation id=LUISVAL;packet
size=4096;user id=escritura;data source=med20nt;per" & _

"sist security info=False;initial catalog=seradmin; password=escritura"

End Sub

Protected WithEvents Label1 As System.Web.UI.WebControls.Label

Protected WithEvents panellogin As System.Web.UI.WebControls.Panel

Protected WithEvents panelanalizar As System.Web.UI.WebControls.Panel

Protected WithEvents SqlConnection1 As

System.Data.SqlClient.SqlConnection
Protected WithEvents dgsolicitud As System.Web.UI.WebControls.DataGrid

Protected WithEvents Label2 As System.Web.UI.WebControls.Label

Protected WithEvents Label3 As System.Web.UI.WebControls.Label

Protected WithEvents Label4 As System.Web.UI.WebControls.Label

Protected WithEvents Label5 As System.Web.UI.WebControls.Label

Protected WithEvents Label6 As System.Web.UI.WebControls.Label

Protected WithEvents Label7 As System.Web.UI.WebControls.Label

Protected WithEvents Label8 As System.Web.UI.WebControls.Label

Protected WithEvents Label9 As System.Web.UI.WebControls.Label

Protected WithEvents Label10 As System.Web.UI.WebControls.Label

Protected WithEvents ID As System.Web.UI.WebControls.Label

Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox

Protected WithEvents fechainicio As System.Web.UI.WebControls.TextBox

Protected WithEvents fechafin As System.Web.UI.WebControls.TextBox

Protected WithEvents RequiredFieldValidator1 As
System.Web.UI.WebControls.RequiredFieldValidator

Protected WithEvents RegularExpressionValidator1 As
System.Web.UI.WebControls.RegularExpressionValidat or

Protected WithEvents RegularExpressionValidator2 As
System.Web.UI.WebControls.RegularExpressionValidat or

Protected WithEvents ejecutar As System.Web.UI.WebControls.Button

Protected WithEvents rechazar As System.Web.UI.WebControls.Button

Protected WithEvents nombre As System.Web.UI.WebControls.Label

Protected WithEvents centrodecostos As System.Web.UI.WebControls.Label

Protected WithEvents prioridad As System.Web.UI.WebControls.Label

Protected WithEvents diagnostico As System.Web.UI.WebControls.Label

Protected WithEvents comentariosusuario As System.Web.UI.WebControls.Label
'NOTA: el Diseñador de Web Forms necesita la siguiente declaración del
marcador de posición.

'No se debe eliminar o mover.

Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init

'CODEGEN: el Diseñador de Web Forms requiere esta llamada de método

'No la modifique con el editor de código.

InitializeComponent()

End Sub

#End Region

Protected WithEvents menu1 As menu

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

'Introducir aquí el código de usuario para inicializar la página

'If Not Page.IsPostBack Then

menu1.usuario = StrReverse(Mid(StrReverse(User.Identity.Name), 1,
InStr(StrReverse(User.Identity.Name), "\") - 1))

' populatedataset()

'End If

End Sub

'Public Sub populatedataset()

' Dim myds As DataSet = New DataSet

' Dim myadapter As SqlDataAdapter = New SqlDataAdapter("select * from
vistaSolicitudServicioMantenimiento", SqlConnection1)

' Try

' SqlConnection1.Open()

' myadapter.Fill(myds, "vistaSolicitudServicioMantenimiento")

' dgsolicitud.DataSource =
myds.Tables("vistaSolicitudServicioMantenimiento") .DefaultView

' dgsolicitud.DataBind()

' Catch ex As Exception

' Label1.Text = ex.Message

' End Try

'End Sub

'Private Sub dgSolicitud_EditCommand(ByVal source As System.Object, ByVal e
As System.Web.UI.WebControls.DataGridCommandEventArgs )

' dgsolicitud.EditItemIndex = e.Item.ItemIndex

' populatedataset()

'End Sub

'Private Sub dgSolicitud_UpdateCommand(ByVal source As System.Object,
ByVal
e As System.Web.UI.WebControls.DataGridCommandEventArgs )

' If Page.IsValid Then

' Dim estador As RadioButtonList = e.Item.FindControl("estadot")

' Dim fechai As TextBox = e.Item.FindControl("fechainiciot")

' Dim fechaf As TextBox = e.Item.FindControl("fechafint")

' Dim comentarios As TextBox = e.Item.FindControl("comentariosproducomt")
' Dim mysqlcmd As SqlCommand = New SqlCommand("uptate
intranetsolicitudmantenimiento set estado=@estado,
observaciones=@observaciones, fechaincioest=@fechainicioest,
fechafinest@fechafinest where idserviciomantenimiento=@id",
SqlConnection1)

' mysqlcmd.Parameters.Add("@id", e.Item.ItemIndex)

' mysqlcmd.Parameters.Add("@estado", estador.SelectedValue)

' mysqlcmd.Parameters.Add("@observaciones", comentarios.Text)

' mysqlcmd.Parameters.Add("@fechainicioest", fechai.Text)

' mysqlcmd.Parameters.Add("@fechafinest", fechaf.Text)

' Try

' SqlConnection1.Open()

' mysqlcmd.ExecuteNonQuery()

' Catch ex As Exception

' Label1.Text = ex.Message

' Finally

' SqlConnection1.Close()

' End Try

' End If

'End Sub

'Private Sub dgsolicitud_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles
dgsolicitud.ItemDataBound

' If Trim(e.Item.Cells(3).Text) = "ENVIADO" Then

' e.Item.Cells(5).Text = "No puede finalizar"

' ElseIf Trim(e.Item.Cells(3).Text) = "EN EJECUCION" Then

' e.Item.Cells(4).Text = "Esta en ejecucion"

' ElseIf Trim(e.Item.Cells(3).Text) = "FINALIZO" Then

' e.Item.Cells(5).Text = ""

' e.Item.Cells(4).Text = ""

' End If

'End Sub

'Private Sub dgsolicitud_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles
dgsolicitud.ItemCommand

' Dim idint As Int32 = e.Item.ItemIndex

' Dim rows As DataRow() =
myds.Tables("vistaSolicitudServicioMantenimiento") .Select("idserviciomanteni miento = " + idint + "")

' If e.CommandName = "Procesar" Then

' dgsolicitud.Visible = False

' panelanalizar.Visible = True

' nombre.Text = rows(0).Item(1)

' centrodecostos.Text = rows(0).Item(4)

' prioridad.Text = rows(0).Item(5)

' diagnostico.Text = rows(0).Item(7)

' comentariosusuario.Text = rows(0).Item(10)

' End If

' If e.CommandName = "Finalizar" Then

' End If

'End Sub

End Class

AUXLIO

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 2.
MIEMBRO ACTIVO DE ALIANZADEV
--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 2.
MIEMBRO ACTIVO DE ALIANZADEV


Nov 18 '05 #3
Bueno! ... perhaps ... ;-)
"Luis Esteban Valencia" <lu*******@haceb.com> wrote in message
news:eC*************@tk2msftngp13.phx.gbl...
I already fixed it. I had a label with iD = ID

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 2.
MIEMBRO ACTIVO DE ALIANZADEV
"Thomas Dodds" <th*********@hotmail.com> escribió en el mensaje
news:e9*************@TK2MSFTNGP11.phx.gbl...
my limited spanish gets me that "ha encontrado una coincidencia ambigua"

is
equivalent to the "unexpected error"

do you have a line number? and if so post the code for that line
"Luis Esteban Valencia" <lu*******@haceb.com> wrote in message
news:uz**************@TK2MSFTNGP14.phx.gbl...
>A page let of work for me
>
>
>
> I commented almost all lines but nothing
>
> the code is this
>
>
>
> AUXILIO! EXTREMA URGENCIA!!!
> System.Reflection.AmbiguousMatchException:
> Se
> ha encontrado una coincidencia ambigua
>
> Una aplicacion me dejo de funcionar y me saca ese errror el codigo es el > siguiente
>
>
>
> <%@ Register TagPrefix="uc1" TagName="menu" Src="menu.ascx" %>
> <%@ Page Language="vb" AutoEventWireup="false"
> Codebehind="consultaproducon.aspx.vb"
> Inherits="SolicitudMantenimiento.consultaproducon" %>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML>
> <HEAD>
> <title>default</title>
> <meta content="Microsoft Visual Studio .NET 7.1" name=GENERATOR>
> <meta content="Visual Basic .NET 7.1" name=CODE_LANGUAGE>
> <meta content=JavaScript name=vs_defaultClientScript>
> <meta content=http://schemas.microsoft.com/intellisense/ie5
> name=vs_targetSchema>
> </HEAD>
> <body>
> <form id=Form1 method=post runat="server">
> <TABLE id=Table1 style="HEIGHT: 104px" cellSpacing=0 cellPadding=0
> width=800
> border=1>
> <TBODY>
> <TR>
> <TD colSpan=2>
> <P align=center><IMG src="cabezote-con-foto.jpg" ></P></TD></TR>
> <TR>
> <TD style="HEIGHT: 26px" vAlign=top align=center width="100%"
> bgColor=blue
> colSpan=2>
> <P align=left><uc1:menu id=Menu1
> runat="server"></uc1:menu></P></TD></TR>
> <TR>
> <TD vAlign=top>
> <P align=center><asp:label id=Label1 runat="server"></asp:label></P> > <P align=center><FONT face="Trebuchet MS"
> ><STRONG>APLICATIVO DE SOLICITUD
> DE SERVICIOS DE MANTENIMIENT </STRONG></FONT></P><asp:panel
> id=panellogin
> runat="server" Width="100%" Height="27px">
> <asp:DataGrid id=dgsolicitud runat="server" Width="800px" CellSpacing="1" > ForeColor="Black" BorderWidth="1pt" BackColor="White" Font-Size="X-Small" > Font-Names="Trebuchet MS" BorderColor="Black" AutoGenerateColumns="False" > CellPadding="3">
> <HeaderStyle BackColor="Orange"></HeaderStyle>
> <Columns>
> <asp:BoundColumn DataField="idserviciomantenimiento"
> HeaderText="Id"></asp:BoundColumn>
> <asp:BoundColumn DataField="Nombre"
> HeaderText="Nombre"></asp:BoundColumn>
> <asp:BoundColumn DataField="Diagnostico"
> HeaderText="Diagnostico"></asp:BoundColumn>
> <asp:BoundColumn DataField="Estado"
> HeaderText="Estado"></asp:BoundColumn>
> <asp:ButtonColumn Text="Procesar" HeaderText="Procesar"
> CommandName="Ejecutar" >
> <ItemStyle ForeColor="Blue"></ItemStyle>
> </asp:ButtonColumn>
> <asp:ButtonColumn Text="Finalizar" HeaderText="Finalizar"
> CommandName="Finalizar">
> <ItemStyle ForeColor="Blue"></ItemStyle>
> </asp:ButtonColumn>
> </Columns>
> </asp:DataGrid></asp:panel><asp:panel id=panelanalizar
> runat="server" Height="152px" Visible="False">
> <TABLE id=Table2 style="HEIGHT: 219px" borderColor=black
> cellSpacing=1
> cellPadding=1 width=800 border=1>
> <TR>
> <TD align=center bgColor=orange colSpan=2 ?><FONT
> face="Trebuchet MS"><STRONG>DETALLE DE SERVICIO DE
> MANTENIMIENTO</STRONG></FONT></TD></TR>
> <TR>
> <TD style="WIDTH: 262px">
> <asp:Label id=Label2 runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS">Id</asp:Label></TD>
> <TD>
> <asp:Label id=ID runat="server" Font-Size="X-Small" Font-Names="Trebuchet > MS"></asp:Label></TD></TR>
> <TR>
> <TD style="WIDTH: 262px; HEIGHT: 22px">
> <asp:Label id=Label3 runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS">Nombre</asp:Label></TD>
> <TD style="HEIGHT: 22px">
> <asp:Label id=nombre runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS"></asp:Label></TD></TR>
> <TR>
> <TD style="WIDTH: 262px">
> <asp:Label id=Label4 runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS">Centro de Costos</asp:Label></TD>
> <TD>
> <asp:Label id=centrodecostos runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS"></asp:Label></TD></TR>
> <TR>
> <TD style="WIDTH: 262px">
> <asp:Label id=Label5 runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS">Prioridad</asp:Label></TD>
> <TD>
> <asp:Label id=prioridad runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS"></asp:Label></TD></TR>
> <TR>
> <TD style="WIDTH: 262px">
> <asp:Label id=Label6 runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS">Diagnostico</asp:Label></TD>
> <TD>
> <asp:Label id=diagnostico runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS"></asp:Label></TD></TR>
> <TR>
> <TD style="WIDTH: 262px">
> <asp:Label id=Label7 runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS">Comentarios Usuario</asp:Label></TD>
> <TD>
> <asp:Label id=comentariosusuario runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS"></asp:Label></TD></TR>
> <TR>
> <TD style="WIDTH: 262px">
> <asp:Label id=Label8 runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS">Comentarios Producon</asp:Label></TD>
> <TD>
> <asp:TextBox id=TextBox1 runat="server" Width="400px" Height="110px"
> BorderWidth="1px" BorderColor="Black" BorderStyle="Solid"
> TextMode="MultiLine">comentarios</asp:TextBox>
> <asp:RequiredFieldValidator id=RequiredFieldValidator1 runat="server"
> ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></TD></T > R>
> <TR>
> <TD style="WIDTH: 262px">
> <asp:Label id=Label9 runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS">Fecha Estimada Inicio</asp:Label></TD>
> <TD>
> <asp:TextBox id=fechainicio runat="server" BorderWidth="1px"
> BorderColor="Black" BorderStyle="Solid"></asp:TextBox>
> <asp:RegularExpressionValidator id=RegularExpressionValidator1
> runat="server" ErrorMessage="RegularExpressionValidator"
> ControlToValidate="fechainicio"
> ValidationExpression="^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[2][0]\d{2})$" >>Formato dd/mm/aaaa</asp:RegularExpressionValidator></TD></TR>
> <TR>
> <TD style="WIDTH: 262px">
> <asp:Label id=Label10 runat="server" Font-Size="X-Small"
> Font-Names="Trebuchet MS">Fecha Estimada Fin</asp:Label></TD>
> <TD>
> <asp:TextBox id=fechafin runat="server" BorderWidth="1px"
> BorderColor="Black" BorderStyle="Solid"></asp:TextBox>
> <asp:RegularExpressionValidator id=RegularExpressionValidator2
> runat="server" ErrorMessage="RegularExpressionValidator"
> ControlToValidate="fechafin"
> ValidationExpression="^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[2][0]\d{2})$" >>Formato dd/mm/aaaa</asp:RegularExpressionValidator></TD></TR>
> <TR>
> <TD align=center colSpan=2>
> <asp:Button id=ejecutar runat="server" Text="Ejecutar"></asp:Button>
> <asp:Button id=rechazar runat="server"
> Text="Rechazar"></asp:Button></TD></TR></TABLE></asp:panel></TD></TR></TBODY >></TABLE></form>
> </body>
> </HTML>
>
>
> Le puse comentarios a todo y nada....
>
> Imports System.Data.SqlClient
>
> Public Class consultaproducon
>
> Inherits System.Web.UI.Page
>
> #Region " Código generado por el Diseñador de Web Forms "
>
> 'El Diseñador de Web Forms requiere esta llamada.
>
> <System.Diagnostics.DebuggerStepThrough()> Private Sub
> InitializeComponent()
>
> Me.SqlConnection1 = New System.Data.SqlClient.SqlConnection
>
> '
>
> 'SqlConnection1
>
> '
>
> Me.SqlConnection1.ConnectionString = "workstation id=LUISVAL;packet
> size=4096;user id=escritura;data source=med20nt;per" & _
>
> "sist security info=False;initial catalog=seradmin; password=escritura"
>
> End Sub
>
> Protected WithEvents Label1 As System.Web.UI.WebControls.Label
>
> Protected WithEvents panellogin As System.Web.UI.WebControls.Panel
>
> Protected WithEvents panelanalizar As System.Web.UI.WebControls.Panel
>
> Protected WithEvents SqlConnection1 As System.Data.SqlClient.SqlConnection >
> Protected WithEvents dgsolicitud As System.Web.UI.WebControls.DataGrid
>
> Protected WithEvents Label2 As System.Web.UI.WebControls.Label
>
> Protected WithEvents Label3 As System.Web.UI.WebControls.Label
>
> Protected WithEvents Label4 As System.Web.UI.WebControls.Label
>
> Protected WithEvents Label5 As System.Web.UI.WebControls.Label
>
> Protected WithEvents Label6 As System.Web.UI.WebControls.Label
>
> Protected WithEvents Label7 As System.Web.UI.WebControls.Label
>
> Protected WithEvents Label8 As System.Web.UI.WebControls.Label
>
> Protected WithEvents Label9 As System.Web.UI.WebControls.Label
>
> Protected WithEvents Label10 As System.Web.UI.WebControls.Label
>
> Protected WithEvents ID As System.Web.UI.WebControls.Label
>
> Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox
>
> Protected WithEvents fechainicio As System.Web.UI.WebControls.TextBox
>
> Protected WithEvents fechafin As System.Web.UI.WebControls.TextBox
>
> Protected WithEvents RequiredFieldValidator1 As
> System.Web.UI.WebControls.RequiredFieldValidator
>
> Protected WithEvents RegularExpressionValidator1 As
> System.Web.UI.WebControls.RegularExpressionValidat or
>
> Protected WithEvents RegularExpressionValidator2 As
> System.Web.UI.WebControls.RegularExpressionValidat or
>
> Protected WithEvents ejecutar As System.Web.UI.WebControls.Button
>
> Protected WithEvents rechazar As System.Web.UI.WebControls.Button
>
> Protected WithEvents nombre As System.Web.UI.WebControls.Label
>
> Protected WithEvents centrodecostos As System.Web.UI.WebControls.Label
>
> Protected WithEvents prioridad As System.Web.UI.WebControls.Label
>
> Protected WithEvents diagnostico As System.Web.UI.WebControls.Label
>
> Protected WithEvents comentariosusuario As System.Web.UI.WebControls.Label >
> 'NOTA: el Diseñador de Web Forms necesita la siguiente declaración del
> marcador de posición.
>
> 'No se debe eliminar o mover.
>
> Private designerPlaceholderDeclaration As System.Object
>
> Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles MyBase.Init
>
> 'CODEGEN: el Diseñador de Web Forms requiere esta llamada de método
>
> 'No la modifique con el editor de código.
>
> InitializeComponent()
>
> End Sub
>
> #End Region
>
> Protected WithEvents menu1 As menu
>
> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles MyBase.Load
>
> 'Introducir aquí el código de usuario para inicializar la página
>
> 'If Not Page.IsPostBack Then
>
> menu1.usuario = StrReverse(Mid(StrReverse(User.Identity.Name), 1,
> InStr(StrReverse(User.Identity.Name), "\") - 1))
>
> ' populatedataset()
>
> 'End If
>
> End Sub
>
>
>
> 'Public Sub populatedataset()
>
> ' Dim myds As DataSet = New DataSet
>
> ' Dim myadapter As SqlDataAdapter = New SqlDataAdapter("select * from
> vistaSolicitudServicioMantenimiento", SqlConnection1)
>
> ' Try
>
> ' SqlConnection1.Open()
>
> ' myadapter.Fill(myds, "vistaSolicitudServicioMantenimiento")
>
> ' dgsolicitud.DataSource =
> myds.Tables("vistaSolicitudServicioMantenimiento") .DefaultView
>
> ' dgsolicitud.DataBind()
>
> ' Catch ex As Exception
>
> ' Label1.Text = ex.Message
>
> ' End Try
>
> 'End Sub
>
> 'Private Sub dgSolicitud_EditCommand(ByVal source As System.Object, ByVal > e
> As System.Web.UI.WebControls.DataGridCommandEventArgs )
>
> ' dgsolicitud.EditItemIndex = e.Item.ItemIndex
>
> ' populatedataset()
>
> 'End Sub
>
> 'Private Sub dgSolicitud_UpdateCommand(ByVal source As System.Object,
> ByVal
> e As System.Web.UI.WebControls.DataGridCommandEventArgs )
>
> ' If Page.IsValid Then
>
> ' Dim estador As RadioButtonList = e.Item.FindControl("estadot")
>
> ' Dim fechai As TextBox = e.Item.FindControl("fechainiciot")
>
> ' Dim fechaf As TextBox = e.Item.FindControl("fechafint")
>
> ' Dim comentarios As TextBox = e.Item.FindControl("comentariosproducomt") >
> ' Dim mysqlcmd As SqlCommand = New SqlCommand("uptate
> intranetsolicitudmantenimiento set estado=@estado,
> observaciones=@observaciones, fechaincioest=@fechainicioest,
> fechafinest@fechafinest where idserviciomantenimiento=@id",
> SqlConnection1)
>
> ' mysqlcmd.Parameters.Add("@id", e.Item.ItemIndex)
>
> ' mysqlcmd.Parameters.Add("@estado", estador.SelectedValue)
>
> ' mysqlcmd.Parameters.Add("@observaciones", comentarios.Text)
>
> ' mysqlcmd.Parameters.Add("@fechainicioest", fechai.Text)
>
> ' mysqlcmd.Parameters.Add("@fechafinest", fechaf.Text)
>
> ' Try
>
> ' SqlConnection1.Open()
>
> ' mysqlcmd.ExecuteNonQuery()
>
> ' Catch ex As Exception
>
> ' Label1.Text = ex.Message
>
> ' Finally
>
> ' SqlConnection1.Close()
>
> ' End Try
>
> ' End If
>
>
>
> 'End Sub
>
>
>
> 'Private Sub dgsolicitud_ItemDataBound(ByVal sender As Object, ByVal e As > System.Web.UI.WebControls.DataGridItemEventArgs) Handles
> dgsolicitud.ItemDataBound
>
> ' If Trim(e.Item.Cells(3).Text) = "ENVIADO" Then
>
> ' e.Item.Cells(5).Text = "No puede finalizar"
>
> ' ElseIf Trim(e.Item.Cells(3).Text) = "EN EJECUCION" Then
>
> ' e.Item.Cells(4).Text = "Esta en ejecucion"
>
> ' ElseIf Trim(e.Item.Cells(3).Text) = "FINALIZO" Then
>
> ' e.Item.Cells(5).Text = ""
>
> ' e.Item.Cells(4).Text = ""
>
> ' End If
>
> 'End Sub
>
> 'Private Sub dgsolicitud_ItemCommand(ByVal source As Object, ByVal e As
> System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles
> dgsolicitud.ItemCommand
>
> ' Dim idint As Int32 = e.Item.ItemIndex
>
> ' Dim rows As DataRow() =
> myds.Tables("vistaSolicitudServicioMantenimiento") .Select("idserviciomanteni > miento = " + idint + "")
>
> ' If e.CommandName = "Procesar" Then
>
> ' dgsolicitud.Visible = False
>
> ' panelanalizar.Visible = True
>
> ' nombre.Text = rows(0).Item(1)
>
> ' centrodecostos.Text = rows(0).Item(4)
>
> ' prioridad.Text = rows(0).Item(5)
>
> ' diagnostico.Text = rows(0).Item(7)
>
> ' comentariosusuario.Text = rows(0).Item(10)
>
>
>
>
>
> ' End If
>
> ' If e.CommandName = "Finalizar" Then
>
>
>
>
>
> ' End If
>
>
>
> 'End Sub
>
> End Class
>
>
>
> AUXLIO
>
>
>
>
>
> --
> LUIS ESTEBAN VALENCIA
> MICROSOFT DCE 2.
> MIEMBRO ACTIVO DE ALIANZADEV
>
>
> --
> LUIS ESTEBAN VALENCIA
> MICROSOFT DCE 2.
> MIEMBRO ACTIVO DE ALIANZADEV
>
>



Nov 18 '05 #4

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

Similar topics

5
by: Andre | last post by:
I have two questions; 1) When executing the sub routine "TestStructure", I'm trying to update the member "intTyres" in the structure "structureCar" dynamically using System.Reflection. The code...
0
by: Erol | last post by:
I have two code snipets, one in VB and the other in C#. Why does the visual basic example not change the structure member "x", but the C# code does? I need the visual basic code to work as I am a...
3
by: System.Reflection Activator | last post by:
************************************** //Load the Assembly Assembly a = Assembly.LoadFrom(sAssembly); //Get Types so we can Identify the Interface. Type mytypes = a.GetTypes(); BindingFlags...
1
by: melanieab | last post by:
Hi again, I'm trying to programatically sort a datagrid. I did find the following code, and it does work, but, when a column header is clicked, the data only sorts in descending order. Clicking...
4
by: Lucas Tam | last post by:
Hi all, I need to set a property on a subclass such as: Report.ExportOptions.ExportFormatType = ExportFormatType.Excel AND Report.ExportOptions.FormatOptions = excelFormatOpts
2
by: Erol | last post by:
I have two code snipets, one in VB and the other in C#. Why does the visual basic example not change the structure member "x", but the C# code does? I need the visual basic code to work as I am a...
1
by: Patrick | last post by:
Has been trying to get an ASP.NET DLL's modification date/time for the "release date/time" to be displayed on the page's footer Using: System.Reflection.Assembly...
1
by: gnana | last post by:
Hi, I want to find controls in a ASP.NET page using System.Reflection.Assembly. I have to create an Application to set the Permission(visible/editable) for each control on the page, for this i...
3
by: groovyjman21 | last post by:
Hi, I am using FXCop on my c# project and it is complaining about signing the assembly with a strong name key. All the documentation I can find says to do: using System.Reflection; .... ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.