slt tout le monde j'ai crée un tableau qui segénére totu seul à partir d'une base de donnée, maintenant mon probleme c'est comment recupéré ces données. Mon tableau est de type table.
Lorsque je mets un asp button le page load qui intervient juste avant me perd totu le tableau je suis donc passé par un html button cependant je n'arrive pas à accèder à ma table :
voici la fonction javascript
la definition de la table
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 function CallSendFeedback() { WebTrialRun._Default.SendFeedBack(document.getElementById('tFormulaire'); }
et enfin ma fonction en ajax :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 <asp:Table ID="tFormulaire" BorderColor="red" runat="server"> </asp:Table>
il me genere une erreur "out of memory
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 [AjaxPro.AjaxMethod] public void SendFeedBack(Table tFeedBack) { Answer oAns = new Answer(); _ifeedBackid = (int)HttpContext.Current.Session["FeedBackIDWebTrialRun"]; for (int i = 0; i < tFeedBack.Rows.Count; i++) { if (tFeedBack.Rows[i].Attributes["type"] != null) { //verification du type de champs if (tFeedBack.Rows[i].Attributes["type"] == "txt") { //il s'agit d'un champ texte TextBox tb = ((TextBox)(tFeedBack.Rows[i].FindControl(tFeedBack.Rows[i].Attributes["identifiant"].ToString()))); oAns.iFeedbackId=_ifeedBackid; oAns.iQuestionId = int.Parse(tb.Attributes["question"]); oAns.sText = tb.Text; oAns.Commit(); } } } //Response.Write("<script> alert('meuh')</script>"); }
pouvez vous m'aidr
je vous remercie d'avance
Partager