OBTENER VALOR DE LINKBUTTON, DATAGRID
‘Respond to item being clicked
Dim btn As LinkButton = CType(e.CommandSource, LinkButton)
Select Case btn.Text
Case “Details”
….etc…
End Select
5 months ago‘Respond to item being clicked
Dim btn As LinkButton = CType(e.CommandSource, LinkButton)
Select Case btn.Text
Case “Details”
….etc…
End Select
5 months agoExample #2 - With ORDER BY Clause
The following is a UNION query that uses an ORDER BY clause:
select supplier_id, supplier_name
from suppliers
where supplier_id > 2000
UNION
select company_id, company_name
from companies
where company_id > 1000
ORDER BY 2;
Since the column names are different between the two “select” statements, it is more advantageous to reference the columns in the ORDER BY clause by their position in the result set. In this example, we’ve sorted the results by supplier_name / company_name in ascending order, as denoted by the “ORDER BY 2”.
The supplier_name / company_name fields are in position #2 in the result set.
5 months agoPor defecto lo entrega así:
dd/mm/yyyy hh:mm:ss
En cambio podemos hacer ciertas variaciones:
CONVERT (char(10), Fecha,103) retorna dd/mm/yyyy
CONVERT (char(10), Fecha,102) retorna dd.mm.yyyy
6 months agoEn C# es muy sencillo:
If (someEvent = Null) //Si es nulo
{
//codigo
}
If (someEvent != Null) //Si no es nulo
{
//codigo
}
En VB.NET es de la siguiente forma:
If SomeEvent is Nothing Then //Si es nulo
//codigo
End If
If Not SomeEvent is Nothing Then //Si no es nulo
//codigo
End If
6 months ago