Form to Web Service
-
Hi, all. I want to convert this form to a web service but my knowladge is not enough. Please help.
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Data.SqlClient; namespace AlbumViewer { /// /// Summary description for Form1. /// public class MainForm : System.Windows.Forms.Form { private System.Windows.Forms.PictureBox pictureBox; private System.Windows.Forms.MainMenu mainMenu; private System.Windows.Forms.MenuItem menuItem3; private System.Windows.Forms.TreeView treeAlbum; private System.Windows.Forms.MenuItem mnuFile; private System.Windows.Forms.MenuItem mnuOpen; private System.Windows.Forms.MenuItem mnuExit; private System.Windows.Forms.MenuItem mnuOptions; private System.Windows.Forms.MenuItem mnuSlideShow; private System.Data.SqlClient.SqlConnection sqlConn; private System.Windows.Forms.OpenFileDialog FileOpenDlg; private System.Windows.Forms.MenuItem mnuAddPhoto; private System.Windows.Forms.MenuItem mnuRenameAlbum; private System.Windows.Forms.MenuItem mnuDeleteAlbum; private System.Windows.Forms.ContextMenu mnuPhotoPopup; private System.Windows.Forms.MenuItem mnuRenamePhoto; private System.Windows.Forms.MenuItem mnuDeletePhoto; private System.Windows.Forms.ContextMenu mnuAlbumPopup; private System.Windows.Forms.MenuItem mnuNewAlbum; private System.Windows.Forms.TextBox txtDesc; private System.Windows.Forms.Button btnUpdate; private System.Windows.Forms.Label lblDesc; private System.Windows.Forms.MenuItem mnuEditDesc; private System.Windows.Forms.MenuItem mnuAlbumEdit; private System.Windows.Forms.MenuItem mnuPhotoEdit; private System.Windows.Forms.ContextMenu mnuImage; private System.Windows.Forms.MenuItem menuItem1; private System.Windows.Forms.MenuItem menuItem2; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.Run(new MainForm()); } public MainForm() { // // Required for Windows Form Designer support // InitializeComponent(); // Initaliaze the tree control LoadTree(); } /// /// Clean up any resources being used. /// protected override void Dispose( bool dispo
-
Hi, all. I want to convert this form to a web service but my knowladge is not enough. Please help.
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Data.SqlClient; namespace AlbumViewer { /// /// Summary description for Form1. /// public class MainForm : System.Windows.Forms.Form { private System.Windows.Forms.PictureBox pictureBox; private System.Windows.Forms.MainMenu mainMenu; private System.Windows.Forms.MenuItem menuItem3; private System.Windows.Forms.TreeView treeAlbum; private System.Windows.Forms.MenuItem mnuFile; private System.Windows.Forms.MenuItem mnuOpen; private System.Windows.Forms.MenuItem mnuExit; private System.Windows.Forms.MenuItem mnuOptions; private System.Windows.Forms.MenuItem mnuSlideShow; private System.Data.SqlClient.SqlConnection sqlConn; private System.Windows.Forms.OpenFileDialog FileOpenDlg; private System.Windows.Forms.MenuItem mnuAddPhoto; private System.Windows.Forms.MenuItem mnuRenameAlbum; private System.Windows.Forms.MenuItem mnuDeleteAlbum; private System.Windows.Forms.ContextMenu mnuPhotoPopup; private System.Windows.Forms.MenuItem mnuRenamePhoto; private System.Windows.Forms.MenuItem mnuDeletePhoto; private System.Windows.Forms.ContextMenu mnuAlbumPopup; private System.Windows.Forms.MenuItem mnuNewAlbum; private System.Windows.Forms.TextBox txtDesc; private System.Windows.Forms.Button btnUpdate; private System.Windows.Forms.Label lblDesc; private System.Windows.Forms.MenuItem mnuEditDesc; private System.Windows.Forms.MenuItem mnuAlbumEdit; private System.Windows.Forms.MenuItem mnuPhotoEdit; private System.Windows.Forms.ContextMenu mnuImage; private System.Windows.Forms.MenuItem menuItem1; private System.Windows.Forms.MenuItem menuItem2; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.Run(new MainForm()); } public MainForm() { // // Required for Windows Form Designer support // InitializeComponent(); // Initaliaze the tree control LoadTree(); } /// /// Clean up any resources being used. /// protected override void Dispose( bool dispo