[VB.NET] Liaison entre les pages aspx et vb
Bonjour,
Actuellement je possède une page en aspx qui contient deux autres pages apx.
Lorsque que je met du code dans le fichier vb de la page principal le debugger passe bien par la (page_load)
Je fais idem pour la premiere 'sous page' et la aussi aucun problème.
Mais si je fais la même chose avec la troisième page là cela ne fonctionne plus
La seule différence est que sur la dernière page j'utilise des IE Web Controls (onglets).
voici le code de la page
Code:
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
|
<%@ Page CodeBehind="bi-recherche2.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="HopitalBichat.bi_recherche2" %>
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<%@ import namespace="Microsoft.Web.UI.WebControls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>bi_recherche2</title>
<meta content="True" name="vs_snapToGrid">
<meta content="True" name="vs_showGrid">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie6" name="vs_targetSchema">
</HEAD>
<body background="file:///C:\Inetpub\wwwroot\HopitalBichat\images\fond-439.jpg" ms_positioning="GridLayout">
<TABLE height="488" cellSpacing="0" cellPadding="0" width="324" border="0" ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="324" height="488">
<form runat="server" ID="Form1">
<TABLE height="307" cellSpacing="0" cellPadding="0" width="476" border="0" ms_2d_layout="TRUE">
<TR>
<TD width="1" height="0"></TD>
<TD width="1" height="0"></TD>
<TD width="38" height="0"></TD>
<TD width="436" height="0"></TD>
</TR>
<TR vAlign="top">
<TD height="40"></TD>
<TD colSpan="3"><iewc:tabstrip id="MyTab" runat="server" Width="216px" TargetID="MultiPage1" TabDefaultStyle="background-color:#E8EBF2;"
TabSelectedStyle="background-color:#E8EBF2;" SepDefaultStyle="background-color:#E8EBF2;" SepHoverStyle="background-color:#E8EBF2;"
SepSelectedStyle="background-color:#E8EBF2;" TabHoverStyle="background-color:#E8EBF2;">
<iewc:Tab DefaultImageUrl="images\bssctab2.gif" SelectedImageUrl="images\bssctab1.gif"></iewc:Tab>
<iewc:TabSeparator></iewc:TabSeparator>
<iewc:Tab DefaultImageUrl="images\bssctab4.gif" SelectedImageUrl="images\bssctab3.gif"></iewc:Tab>
<iewc:TabSeparator></iewc:TabSeparator>
<iewc:Tab DefaultImageUrl="images\bssctab22.gif" SelectedImageUrl="images\bssctab11.gif"></iewc:Tab>
<iewc:TabSeparator></iewc:TabSeparator>
</iewc:tabstrip></TD>
</TR>
<TR vAlign="top">
<TD colSpan="2" height="152"></TD>
<TD colSpan="2"><iewc:multipage id="MultiPage1" runat="server" Width="472px" Height="150px">
<iewc:PageView>
<table>
<TR>
<td>
<asp:label id="Label2" runat="server" Width="32px" Height="24px" Font-Bold="True">BAT</asp:label>
<asp:dropdownlist id="DropDownList1" runat="server" Width="160px" Height="24px"></asp:dropdownlist>
</td>
</TR>
<tr>
<td>
<asp:label id="Label1" runat="server" Width="32px" Height="24px" Font-Bold="True">ETG</asp:label>
<asp:dropdownlist id="DropDownList2" runat="server" Width="160px" Height="24px"></asp:dropdownlist>
</td>
</tr>
<tr>
<td>
<asp:label id="Label3" runat="server" Width="32px" Height="24px" Font-Bold="True">SCT</asp:label>
<asp:DropDownList id="DropDownList4" runat="server" Width="160px" Height="24px"></asp:DropDownList>
</td>
</tr>
<tr>
<td>
<asp:Label id="Label4" runat="server" Width="32px" Height="24px" BorderStyle="None" Font-Bold="True">Local</asp:Label>
<asp:TextBox id="TextBox1" runat="server" Width="153px"></asp:TextBox>
</td>
</tr>
</table>
</iewc:PageView>
<iewc:PageView>
<table>
<TR>
<td></td>
</TR>
</table>
</iewc:PageView>
<iewc:PageView>
<table>
<TR>
<td></td>
</TR>
</table>
</iewc:PageView>
</iewc:multipage></TD>
</TR>
<TR vAlign="top">
<TD colSpan="3" height="115"></TD>
<TD>
<table height="114" width="137">
<tr vAlign="top">
<td><INPUT onclick="destination(this)" type="image" src="images/fraSearch.gif" name="validation">
<tr valign="top">
<td><INPUT onclick="RAZ()" type="image" src="images/fraClear.gif" name="raz">
<tr valign="top">
<td>
<input type="image" name="consultation" src="images/DemAtt.gif" onclick="destination(this)">
<tr valign="top">
<td>
<input type="image" name="terminees" src="images/Dmdtermin.gif" onclick="destination(this)"></td>
</tr>
</table>
</TD>
</TR>
</TABLE>
</form>
</TD>
</TR>
</TABLE>
</body>
</HTML> |
Merci
Re: [ASPX][VB.net] [Debutant] Liaison entre les pages aspx e
Citation:
Envoyé par cosmos38240
Bonjour,
Actuellement je possède une page en aspx qui contient deux autres pages apx.
Lorsque que je met du code dans le fichier vb de la page principal le debugger passe bien par la (page_load)
Je fais idem pour la premiere 'sous page' et la aussi aucun problème.
Mais si je fais la même chose avec la troisième page là cela ne fonctionne plus
La seule différence est que sur la dernière page j'utilise des IE Web Controls (onglets).
Je n'ai pas bien compris la question...
Elles sont ou les deux autres pages?
Un petit conseil, évites le GridLayout pour une page Web, c'est pas top. Il vaut mieux mettre directement FlowLayout.