ServiceRefence et ScriptReference avec RAZOR
Bonjour,
Je voudrai traduire le code suivant (aspx) vers une page RAZOR.
Sachant qu'en razor on a ni ScriptManager , ni UpdatePanel
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
|
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="http://localhost:2772/Transition.svc" />
</Services>
<Scripts>
<asp:ScriptReference Path="~/Scripts/Chat/TransitionBox.js" />
</Scripts>
</asp:ScriptManager>
<fieldset>
<legend>Control Panel</legend>
<asp:Panel runat="server" ID="PnlControlPanel" Style="padding: 10px;">
<asp:Label ID="lblAlias" runat="server" Text="your alias:"></asp:Label><asp:TextBox
ID="txtAlias" runat="server" Width="80px"></asp:TextBox>
<asp:Button ID="btnShowTransitionForm" runat="server" OnClientClick="fnShowTransitionForm();return false;"
Text="Create Transition" />
</asp:Panel>
</fieldset>
<fieldset>
<legend>Transition List</legend>
<asp:Panel runat="server" ID="PnlTransitionList" Style="padding: 10px;">
<table id="tblTransitionList" cellpadding="3" cellspacing="0" border="1" style="text-align: center">
</table>
</asp:Panel>
</fieldset> |