Click here to Skip to main content
15,890,185 members

Comments by Masoud__Sh (Top 3 by date)

Masoud__Sh 6-Jan-17 16:52pm View    
ClientIDMode will keep ID as entered by designer. but i need to keep Button name like Button ID.
for example, asp:Button runat="server" ID="btnTest" at runtime comes to:
input type="submit" name="ctl00$ContentPlaceHolder$btnTest" id="btnTest"

but this is what i want: input type="button" name="btnTest" id="btnTest"

I did it by overriding NamingContainer as well like this article for .net 2.0:
http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/

this article will help to keep Button name Like it's ID in output:

input type='submit' name='btnTest' value='Button' onclick='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions('btnTest', '', true, '', '', false, false))' id='btnTest'

it's what i want and will make a tight control.
but the problem is when user clicks on this overrided button, the Click event will not fire. and i dont know where is the problem?
Masoud__Sh 18-Nov-16 12:07pm View    
thank you so much. i'm sorry for bad questioning. yes you're right. i'm sure about using PBKDF2-HMAC-SHA512. but something that i don't know is, why Mike's solution when i'm using SHA1 is faster than adriancs's solution in same algorithm, salt size, and iteration count? adriancs's algorithm takes something about 40 milliseconds but Mike's algorithm takes 3 milliseconds. and it's not logical for same values.
Thank you, Masoud
Masoud__Sh 18-Nov-16 12:00pm View    
thank you so much for your answer. and i'm so sorry for bad questioning. i edited my question. i'm not sure about using one library between two libraries linked above in my question.
Thank you and sorry for taking your time.