here I have written the code to generate the auto generated password
runat=”server” onclick=”btnpassword_Click” Text=”Generate Password” />
And you have to give the Microsoft. Visual basic reference to that particular project.
After that press F5 you will see the auto generated password for every button click
I think this code will help you.