Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

Can i access Web Services' Public variable in Client PC?

$
0
0
public string username, password, uType;
    bool access = false;

[WebMethod]
    public Boolean LoginAccess(string EmailTextBox, string PasswordTextBox)
    {
        conn.Open();

        SqlCommand comm = new SqlCommand("select username,upassword,uType from UserTble where username = '" + EmailTextBox + "'", conn);
        SqlDataReader reader = comm.ExecuteReader();

        while (reader.Read())
        {
            username = reader[0].ToString();
            password = reader[1].ToString();
            uType = reader[2].ToString();
        }

        ...

        return access;
    }





  protected void LoginArrowButton_Click(object sender, EventArgs e)
    {
        bool isAccess = LoginService.LoginAccess(EmailBox.Text, PasswordBox.Text);

        if (isAccess)
        {
            Response.Redirect("http://localhost:1403/Default.aspx");
        }else
        {

        }
    }

can i access uType varible of Web Service in Client PC? Kindly Help


Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>