<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,culture=neutral" %>
<%# dim dia as string
dim mes as string
dim year as string
dia = request.form("DropDownList1")
mes = request.form("DropDownList2")
year = request.form("DropDownList3")
fecha = dia & "/" & mes & "/" & year
%>
<MM:Insert
runat="server"
CommandText='<%# "execute dbo.insertarfecha @fecha" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_cn1") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETYPE_cn1") %>'
Expression='<%# Request.Form("MM_insert") = "form1" %>'
CreateDataSet="false"
Debug="true"
>
<Parameters>
<Parameter Name="@fecha" Value='<%# IIf((Request.Form("fecha") <> Nothing), Request.Form("fecha"), "") %>' Type="VarChar" />
</Parameters>
</MM:Insert>
<MM:DataSet
id="DataSet1"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_cn1") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETYPE_cn1") %>'
CommandText='<%# "SELECT * FROM dbo.año" %>'
Debug="true"
></MM:DataSet>
<MM:DataSet
id="DataSet2"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_cn1") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETYPE_cn1") %>'
CommandText='<%# "SELECT * FROM dbo.mes" %>'
Debug="true"
></MM:DataSet>
<MM:DataSet
id="DataSet3"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_cn1") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETYPE_cn1") %>'
CommandText='<%# "SELECT * FROM dbo.dia" %>'
Debug="true"
></MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>
<body>
hoy ese el dia
<form method='POST' name='form1' id="form1" runat='server'>
<table width="200" border="1">
<tr>
<td><asp:DropDownList ID="DropDownList1" DataSource="<%# DataSet1.DefaultView %>" DataTextField="año" DataValueField="año" runat="server"></asp:DropDownList></td>
<td><asp:DropDownList ID="DropDownList2" DataSource="<%# DataSet2.DefaultView %>" DataTextField="mes" DataValueField="mes" runat="server"></asp:DropDownList></td>
<td><asp:DropDownList ID="DropDownList3" DataSource="<%# DataSet3.DefaultView %>" DataTextField="dia" DataValueField="dia" runat="server"></asp:DropDownList></td>
</tr>
</table>
<p>
<label>
<input type="submit" name="Submit" value="Enviar" />
</label>
</p>
<input type="hidden" name="MM_insert" value="form1">
</form>
</body>
</html>
este es el codigo q meti....para concatenar 3 combos..... pero me sale el sgte error....kisiera saber en q hago la falla
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30201: Expression expected.
Source Error:
Line 1: <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
Line 2: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,culture=neutral" %>
Line 3: <%# dim dia as string
Line 4: dim mes as string
Line 5: dim year as string
Source File: c:\inetpub\wwwroot\paginaesglo\pruebacombo.aspx Line: 3
espero q me puedan ayudar.....