Delving Deeper into Drag and Drop Programming in Microsoft ASP.NET AJAX - Coding the web page
(Page 3 of 5 )
In Step 1, we've only browsed the snapshot of the Default.aspx web page. Now, let's dig into its related coding.
First, we have to add the necessary references to the relevant script files --PreviewScript.js, PreviewDragDrop.js, and ShoppingCart.js, as well as the Web Service-ShoppingService written a moment ago:
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Microsoft.Web.Preview"
Name="PreviewScript.js" />
<asp:ScriptReference Assembly="Microsoft.Web.Preview"
Name="PreviewDragDrop.js" />
<asp:ScriptReference Path="ShoppingCart.js" />
</Scripts>
<Services>
<asp:ServiceReference Path="ShoppingService.asmx" />
</Services>
</asp:ScriptManager>
Next follows the related HTML element definitions, and for a beautiful look we use some CSS styles. That's all.
Next: Obtaining the list of the pets to sell via Web Service >>
More ASP.NET Articles
More By Xianzhong Zhu