Welcome To My Agenda

Win 11 Issue - Shutdown at first booting


Hello,

i want to share lately got problem at first boot with windows 11 it suddenly turn off (shutdown) and that always every day when booting the pc. I try this setting and its working. 




Set off "Link State Power Management" .



Windows 10 - Stuck in Loop Asking Change PIN

 Hello, 


If you have problem with change PIN in windows 10 and have looping procedure to change it. 

You can do the step

1. Tick box in the file explorer View tab to Show Hidden Files

2. Browse to 

C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc

Delete or Rename it this folder to reset the PIN.

you may need take ownership of the folder 

https://www.tenforums.com/tutorials/3841-add-take-ownership-context-menu-windows-10-a.html

once you delete or rename the folder it recreate it so you can add a PIN normally in Windows Settings > Accounts > Sign In Options. You need to restart the PC first.

If you still have the problem, it seems the windows too corrupted be fixed. Just re-install to save your time :)


Good Luck Agent !!!

How To Enable Extension Intl in XAMPP

 1. Stop the running service at XAMPP Control Panel

2. Open php.ini and find ;extension=intl


3. Remove ; (semicolon)


4. Restart the service and start again.
5. Done




ASP.Net - Use Regular Expression Validators

How to use regular expression validator with ASP.Net


Maximum character length Validation (Maximum 6 characters allowed)

01
02
03
04
05
06
07
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1"
Display = "Dynamic"
ControlToValidate = "TextBox1"
ValidationExpression = "^[\s\S]{0,6}$"
ErrorMessage="Maximum 6 characters allowed.">
</asp:RegularExpressionValidator>

Minimum character length Validation (Minimum 6 characters required)

01
02
03
04
05
06
07
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator2"
Display = "Dynamic"
ControlToValidate = "TextBox2"
ValidationExpression = "^[\s\S]{6,}$"
ErrorMessage="Minimum 6 characters required.">
</asp:RegularExpressionValidator>

Minimum and Maximum character length Validation (Minimum 2 and Maximum 6 characters required)

01
02
03
04
05
06
07
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator3"
Display = "Dynamic"
ControlToValidate = "TextBox3"
ValidationExpression = "^[\s\S]{2,6}$"
ErrorMessage="Minimum 2 and Maximum 6 characters required.">
</asp:RegularExpressionValidator>

Alphanumeric with special Characters
Minimum length 7 and Maximum length 10. Characters allowed – a – z A – Z 0-9 ’@ & # .

01
02
03
04
<asp:RegularExpressionValidator ID="RegExp1" runat="server"
ErrorMessage="Password length must be between 7 to 10 characters"
ControlToValidate=" txtPassword "
ValidationExpression="^[a-zA-Z0-9'@&#.\s]{7,10}$" />

Alphanumeric Only
Minimum length 7 and Maximum length 10. Characters allowed – a – z A – Z 0-9

01
02
03
04
<asp:RegularExpressionValidator ID="RegExp1" runat="server"
ErrorMessage="Password length must be between 7 to 10 characters"
ControlToValidate=" txtPassword "
ValidationExpression="^[a-zA-Z0-9\s]{7,10}$" />

Alphabets Only
Minimum length 7 and Maximum length 10. Characters allowed – a – z A – Z

01
02
03
04
<asp:RegularExpressionValidator ID="RegExp1" runat="server"
ErrorMessage="Password length must be between 7 to 10 characters"
ControlToValidate="txtPassword"
ValidationExpression="^[a-zA-Z]{7,10}$" />

Numeric Only
Minimum length 7 and Maximum length 10. Characters allowed – 0 – 9

01
02
03
04
<asp:RegularExpressionValidator ID="RegExp1" runat="server"
ErrorMessage="Password length must be between 7 to 10 characters"
ControlToValidate="txtPassword"
ValidationExpression="^[0-9]{7,10}$" />

source: source here