-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Nhibernate & Ajax
PostPosted: Tue Jul 03, 2007 9:08 am 
Newbie

Joined: Wed Jun 20, 2007 6:16 am
Posts: 6
Hi,

First, escuse me for my language, I'm french guy.

My UserControls Description:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Vignette.ascx.cs" Inherits="Vignette" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.SqlClient" %>
<%@ import Namespace="System.Drawing" %>

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" >
<ContentTemplate>
<div style="border:solid 1px black; width:805px;">
<asp:Panel ID="entete" runat="server" BackColor="LightSkyBlue" Height="25px" Width="805px">
<asp:CheckBox ID="selection" runat="server" />
<asp:Label ID="titre" runat="server" Text=""></asp:Label>
<asp:Label ID="disponibilité" runat="server" CssClass="dispo" Text="Disponible" Font-Bold="True" ForeColor=""></asp:Label>
<asp:Button ID="Button1" runat="server" CssClass="v_boutton1" Text="Plier" OnClick="Button1_Click" />
<asp:Button ID="Button2" runat="server" CssClass="v_boutton2" Text="Deplier" OnClick="Button2_Click" /></asp:Panel>
<asp:Panel ID="corps" runat="server" BackColor="AliceBlue" Height="100%" Width="805px">

<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate >
<table>
<tr>
<td> <%# DataBinder.Eval(Container.DataItem, "Creation")%> </td>
<td> <%# DataBinder.Eval(Container.DataItem, "Destruction") %> </td>
<td> <%# DataBinder.Eval(Container.DataItem, "Designation") %> </td>
<td> <asp:ImageButton ID="ajout" runat="server" ImageUrl="~/App_Themes/Default/Images/images.jpg" OnClick="ajout_Click"/></td>
</tr>
</table>
</ItemTemplate>
</asp:Repeater>
</asp:Panel>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<br />




I do Nhibernate request in my Page_Load(), and One result equals One UserControl. The page_load of UserControl do Nhibernate request too.

When I click on one of buttons, the application do all request contains in page_load of the page and in page_load of the user controls But I don't want this.

How to go directly in the Click Event of the button ??

Or if your are another suggestions tell me please.



Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 03, 2007 10:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Jun 13, 2006 11:29 pm
Posts: 315
Location: Calgary, Alberta, Canada
This is not an NHibernate-related question. Please use the MSDN or ASP.NET forum.

_________________
Karl Chu


Top
 Profile  
 
 Post subject: try creating events in user control
PostPosted: Tue Jul 03, 2007 4:58 pm 
Newbie

Joined: Tue Jul 03, 2007 2:06 pm
Posts: 14
Location: Turkey, Ankara
Create custom events and raise them and make handle in the page then you can do wha you want.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.