Nodals
Nodals
CC#
Created by Nodals on 6/12/2024 in #help
website problem: update and permmisson
yeah lol
31 replies
CC#
Created by Nodals on 6/12/2024 in #help
website problem: update and permmisson
yeah it is
31 replies
CC#
Created by Nodals on 6/12/2024 in #help
website problem: update and permmisson
it pretty much is filled with a bunch of webforms conncted to each other
31 replies
CC#
Created by Nodals on 6/12/2024 in #help
website problem: update and permmisson
oh man well thanks for the help anyway.
31 replies
CC#
Created by Nodals on 6/12/2024 in #help
website problem: update and permmisson
all of them are written is webform.aspx and in each page there is a topnav to connect them
31 replies
CC#
Created by Nodals on 6/12/2024 in #help
website problem: update and permmisson
this is the update page : protected void Page_Load(object sender, EventArgs e) { string filname = "MyDB.mdf"; string select = "SELECT * FROM users WHERE usern ='" + Session["status"].ToString() + "'"; DataTable table = MyAdoHelper.ExecuteDataTable(filname, select); int len = table.Rows.Count; if (len > 0) { globalusername = table.Rows[0]["usern"].ToString(); globalpassword = table.Rows[0]["userpass"].ToString(); } if (Request.Form["updateuser"] != null)//did you update? { string umameupdate = Request.Form["uname"].ToString(); string passwordupdate = Request.Form["upass"].ToString(); string updateq = "UPDATE users SET "; updateq += "usern='" + umameupdate + "'"; updateq += ",userpass='" + passwordupdate + "'"; updateq += "WHERE usern='" + Session["status"].ToString() + "'"; MyAdoHelper.DoQuery(filname, updateq); Response.Write("Update!"); Response.Redirect("HomePage.aspx"); } }
31 replies
CC#
Created by Nodals on 6/12/2024 in #help
website problem: update and permmisson
this is the other second behind code: protected void Page_Load(object sender, EventArgs e) {
if (Session["status"] == null) { Response.Redirect("Error.aspx"); } }
31 replies
CC#
Created by Nodals on 6/12/2024 in #help
website problem: update and permmisson
this is the 1 of the 2 pages behind code the i want to only give logged in users to enter: if(Request.IsAuthenticated == true ) { } else { Response.Redirect(Request.Url.ToString()); }
31 replies
CC#
Created by Nodals on 6/12/2024 in #help
website problem: update and permmisson
atm Im just learining the information because im stil new at this
31 replies
CC#
Created by Nodals on 6/12/2024 in #help
website problem: update and permmisson
I did try the [Authorize] way but i could be just wrting it worng sense it wont work but also not show me any erorrs too
31 replies