how to restrict textbox with specific format using asp.net regular expression validator

I have text which is binded to asp.net regular expression validation. I want max length of character as 13 and want to have format like xx/xxxxx-xxxx This are valid formats 33/34567-1 33/12345-12 33/12345-123 33/12345-1234 I tried this <asp:TextBox ID="txt1" runat="server" OnTextChanged="txt1_TextChanged" class="textNormal" MaxLength="13" Width="100"></asp:TextBox> (xx/xxxxx-xxxx) <br /> <asp:RegularExpressionValidator ID="regexValidator1" runat="server" ErrorMessage="Must be in format xx/xxxxx-xxxx" … Read more

Compare password of current user with model property?

This might be a really dumb question (I’m new to ASP.NET). Anyways, I’m making a web application for practice that will manage students and their courses of a school. The information of the student’s courses, student id number, name, grade etc. will be stored on Student objects in the database. When an admin adds a … Read more

Will MSAL be able to maintain a token cache and refreshes tokens for you when they are close to expire in case of Custom REST API secured by Azure AD

Based on the documentation details for MSAL (Azure AD) mentioned at : https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/MSAL.NET-supports-multiple-application-architectures-and-multiple-platforms#msalnet-is-about-acquiring-tokens-not-protecting-an-api