Exemplo n.º 1
0
        public int getPages(string letter)
        {
            var myWS = new localhost.ws();

            var i = myWS.getPages(letter);

            return(Convert.ToInt32(i));
        }
Exemplo n.º 2
0
        public DataSet loadContacts(string pgLtr, int pgNum)
        {
            var myWS = new localhost.ws();

            DataSet ds = new DataSet();

            ds = myWS.getContacts(pgLtr, pgNum);

            return(ds);
        }
Exemplo n.º 3
0
        public void delContact()
        {
            try
            {
                var myWS = new localhost.ws();
                var i    = txtHdnDel.Value;

                myWS.delContact(i);
                lblStatus.InnerHtml = "Successfully removed contact.";
            }
            catch (Exception ex)
            {
                lblStatus.InnerHtml = ex.ToString();
            }
        }
Exemplo n.º 4
0
        public void saveContact()
        {
            try
            {
                var myWS = new localhost.ws();
                var i    = txtHdnSave.Value;

                myWS.saveContact(Request.Form["txtHdnSave"], Request.Form["txtFName" + i], Request.Form["txtLName" + i], Request.Form["txtEMail" + i], Request.Form["txtAddr1" + i], Request.Form["txtAddr2" + i], Request.Form["txtCity" + i], Request.Form["txtState" + i], Request.Form["txtZip" + i]);
                lblStatus.InnerHtml = "Successfully updated contact information.";
            }
            catch (Exception ex)
            {
                lblStatus.InnerHtml = "Error updating contact: " + ex.ToString();
            }
        }
Exemplo n.º 5
0
        public void addContact()
        {
            try
            {
                var myWS = new localhost.ws();
                var i    = txtHdnSave.Value;

                var result = myWS.addContact(Request.Form["txtFName" + i], Request.Form["txtLName" + i], Request.Form["txtEMail" + i], Request.Form["txtAddr1" + i], Request.Form["txtAddr2" + i], Request.Form["txtCity" + i], Request.Form["txtState" + i], Request.Form["txtZip" + i]);
                lblStatus.InnerHtml = "Successfully added new contact.";
            }
            catch (Exception ex)
            {
                lblStatus.InnerHtml = "Error adding contact: " + ex.ToString();
            }
        }