15,898,773 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by deepak.m.shrma (Top 28 by date)
deepak.m.shrma
23-Nov-12 4:06am
View
i updated the code please check it now. its working well i think.
deepak.m.shrma
22-Nov-12 22:38pm
View
Hmm. will you share what you xactly want to do.
deepak.m.shrma
22-Nov-12 5:29am
View
actually i do not use substring or contain method. i actually use .length property of the string. here in ist lin.
ie.
(comboBox1.Text.Length - comboBox1.Text.Trim().Length > 0)
i checked. whether textbox contain space start and ends of the text.
if text original length - removing start or end space > 0 its mean it contain space either start of the text or at end.
in 2nd line or check.
ie.
comboBox1.Text.Trim().Length - comboBox1.Text.Trim().Replace(" ", "").Length > 1)
i checked that text does not contain more than 2 space between its name and sir name.
simple.
deepak.m.shrma
21-Nov-12 5:46am
View
LOL.... :-P down voted. :-P
deepak.m.shrma
21-Nov-12 3:45am
View
will you post your whole htlm..it'll very easy to debug your core. where you loosing focus.
deepak.m.shrma
21-Nov-12 2:10am
View
nope its working.. try this.
<!DOCTYPE html>
<html>
<body>
<p id="demo">Onblur text will change.</p>
Try it <input type="text" id="EmpName" önblur="UpperCase1()"/>
<script type="text/javascript">
String.prototype.capsFirst=function()
{
return this.substr(0,1).toUpperCase()+ this.substr(1);
}
function UpperCase1()
{ alert("Hai");
var name = document.getElementById("EmpName").value;
document.getElementById("EmpName").value=name.trim().capsFirst();
}
</script>
</body>
</html>
example:
http://jsfiddle.net/4F7pH/2/
deepak.m.shrma
21-Nov-12 0:50am
View
hey buddy have you seen any dropdown list item disable. not naah.. cou can't, yaa you can show msg while a user select selected value. or reset when he select that value again.. in dropdown meaning itself its dropable items list :-) i hope you will get my point.
deepak.m.shrma
20-Nov-12 5:54am
View
Not a problem bro :-) n most welcom. :-)
deepak.m.shrma
20-Nov-12 4:35am
View
Most welcome yaar :-)
deepak.m.shrma
19-Nov-12 23:56pm
View
i updated solution now please check. its works same yaar... here its more imp how to deal with string not the element. its works for all element which deals with string :-) hope you will get my point.
deepak.m.shrma
18-Nov-12 23:24pm
View
yup!! it disable button bhvr.. that is what you want. Button default behavior is to submit form. that is what you mention in type=submit. you have to submit your form onclick event.
deepak.m.shrma
18-Nov-12 22:26pm
View
LOL.. :-D jst a silly mistake. every beginner face in starting :-)
deepak.m.shrma
18-Nov-12 22:25pm
View
Lol... :-P
deepak.m.shrma
16-Nov-12 2:17am
View
bro. ur using json as database here. dont you get it..
deepak.m.shrma
16-Nov-12 1:03am
View
bro i have updated code. please check it.
deepak.m.shrma
15-Nov-12 22:09pm
View
brother. that is what i said. you have to make a primary key for selecting values,
suppose yor database is something like this
2011 abc 100 5000
2011 abc 200 6000
2010 def 300 5000
2011 def 100 1000
if you select 2011as year, abc as make, you will get 2 row,
ist and second row. how could you show 2 row in single field palce. you have to handle that scenario. so that you can handle those situation.
deepak.m.shrma
13-Nov-12 9:33am
View
you can modify yar.. :-) i just take your idea n make this one...you can simly hide or do any thing..i canc uplaod folder here so i have to take online image to show some animation...
deepak.m.shrma
12-Nov-12 0:36am
View
no prob buddy :-) is this what you exactly needed or you have done something else...
deepak.m.shrma
9-Nov-12 5:51am
View
thnks but its not much clear or what i want..
deepak.m.shrma
9-Nov-12 5:50am
View
hi all, I want a grid. with tree view. where cell can be editable.
deepak.m.shrma
9-Nov-12 4:35am
View
if any tutorial or sample you can provide. it will very helpful to me.
deepak.m.shrma
9-Nov-12 4:34am
View
sir i have time i can create it. if i know how to do it. if any tutorial or sample you can provide. it will very helpful to me.
deepak.m.shrma
8-Nov-12 1:42am
View
please update what is not workin... attch ur aspx file code and.. it really helpful to debug.
deepak.m.shrma
7-Nov-12 21:54pm
View
welcome :-)
deepak.m.shrma
7-Nov-12 21:53pm
View
Welcome :-)
deepak.m.shrma
7-Nov-12 6:30am
View
its is to do ...
instead of $('.post span') write
$(this).find('span')
eg.
$(this).find('span').show();
deepak.m.shrma
7-Nov-12 3:06am
View
Please specify or illiterate your question. i have check with
if (textBox1.Text == "1")
MessageBox.Show("bingo");
its working fine.
deepak.m.shrma
5-Nov-12 22:41pm
View
@preet
$("input[type*='text']") gives you array of text, using 'each' method u can manipulate all textboxes.
ex.
$("input[type*='text']").each(function(count){
$(this).val('count = '+count);
});
Show More