|
thanks for reply.
Rahul, if possible recheck the formating of code that where you post your code for word file creation . its totaly destroying the strcuture !!!!
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Ya its totally destroy structure?
Ok i am posting another code in that code i am generating document
from datagrid. See this in that post. I am editing existing code.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Hi all
I have a login form(user name and password) that reads its data from a database, I need to check the password textbox letters case, e.g. if the user wrote "admin" it will be different than "ADMIN"...
Is there is any function to do that?
Regards...
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
use Regx !
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
How to do that sir...
Regards
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
Hi, I have written a Custom function for that. let me know if it work for you
public bool IsInputMatch(string UserInput, string DataBaseInput)<br />
{<br />
if(Regex.IsMatch(UserInput,DataBaseInput))<br />
return true;<br />
else<br />
return false; <br />
<br />
}
now if you use
if(IsInputMatch("AdMiN", "ADMIN"))<br />
MessageBox.Show("Valid User");<br />
else<br />
MessageBox.Show("InValid User");
Output : InValid User
and for this
if(IsInputMatch("ADMIN", "ADMIN"))<br />
MessageBox.Show("Valid User");<br />
else<br />
MessageBox.Show("InValid User");
Output : Valid User
----
Let me know when done !!! Good luck !!!!
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Very convenient. You can make a password that matches many different strings...
These all show "true":
MessageBox.Show(IsInputMatch("Anything that you like", ".*"));
MessageBox.Show(IsInputMatch("I mean anything", ".*"));
MessageBox.Show(IsInputMatch("Really whatever you want", ".*"));
MessageBox.Show(IsInputMatch("", "(hello)?"));
MessageBox.Show(IsInputMatch("hello", "(hello)?"));
MessageBox.Show(IsInputMatch("asdf", "...."));
MessageBox.Show(IsInputMatch("1234", "...."));
MessageBox.Show(IsInputMatch("baad", "...."));
MessageBox.Show(IsInputMatch("oops", "...."));
MessageBox.Show(IsInputMatch("1234", "\\d+"));
MessageBox.Show(IsInputMatch("0", "\\d+"));
MessageBox.Show(IsInputMatch("987489792364587634582345983745", "\\d+"));
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanks Abhijit. The same which i would like to post as my next question........ good nour123... me too need a solution for this... HELP US . - KARAN. can i get a simple example?
|
|
|
|
|
Hi, I have written a Custom function for that. let me know if it work for you
<code>
public bool IsInputMatch(string UserInput, string DataBaseInput)
{
if(Regex.IsMatch(UserInput,DataBaseInput))
return true;
else
return false;
}</code>
now if you use
if(IsInputMatch("AdMiN", "ADMIN"))
MessageBox.Show("Valid User");
else
MessageBox.Show("InValid User");
Output : InValid User
and for this
if(IsInputMatch("ADMIN", "ADMIN"))
MessageBox.Show("Valid User");
else
MessageBox.Show("InValid User");
Output : Valid User
----
Let me know when done !!! Good luck !!!!
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
THANKS YAAR!
|
|
|
|
|
you are welcome !!!!
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Thanks alot...
It works
Love you
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
welcome !!! if you like the ans then you should vote for them !!!
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Thanks yaar. And let me know how to disable the "COPY" option while user select the password and right click on it?
|
|
|
|
|
John Sundar wrote: And let me know how to disable the "COPY" option while user select the password and right click on it
it is very ease in windows just set
Textbox1.ShortcutsEnabled=false and use own ContextmenuStrip.
but i am not sure about asp.net . i have to check !!!
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
hi jonh , if you use html passwordtext box , it should not allow copy !!!
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
S..thanks.. i implemented it.... below there are two questions posted by me... if possible, help me plz. thanks in advance..........
|
|
|
|
|
currently i m using ASP.NET with C# (.net 2003, 1.1 framework).
i have placed a calendar in my webform (calendar from toolbox --> calendar)
when i press the ESC key, the calendar should get INVISIBLE... how to do this?
help me. - KARAN
|
|
|
|
|
No pals here to answer this question in this site?
|
|
|
|
|
how to implement "thread" concept? And i like to CATCH or LOCK a integer value in my program so that this value should not reflect in database by other users (since more number of users may access my program) until the the LOCK gets UNLOCK. how to implement this... help me....
|
|
|
|
|
No pals here to answer this question in this site?
|
|
|
|
|
I have a Web Form in which, a date field is there. A small picture is there, and i want when the user clicks on the picture, a calender control should popup on the contents of the page bellow the picture clicked. I used the div and inside it i put the calender control and set the visibility to hidden of the div.
How can i show the calender control when the picture is clicked.
Any Advice will greatly help. Thanks in advance.
Sekhar
|
|
|
|
|
i) In imagebutton click event you can show the div
ii) In calender control, after selecting the date you can close the div.
iii) Otherwise keep another image button for closing the div
Warm Regards
|
|
|
|
|
Thanks Jaysaran for your reply.
Can you tell me how can i refer to the div in the code window. Can u write few lines for this.
Thanks in advance.
Sekhar
|
|
|
|
|
you can set display property to "none" for hide the div & "block" for show the div. (Don't use Visiblity.)
Best Regards
|
|
|
|