![]() |
| |||||||
| Registrarse | Preguntas Frecuentes | Lista de Foreros | Calendario | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
![]() |
| | LinkBack | Herramientas | Desplegado |
| |||
| Hola a todos, Trabajo con VS 2008. Estoy empezando con el Ajax y casi tambien con .net. Intento seguir los videos con ejemplos que hay en www.asp.net. En un formuladio web ajax que he creado tengo un textbox, un label y un button (de las herramientas estandar). Intento agregar un ConfirmButtonExtender y por mas que lo cojo del cuadro de herramientas e intento ponerlo en el webForm no hay manera de que me aparezca. ¿Me podeis ayudar? Este es mi simple codigo: <%*** Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" Inherits="Default3" %> <!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 runat="server"> <title>Página sin título</title> <script type="text/javascript"> function pageLoad() { } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <br /> </div> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <br /> <br /> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> <br /> <br /> <asp:Button ID="Button1" runat="server" Text="Button" Width="242px" /> <br /> <br /> <br /> </form> </body> Muchas gracias |
| | ||||
| ||||
| |
| |||
| Hola Alberto: Te mando un ejemplo esta es la parte del aspx <%*** Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <div> <br /> <asp:Label ID="Label1" runat="server" Width="273px"></asp:Label><br /> <br /> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" Width="175px" /> <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="Button1" ConfirmText="Are you sure you want to submit ??"> </ajaxToolkit:ConfirmButtonExtender> </div> </form> </body> </html> Aqui esta el codigo c# using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class _Default : System.Web.UI.Page { protected void Button1_Click(object sender, EventArgs e) { Label1.Text = "Text from the serverside."; } } Y por ultimo tu Web.config <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensions SectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGro up, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptReso urceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebService sSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerial izationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/> <section name="profileService" type="System.Web.Configuration.ScriptingProfileSer viceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthentica tionServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> </sectionGroup> </sectionGroup> </sectionGroup> </configSections> <system.web> <pages> <controls> <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/> </controls> </pages> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <compilation debug="true"> <assemblies> <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies> </compilation> <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFact ory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFact ory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/> </httpHandlers> <httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </httpModules> </system.web> <system.web.extensions> <scripting> <webServices> <!-- Uncomment this line to customize maxJsonLength and add a custom converter --> <!-- <jsonSerialization maxJsonLength="500"> <converters> <add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/> </converters> </jsonSerialization> --> <!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. --> <!-- <authenticationService enabled="true" requireSSL = "true|false"/> --> <!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and writeAccessProperties attributes. --> <!-- <profileService enabled="true" readAccessProperties="propertyname1,propertyname2" writeAccessProperties="propertyname1,propertyname2 " /> --> </webServices> <!-- <scriptResourceHandler enableCompression="true" enableCaching="true" /> --> </scripting> </system.web.extensions> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </modules> <handlers> <remove name="WebServiceHandlerFactory-Integrated"/> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFact ory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFact ory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </handlers> </system.webServer> </configuration> Pruebalo, estudialo y comentas como te fue -- Salu2 Cordiales :-)) (""'·._.·L.I. Daniel Villa·._.·'"") "Alberto S.H." <albertoshsh***hotmail.con> wrote in message news:eXsB3NcNJHA.588***TK2MSFTNGP06.phx.gbl... > Hola a todos, > > Trabajo con VS 2008. Estoy empezando con el Ajax y casi tambien con .net. > Intento seguir los videos con ejemplos que hay en www.asp.net. > En un formuladio web ajax que he creado tengo un textbox, un label y un > button (de las herramientas estandar). Intento agregar un > ConfirmButtonExtender y por mas que lo cojo del cuadro de herramientas e > intento ponerlo en el webForm no hay manera de que me aparezca. > > ¿Me podeis ayudar? > Este es mi simple codigo: > > <%*** Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" > Inherits="Default3" %> > > <!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 runat="server"> > <title>Página sin título</title> > <script type="text/javascript"> > > function pageLoad() { > } > > </script> > </head> > <body> > <form id="form1" runat="server"> > <div> > <asp:ScriptManager ID="ScriptManager1" runat="server" /> > <br /> > </div> > <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> > <br /> > <br /> > <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> > <br /> > <br /> > <asp:Button ID="Button1" runat="server" Text="Button" Width="242px" /> > <br /> > <br /> > <br /> > </form> > </body> > > Muchas gracias > |
| |||
| Hola Alberto: Te mando un ejemplo esta es la parte del aspx <%*** Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <div> <br /> <asp:Label ID="Label1" runat="server" Width="273px"></asp:Label><br /> <br /> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" Width="175px" /> <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="Button1" ConfirmText="Are you sure you want to submit ??"> </ajaxToolkit:ConfirmButtonExtender> </div> </form> </body> </html> Aqui esta el codigo c# using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class _Default : System.Web.UI.Page { protected void Button1_Click(object sender, EventArgs e) { Label1.Text = "Text from the serverside."; } } Y por ultimo tu Web.config <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensions SectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGro up, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptReso urceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebService sSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerial izationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/> <section name="profileService" type="System.Web.Configuration.ScriptingProfileSer viceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthentica tionServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> </sectionGroup> </sectionGroup> </sectionGroup> </configSections> <system.web> <pages> <controls> <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/> </controls> </pages> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <compilation debug="true"> <assemblies> <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies> </compilation> <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFact ory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFact ory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/> </httpHandlers> <httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </httpModules> </system.web> <system.web.extensions> <scripting> <webServices> <!-- Uncomment this line to customize maxJsonLength and add a custom converter --> <!-- <jsonSerialization maxJsonLength="500"> <converters> <add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/> </converters> </jsonSerialization> --> <!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. --> <!-- <authenticationService enabled="true" requireSSL = "true|false"/> --> <!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and writeAccessProperties attributes. --> <!-- <profileService enabled="true" readAccessProperties="propertyname1,propertyname2" writeAccessProperties="propertyname1,propertyname2 " /> --> </webServices> <!-- <scriptResourceHandler enableCompression="true" enableCaching="true" /> --> </scripting> </system.web.extensions> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </modules> <handlers> <remove name="WebServiceHandlerFactory-Integrated"/> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFact ory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFact ory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </handlers> </system.webServer> </configuration> Pruebalo, estudialo y comentas como te fue -- Salu2 Cordiales :-)) (""'·._.·L.I. Daniel Villa·._.·'"") "Alberto S.H." <albertoshsh***hotmail.con> wrote in message news:eXsB3NcNJHA.588***TK2MSFTNGP06.phx.gbl... > Hola a todos, > > Trabajo con VS 2008. Estoy empezando con el Ajax y casi tambien con .net. > Intento seguir los videos con ejemplos que hay en www.asp.net. > En un formuladio web ajax que he creado tengo un textbox, un label y un > button (de las herramientas estandar). Intento agregar un > ConfirmButtonExtender y por mas que lo cojo del cuadro de herramientas e > intento ponerlo en el webForm no hay manera de que me aparezca. > > ¿Me podeis ayudar? > Este es mi simple codigo: > > <%*** Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" > Inherits="Default3" %> > > <!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 runat="server"> > <title>Página sin título</title> > <script type="text/javascript"> > > function pageLoad() { > } > > </script> > </head> > <body> > <form id="form1" runat="server"> > <div> > <asp:ScriptManager ID="ScriptManager1" runat="server" /> > <br /> > </div> > <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> > <br /> > <br /> > <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> > <br /> > <br /> > <asp:Button ID="Button1" runat="server" Text="Button" Width="242px" /> > <br /> > <br /> > <br /> > </form> > </body> > > Muchas gracias > |
| |||
| Hola Daniel, Muchas gracias lo primero por tu código, he empezado un nuevo proyecto y he añadido tu codigo. Lo que me pasa es que en la vista diseño me da el error "error al crear el control - ConfirmButtonExtender1" "Etiqueta de servidor 'ajaxToolkit:ConfirmButtonExtender' desconocida" Si me voy al html, bajo ajaxToolkit:ConfirmButtonExtender, me dice que "el elemento ConfirmButtonExtender es desconocido". Se ve que hace falta agregar alguna referencia al proyecto. ¿sabeis cual? Gracias "Daniel H. Villa" wrote: > Hola Alberto: > > Te mando un ejemplo esta es la parte del aspx > > <%*** Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" > Inherits="_Default" %> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head runat="server"> > <title>Untitled Page</title> > </head> > <body> > <form id="form1" runat="server"> > <asp:ScriptManager ID="ScriptManager1" runat="server" /> > <div> > <br /> > <asp:Label ID="Label1" runat="server" > Width="273px"></asp:Label><br /> > <br /> > <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" > Text="Button" Width="175px" /> > <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" > runat="server" TargetControlID="Button1" ConfirmText="Are you sure you want > to submit ??"> > </ajaxToolkit:ConfirmButtonExtender> > </div> > </form> > </body> > </html> > > > Aqui esta el codigo c# > > using System; > using System.Data; > using System.Configuration; > using System.Web; > using System.Web.Security; > using System.Web.UI; > using System.Web.UI.WebControls; > using System.Web.UI.WebControls.WebParts; > using System.Web.UI.HtmlControls; > > public partial class _Default : System.Web.UI.Page > { > protected void Button1_Click(object sender, EventArgs e) > { > Label1.Text = "Text from the serverside."; > } > } > > > Y por ultimo tu Web.config > > > <?xml version="1.0"?> > <configuration> > <configSections> > <sectionGroup name="system.web.extensions" > type="System.Web.Configuration.SystemWebExtensions SectionGroup, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"> > <sectionGroup name="scripting" > type="System.Web.Configuration.ScriptingSectionGro up, System.Web.Extensions, > Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> > <section name="scriptResourceHandler" > type="System.Web.Configuration.ScriptingScriptReso urceHandlerSection, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35" requirePermission="false" > allowDefinition="MachineToApplication"/> > <sectionGroup name="webServices" > type="System.Web.Configuration.ScriptingWebService sSectionGroup, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"> > <section name="jsonSerialization" > type="System.Web.Configuration.ScriptingJsonSerial izationSection, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35" requirePermission="false" > allowDefinition="Everywhere"/> > <section name="profileService" > type="System.Web.Configuration.ScriptingProfileSer viceSection, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35" requirePermission="false" > allowDefinition="MachineToApplication"/> > <section name="authenticationService" > type="System.Web.Configuration.ScriptingAuthentica tionServiceSection, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35" requirePermission="false" > allowDefinition="MachineToApplication"/> > </sectionGroup> > </sectionGroup> > </sectionGroup> > </configSections> > <system.web> > <pages> > <controls> > <add tagPrefix="asp" namespace="System.Web.UI" > assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" > tagPrefix="ajaxToolkit"/> > </controls> > </pages> > <!-- > Set compilation debug="true" to insert debugging > symbols into the compiled page. Because this > affects performance, set this value to true only > during development. > --> > <compilation debug="true"> > <assemblies> > <add assembly="System.Web.Extensions, Version=1.0.61025.0, > Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> > <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=B03F5F7F11D50A3A"/> > <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, > Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies> > </compilation> > <httpHandlers> > <remove verb="*" path="*.asmx"/> > <add verb="*" path="*.asmx" validate="false" > type="System.Web.Script.Services.ScriptHandlerFact ory, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > <add verb="*" path="*_AppService.axd" validate="false" > type="System.Web.Script.Services.ScriptHandlerFact ory, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > <add verb="GET,HEAD" path="ScriptResource.axd" > type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, > Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" > validate="false"/> > </httpHandlers> > <httpModules> > <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > </httpModules> > </system.web> > <system.web.extensions> > <scripting> > <webServices> > <!-- Uncomment this line to customize maxJsonLength and add a custom > converter --> > <!-- > <jsonSerialization maxJsonLength="500"> > <converters> > <add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/> > </converters> > </jsonSerialization> > --> > <!-- Uncomment this line to enable the authentication service. Include > requireSSL="true" if appropriate. --> > <!-- > <authenticationService enabled="true" requireSSL = "true|false"/> > --> > <!-- Uncomment these lines to enable the profile service. To allow > profile properties to be retrieved > and modified in ASP.NET AJAX applications, you need to add each > property name to the readAccessProperties and > writeAccessProperties attributes. --> > <!-- > <profileService enabled="true" > readAccessProperties="propertyname1,propertyname2" > writeAccessProperties="propertyname1,propertyname2 " /> > --> > </webServices> > <!-- > <scriptResourceHandler enableCompression="true" enableCaching="true" > /> > --> > </scripting> > </system.web.extensions> > <system.webServer> > <validation validateIntegratedModeConfiguration="false"/> > <modules> > <add name="ScriptModule" preCondition="integratedMode" > type="System.Web.Handlers.ScriptModule, System.Web.Extensions, > Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> > </modules> > <handlers> > <remove name="WebServiceHandlerFactory-Integrated"/> > <add name="ScriptHandlerFactory" verb="*" path="*.asmx" > preCondition="integratedMode" > type="System.Web.Script.Services.ScriptHandlerFact ory, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > <add name="ScriptHandlerFactoryAppServices" verb="*" > path="*_AppService.axd" preCondition="integratedMode" > type="System.Web.Script.Services.ScriptHandlerFact ory, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" > path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > </handlers> > </system.webServer> > </configuration> > > > Pruebalo, estudialo y comentas como te fue > > > -- > Salu2 Cordiales :-)) > > (""'·._.·L.I. Daniel Villa·._.·'"") > > > > "Alberto S.H." <albertoshsh***hotmail.con> wrote in message > news:eXsB3NcNJHA.588***TK2MSFTNGP06.phx.gbl... > > Hola a todos, > > > > Trabajo con VS 2008. Estoy empezando con el Ajax y casi tambien con .net. > > Intento seguir los videos con ejemplos que hay en www.asp.net. > > En un formuladio web ajax que he creado tengo un textbox, un label y un > > button (de las herramientas estandar). Intento agregar un > > ConfirmButtonExtender y por mas que lo cojo del cuadro de herramientas e > > intento ponerlo en el webForm no hay manera de que me aparezca. > > > > ¿Me podeis ayudar? > > Este es mi simple codigo: > > > > <%*** Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" > > Inherits="Default3" %> > > > > <!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 runat="server"> > > <title>Página sin tÃ***tulo</title> > > <script type="text/javascript"> > > > > function pageLoad() { > > } > > > > </script> > > </head> > > <body> > > <form id="form1" runat="server"> > > <div> > > <asp:ScriptManager ID="ScriptManager1" runat="server" /> > > <br /> > > </div> > > <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> > > <br /> > > <br /> > > <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> > > <br /> > > <br /> > > <asp:Button ID="Button1" runat="server" Text="Button" Width="242px" /> > > <br /> > > <br /> > > <br /> > > </form> > > </body> > > > > Muchas gracias > > > > > |
| |||
| Hola Daniel, Muchas gracias lo primero por tu código, he empezado un nuevo proyecto y he añadido tu codigo. Lo que me pasa es que en la vista diseño me da el error "error al crear el control - ConfirmButtonExtender1" "Etiqueta de servidor 'ajaxToolkit:ConfirmButtonExtender' desconocida" Si me voy al html, bajo ajaxToolkit:ConfirmButtonExtender, me dice que "el elemento ConfirmButtonExtender es desconocido". Se ve que hace falta agregar alguna referencia al proyecto. ¿sabeis cual? Gracias "Daniel H. Villa" wrote: > Hola Alberto: > > Te mando un ejemplo esta es la parte del aspx > > <%*** Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" > Inherits="_Default" %> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head runat="server"> > <title>Untitled Page</title> > </head> > <body> > <form id="form1" runat="server"> > <asp:ScriptManager ID="ScriptManager1" runat="server" /> > <div> > <br /> > <asp:Label ID="Label1" runat="server" > Width="273px"></asp:Label><br /> > <br /> > <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" > Text="Button" Width="175px" /> > <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" > runat="server" TargetControlID="Button1" ConfirmText="Are you sure you want > to submit ??"> > </ajaxToolkit:ConfirmButtonExtender> > </div> > </form> > </body> > </html> > > > Aqui esta el codigo c# > > using System; > using System.Data; > using System.Configuration; > using System.Web; > using System.Web.Security; > using System.Web.UI; > using System.Web.UI.WebControls; > using System.Web.UI.WebControls.WebParts; > using System.Web.UI.HtmlControls; > > public partial class _Default : System.Web.UI.Page > { > protected void Button1_Click(object sender, EventArgs e) > { > Label1.Text = "Text from the serverside."; > } > } > > > Y por ultimo tu Web.config > > > <?xml version="1.0"?> > <configuration> > <configSections> > <sectionGroup name="system.web.extensions" > type="System.Web.Configuration.SystemWebExtensions SectionGroup, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"> > <sectionGroup name="scripting" > type="System.Web.Configuration.ScriptingSectionGro up, System.Web.Extensions, > Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> > <section name="scriptResourceHandler" > type="System.Web.Configuration.ScriptingScriptReso urceHandlerSection, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35" requirePermission="false" > allowDefinition="MachineToApplication"/> > <sectionGroup name="webServices" > type="System.Web.Configuration.ScriptingWebService sSectionGroup, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"> > <section name="jsonSerialization" > type="System.Web.Configuration.ScriptingJsonSerial izationSection, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35" requirePermission="false" > allowDefinition="Everywhere"/> > <section name="profileService" > type="System.Web.Configuration.ScriptingProfileSer viceSection, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35" requirePermission="false" > allowDefinition="MachineToApplication"/> > <section name="authenticationService" > type="System.Web.Configuration.ScriptingAuthentica tionServiceSection, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35" requirePermission="false" > allowDefinition="MachineToApplication"/> > </sectionGroup> > </sectionGroup> > </sectionGroup> > </configSections> > <system.web> > <pages> > <controls> > <add tagPrefix="asp" namespace="System.Web.UI" > assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" > tagPrefix="ajaxToolkit"/> > </controls> > </pages> > <!-- > Set compilation debug="true" to insert debugging > symbols into the compiled page. Because this > affects performance, set this value to true only > during development. > --> > <compilation debug="true"> > <assemblies> > <add assembly="System.Web.Extensions, Version=1.0.61025.0, > Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> > <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=B03F5F7F11D50A3A"/> > <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, > Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies> > </compilation> > <httpHandlers> > <remove verb="*" path="*.asmx"/> > <add verb="*" path="*.asmx" validate="false" > type="System.Web.Script.Services.ScriptHandlerFact ory, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > <add verb="*" path="*_AppService.axd" validate="false" > type="System.Web.Script.Services.ScriptHandlerFact ory, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > <add verb="GET,HEAD" path="ScriptResource.axd" > type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, > Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" > validate="false"/> > </httpHandlers> > <httpModules> > <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > </httpModules> > </system.web> > <system.web.extensions> > <scripting> > <webServices> > <!-- Uncomment this line to customize maxJsonLength and add a custom > converter --> > <!-- > <jsonSerialization maxJsonLength="500"> > <converters> > <add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/> > </converters> > </jsonSerialization> > --> > <!-- Uncomment this line to enable the authentication service. Include > requireSSL="true" if appropriate. --> > <!-- > <authenticationService enabled="true" requireSSL = "true|false"/> > --> > <!-- Uncomment these lines to enable the profile service. To allow > profile properties to be retrieved > and modified in ASP.NET AJAX applications, you need to add each > property name to the readAccessProperties and > writeAccessProperties attributes. --> > <!-- > <profileService enabled="true" > readAccessProperties="propertyname1,propertyname2" > writeAccessProperties="propertyname1,propertyname2 " /> > --> > </webServices> > <!-- > <scriptResourceHandler enableCompression="true" enableCaching="true" > /> > --> > </scripting> > </system.web.extensions> > <system.webServer> > <validation validateIntegratedModeConfiguration="false"/> > <modules> > <add name="ScriptModule" preCondition="integratedMode" > type="System.Web.Handlers.ScriptModule, System.Web.Extensions, > Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> > </modules> > <handlers> > <remove name="WebServiceHandlerFactory-Integrated"/> > <add name="ScriptHandlerFactory" verb="*" path="*.asmx" > preCondition="integratedMode" > type="System.Web.Script.Services.ScriptHandlerFact ory, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > <add name="ScriptHandlerFactoryAppServices" verb="*" > path="*_AppService.axd" preCondition="integratedMode" > type="System.Web.Script.Services.ScriptHandlerFact ory, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" > path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, > System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35"/> > </handlers> > </system.webServer> > </configuration> > > > Pruebalo, estudialo y comentas como te fue > > > -- > Salu2 Cordiales :-)) > > (""'·._.·L.I. Daniel Villa·._.·'"") > > > > "Alberto S.H." <albertoshsh***hotmail.con> wrote in message > news:eXsB3NcNJHA.588***TK2MSFTNGP06.phx.gbl... > > Hola a todos, > > > > Trabajo con VS 2008. Estoy empezando con el Ajax y casi tambien con .net. > > Intento seguir los videos con ejemplos que hay en www.asp.net. > > En un formuladio web ajax que he creado tengo un textbox, un label y un > > button (de las herramientas estandar). Intento agregar un > > ConfirmButtonExtender y por mas que lo cojo del cuadro de herramientas e > > intento ponerlo en el webForm no hay manera de que me aparezca. > > > > ¿Me podeis ayudar? > > Este es mi simple codigo: > > > > <%*** Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" > > Inherits="Default3" %> > > > > <!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 runat="server"> > > <title>Página sin tÃ***tulo</title> > > <script type="text/javascript"> > > > > function pageLoad() { > > } > > > > </script> > > </head> > > <body> > > <form id="form1" runat="server"> > > <div> > > <asp:ScriptManager ID="ScriptManager1" runat="server" /> > > <br /> > > </div> > > <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> > > <br /> > > <br /> > > <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> > > <br /> > > <br /> > > <asp:Button ID="Button1" runat="server" Text="Button" Width="242px" /> > > <br /> > > <br /> > > <br /> > > </form> > > </body> > > > > Muchas gracias > > > > > |
| |||
| Hola, Prueba a meterlo todo en un UpdatePanel On 24 oct, 11:26, "Alberto S.H." <albertos...***hotmail.con> wrote: > Hola a todos, > > Trabajo con VS 2008. Estoy empezando con el Ajax y casi tambien con .net. > Intento seguir los videos con ejemplos que hay enwww.asp.net. > En un formuladio web ajax que he creado tengo un textbox, un label y un > button (de las herramientas estandar). Intento agregar un > ConfirmButtonExtender y por mas que lo cojo del cuadro de herramientas e > intento ponerlo en el webForm no hay manera de que me aparezca. > > ¿Me podeis ayudar? > Este es mi simple codigo: > > <%*** Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" > Inherits="Default3" %> > > <!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 runat="server"> > *** *** <title>Página sin título</title> > *** *** <script type="text/javascript"> > > *** *** *** function pageLoad() { > *** *** *** } > > *** *** </script> > </head> > <body> > *** *** <form id="form1" runat="server"> > *** *** <div> > *** *** *** *** <asp:ScriptManager ID="ScriptManager1" runat="server"/> > *** *** *** *** <br /> > *** *** </div> > *** *** <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> > *** *** <br /> > *** *** <br /> > *** *** <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> > *** *** <br /> > *** *** <br /> > *** *** <asp:Button ID="Button1" runat="server" Text="Button" Width="242px" /> > *** *** <br /> > *** *** <br /> > *** *** <br /> > *** *** </form> > </body> > > Muchas gracias |
| |||
| Hola, Prueba a meterlo todo en un UpdatePanel On 24 oct, 11:26, "Alberto S.H." <albertos...***hotmail.con> wrote: > Hola a todos, > > Trabajo con VS 2008. Estoy empezando con el Ajax y casi tambien con .net. > Intento seguir los videos con ejemplos que hay enwww.asp.net. > En un formuladio web ajax que he creado tengo un textbox, un label y un > button (de las herramientas estandar). Intento agregar un > ConfirmButtonExtender y por mas que lo cojo del cuadro de herramientas e > intento ponerlo en el webForm no hay manera de que me aparezca. > > ¿Me podeis ayudar? > Este es mi simple codigo: > > <%*** Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" > Inherits="Default3" %> > > <!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 runat="server"> > *** *** <title>Página sin título</title> > *** *** <script type="text/javascript"> > > *** *** *** function pageLoad() { > *** *** *** } > > *** *** </script> > </head> > <body> > *** *** <form id="form1" runat="server"> > *** *** <div> > *** *** *** *** <asp:ScriptManager ID="ScriptManager1" runat="server"/> > *** *** *** *** <br /> > *** *** </div> > *** *** <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> > *** *** <br /> > *** *** <br /> > *** *** <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> > *** *** <br /> > *** *** <br /> > *** *** <asp:Button ID="Button1" runat="server" Text="Button" Width="242px" /> > *** *** <br /> > *** *** <br /> > *** *** <br /> > *** *** </form> > </body> > > Muchas gracias |
| |||
| Hola, Si lo meto todo en un update panel me pasa lo que os comentaba al principio del post, que no puedo crear el control dentro de este updatepanel, lo arrastro y no me aparece nada. Saludos "elgoog" wrote: > Hola, > > Prueba a meterlo todo en un UpdatePanel > > On 24 oct, 11:26, "Alberto S.H." <albertos...***hotmail.con> wrote: > > Hola a todos, > > > > Trabajo con VS 2008. Estoy empezando con el Ajax y casi tambien con .net. > > Intento seguir los videos con ejemplos que hay enwww.asp.net. > > En un formuladio web ajax que he creado tengo un textbox, un label y un > > button (de las herramientas estandar). Intento agregar un > > ConfirmButtonExtender y por mas que lo cojo del cuadro de herramientas e > > intento ponerlo en el webForm no hay manera de que me aparezca. > > > > ¿Me podeis ayudar? > > Este es mi simple codigo: > > > > <%*** Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" > > Inherits="Default3" %> > > > > <!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 runat="server"> > > <title>Página sin tÃ***tulo</title> > > <script type="text/javascript"> > > > > function pageLoad() { > > } > > > > </script> > > </head> > > <body> > > <form id="form1" runat="server"> > > <div> > > <asp:ScriptManager ID="ScriptManager1" runat="server" /> > > <br /> > > </div> > > <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> > > <br /> > > <br /> > > <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> > > <br /> > > <br /> > > <asp:Button ID="Button1" runat="server" Text="Button" Width="242px" /> > > <br /> > > <br /> > > <br /> > > </form> > > </body> > > > > Muchas gracias > > |
| |||
| Hola, Si lo meto todo en un update panel me pasa lo que os comentaba al principio del post, que no puedo crear el control dentro de este updatepanel, lo arrastro y no me aparece nada. Saludos "elgoog" wrote: > Hola, > > Prueba a meterlo todo en un UpdatePanel > > On 24 oct, 11:26, "Alberto S.H." <albertos...***hotmail.con> wrote: > > Hola a todos, > > > > Trabajo con VS 2008. Estoy empezando con el Ajax y casi tambien con .net. > > Intento seguir los videos con ejemplos que hay enwww.asp.net. > > En un formuladio web ajax que he creado tengo un textbox, un label y un > > button (de las herramientas estandar). Intento agregar un > > ConfirmButtonExtender y por mas que lo cojo del cuadro de herramientas e > > intento ponerlo en el webForm no hay manera de que me aparezca. > > > > ¿Me podeis ayudar? > > Este es mi simple codigo: > > > > <%*** Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" > > Inherits="Default3" %> > > > > <!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 runat="server"> > > <title>Página sin tÃ***tulo</title> > > <script type="text/javascript"> > > > > function pageLoad() { > > } > > > > </script> > > </head> > > <body> > > <form id="form1" runat="server"> > > <div> > > <asp:ScriptManager ID="ScriptManager1" runat="server" /> > > <br /> > > </div> > > <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> > > <br /> > > <br /> > > <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> > > <br /> > > <br /> > > <asp:Button ID="Button1" runat="server" Text="Button" Width="242px" /> > > <br /> > > <br /> > > <br /> > > </form> > > </body> > > > > Muchas gracias > > |
| |||
| Hola Alberto: Asi es: Mira el error te esta saliendo porque no encuentra la referencia del dll, para ello has lo siguiente: Vete al solution Explorer y dabe haber un carpeta llamada bin, sino esta aun asi da clic ahi mismo boton derecho "add reference" buscas el componente "AjaxControlToolkit.dll", este supongo debe encontrarse en la ruta donde instalaste las extensiones de Ajax -- Salu2 Cordiales :-)) (""'·._.·L.I. Daniel Villa·._.·'"") "Alberto S.H." <Alberto S.H.***discussions.microsoft.com> wrote in message news:8B112375-1DBB-462B-94F5-69B4808543C3***microsoft.com... > Hola Daniel, > > Muchas gracias lo primero por tu código, he empezado un nuevo proyecto y > he > añadido tu codigo. > Lo que me pasa es que en la vista diseño me da el error > "error al crear el control - ConfirmButtonExtender1" > "Etiqueta de servidor 'ajaxToolkit:ConfirmButtonExtender' desconocida" > > Si me voy al html, bajo ajaxToolkit:ConfirmButtonExtender, me dice que "el > elemento ConfirmButtonExtender es desconocido". > > Se ve que hace falta agregar alguna referencia al proyecto. > > ¿sabeis cual? > > Gracias > > > > > "Daniel H. Villa" wrote: > >> Hola Alberto: >> >> Te mando un ejemplo esta es la parte del aspx >> >> <%*** Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" >> Inherits="_Default" %> >> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" >> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> >> <html xmlns="http://www.w3.org/1999/xhtml"> >> <head runat="server"> >> <title>Untitled Page</title> >> </head> >> <body> >> <form id="form1" runat="server"> >> <asp:ScriptManager ID="ScriptManager1" runat="server" /> >> <div> >> <br /> >> <asp:Label ID="Label1" runat="server" >> Width="273px"></asp:Label><br /> >> <br /> >> <asp:Button ID="Button1" runat="server" >> OnClick="Button1_Click" >> Text="Button" Width="175px" /> >> <ajaxToolkit:ConfirmButtonExtender >> ID="ConfirmButtonExtender1" >> runat="server" TargetControlID="Button1" ConfirmText="Are you sure you >> want >> to submit ??"> >> </ajaxToolkit:ConfirmButtonExtender> >> </div> >> </form> >> </body> >> </html> >> >> >> Aqui esta el codigo c# >> >> using System; >> using System.Data; >> using System.Configuration; >> using System.Web; >> using System.Web.Security; >> using System.Web.UI; >> using System.Web.UI.WebControls; >> using System.Web.UI.WebControls.WebParts; >> using System.Web.UI.HtmlControls; >> >> public partial class _Default : System.Web.UI.Page >> { >> protected void Button1_Click(object sender, EventArgs e) >> { >> Label1.Text = "Text from the serverside."; >> } >> } >> >> >> Y por ultimo tu Web.config >> >> >> <?xml version="1.0"?> >> <configuration> >> <configSections> >> <sectionGroup name="system.web.extensions" >> type="System.Web.Configuration.SystemWebExtensions SectionGroup, >> System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35"> >> <sectionGroup name="scripting" >> type="System.Web.Configuration.ScriptingSectionGro up, >> System.Web.Extensions, >> Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> >> <section name="scriptResourceHandler" >> type="System.Web.Configuration.ScriptingScriptReso urceHandlerSection, >> System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35" requirePermission="false" >> allowDefinition="MachineToApplication"/> >> <sectionGroup name="webServices" >> type="System.Web.Configuration.ScriptingWebService sSectionGroup, >> System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35"> >> <section name="jsonSerialization" >> type="System.Web.Configuration.ScriptingJsonSerial izationSection, >> System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35" requirePermission="false" >> allowDefinition="Everywhere"/> >> <section name="profileService" >> type="System.Web.Configuration.ScriptingProfileSer viceSection, >> System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35" requirePermission="false" >> allowDefinition="MachineToApplication"/> >> <section name="authenticationService" >> type="System.Web.Configuration.ScriptingAuthentica tionServiceSection, >> System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35" requirePermission="false" >> allowDefinition="MachineToApplication"/> >> </sectionGroup> >> </sectionGroup> >> </sectionGroup> >> </configSections> >> <system.web> >> <pages> >> <controls> >> <add tagPrefix="asp" namespace="System.Web.UI" >> assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35"/> >> <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" >> tagPrefix="ajaxToolkit"/> >> </controls> >> </pages> >> <!-- >> Set compilation debug="true" to insert debugging >> symbols into the compiled page. Because this >> affects performance, set this value to true only >> during development. >> --> >> <compilation debug="true"> >> <assemblies> >> <add assembly="System.Web.Extensions, Version=1.0.61025.0, >> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> >> <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, >> PublicKeyToken=B03F5F7F11D50A3A"/> >> <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, >> Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies> >> </compilation> >> <httpHandlers> >> <remove verb="*" path="*.asmx"/> >> <add verb="*" path="*.asmx" validate="false" >> type="System.Web.Script.Services.ScriptHandlerFact ory, >> System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35"/> >> <add verb="*" path="*_AppService.axd" validate="false" >> type="System.Web.Script.Services.ScriptHandlerFact ory, >> System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35"/> >> <add verb="GET,HEAD" path="ScriptResource.axd" >> type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, >> Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" >> validate="false"/> >> </httpHandlers> >> <httpModules> >> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, >> System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35"/> >> </httpModules> >> </system.web> >> <system.web.extensions> >> <scripting> >> <webServices> >> <!-- Uncomment this line to customize maxJsonLength and add a custom >> converter --> >> <!-- >> <jsonSerialization maxJsonLength="500"> >> <converters> >> <add name="ConvertMe" >> type="Acme.SubAcme.ConvertMeTypeConverter"/> >> </converters> >> </jsonSerialization> >> --> >> <!-- Uncomment this line to enable the authentication service. >> Include >> requireSSL="true" if appropriate. --> >> <!-- >> <authenticationService enabled="true" requireSSL = "true|false"/> >> --> >> <!-- Uncomment these lines to enable the profile service. To allow >> profile properties to be retrieved >> and modified in ASP.NET AJAX applications, you need to add >> each >> property name to the readAccessProperties and >> writeAccessProperties attributes. --> >> <!-- >> <profileService enabled="true" >> readAccessProperties="propertyname1,propertyname2" >> writeAccessProperties="propertyname1,propertyname2 " >> /> >> --> >> </webServices> >> <!-- >> <scriptResourceHandler enableCompression="true" >> enableCaching="true" >> /> >> --> >> </scripting> >> </system.web.extensions> >> <system.webServer> >> <validation validateIntegratedModeConfiguration="false"/> >> <modules> >> <add name="ScriptModule" preCondition="integratedMode" >> type="System.Web.Handlers.ScriptModule, System.Web.Extensions, >> Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> >> </modules> >> <handlers> >> <remove name="WebServiceHandlerFactory-Integrated"/> >> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" >> preCondition="integratedMode" >> type="System.Web.Script.Services.ScriptHandlerFact ory, >> System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35"/> >> <add name="ScriptHandlerFactoryAppServices" verb="*" >> path="*_AppService.axd" preCondition="integratedMode" >> type="System.Web.Script.Services.ScriptHandlerFact ory, >> System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35"/> >> <add name="ScriptResource" preCondition="integratedMode" >> verb="GET,HEAD" >> path="ScriptResource.axd" >> type="System.Web.Handlers.ScriptResourceHandler, >> System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, >> PublicKeyToken=31bf3856ad364e35"/> >> </handlers> >> </system.webServer> >> </configuration> >> >> >> Pruebalo, estudialo y comentas como te fue >> >> >> -- >> Salu2 Cordiales :-)) >> >> (""'·._.·L.I. Daniel Villa·._.·'"") >> >> >> >> "Alberto S.H." <albertoshsh***hotmail.con> wrote in message >> news:eXsB3NcNJHA.588***TK2MSFTNGP06.phx.gbl... >> > Hola a todos, >> > >> > Trabajo con VS 2008. Estoy empezando con el Ajax y casi tambien con >> > .net. >> > Intento seguir los videos con ejemplos que hay en www.asp.net. >> > En un formuladio web ajax que he creado tengo un textbox, un label y un >> > button (de las herramientas estandar). Intento agregar un >> > ConfirmButtonExtender y por mas que lo cojo del cuadro de herramientas >> > e >> > intento ponerlo en el webForm no hay manera de que me aparezca. >> > >> > ¿Me podeis ayudar? >> > Este es mi simple codigo: >> > >> > <%*** Page Language="VB" AutoEventWireup="false" >> > CodeFile="Default3.aspx.vb" >> > Inherits="Default3" %> >> > >> > <!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 runat="server"> >> > <title>Página sin título</title> >> > <script type="text/javascript"> >> > >> > function pageLoad() { >> > } >> > >> > </script> >> > </head> >> > <body> >> > <form id="form1" runat="server"> >> > <div> >> > <asp:ScriptManager ID="ScriptManager1" runat="server" /> >> > <br /> >> > </div> >> > <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> >> > <br /> >> > <br /> >> > <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> >> > <br /> >> > <br /> >> > <asp:Button ID="Button1" runat="server" Text="Button" Width="242px" >> > /> >> > <br /> >> > <br /> >> > <br /> >> > </form> >> > </body> >> > >> > Muchas gracias >> > >> >> >> |
| |
| |
![]() |
| Herramientas | |
| Desplegado | |
| |
Temas Similares | ||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Mala experiencia comprando recambios en OSCARO | Rafael | Newsgroup es.charla.motor | 13 | 19-11-2008 17:58:48 |
| Después de una mala experiencia biene lo bueno | economica | Newsgroup es.charla.economia.bolsa | 0 | 23-10-2008 14:12:39 |
| Mala experiencia con Motonáutica Gijón | NachoSG | Newsgroup es.charla.moteros | 10 | 11-02-2008 11:24:25 |
| La mala experiencia de un amigo | Román | Newsgroup es.rec.deportes.aventura | 24 | 13-08-2007 09:09:23 |