Posts by Rodrigo Santos • 159 points
8 posts
-
1
votes1
answer260
viewsQ: How to call a class method in webforms code-Behind?
It is possible to call a class method in the webforms code-Behind? Default.aspx: <div class="row" style="margin: 50px"> <div class="col-md-6"> <asp:TextBox ID="txtElemento"…
-
1
votes1
answer45
viewsQ: How to make a LINQ query that returns the amount of people who were born per month?
I would like to make a LINQ query that returns the amount of people who were born in the month. In Mysql I do this query: SELECT COUNT(*) AS DataNacimento FROM pessoas WHERE MONTH (DataNascimento) =…
-
2
votes3
answers458
viewsQ: How to Update to Linq?
My project has the Delete method, only it definitely deletes the table record in the database. I would like to instead of delete, change the column record, I have a field called "Status", this field…
-
-1
votes2
answers124
viewsQ: How to verify that the email is already registered in the database?
The Controller is always returning the error message, when the email is registered or not in the database. [HttpPost] [ValidateAntiForgeryToken] public ActionResult Create([Bind(Include =…
-
2
votes1
answer839
viewsQ: How to call a modal in the View from the Controller Actionresult
To call a modal from the Controller’s Actionresult, after the user clicks the button to register? The controller is currently redirecting to the index page after the user registers. I want instead…
-
0
votes1
answer230
viewsQ: How to implement password encryption?
I want to implement password encryption in user registration. I found here in stackoverflow this post teaching how to use cryptography, but I’m in doubt where to add the code. This method should be…
-
4
votes1
answer618
viewsQ: Regular expression does not validate password when I type only numbers
I am using this regular expression to validate my password, the password must have only letters and numbers, must have at least a letter and a number. (Minimum 8 characters). I’m using that…
-
2
votes1
answer378
viewsQ: How to redirect user to a specific page after login
I am able to login by type of user: administrator or common. And I am using: [Authorize(Roles = "Administrator")] and [Authorize(Roles = "Common")] Inside the controllers I want to restrict by type…