16,015,755 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 .NET 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 Member 12652110 (Top 33 by date)
Member 12652110
6-Aug-16 12:20pm
View
oops my bad
Member 12652110
6-Aug-16 12:14pm
View
its not exam it was a project
I now realised that the flow was off for my validation thanks again if you could help
Member 12652110
6-Aug-16 12:10pm
View
^((\d{1})*|([1-9]\d{0,1}))(\.\d{0,2})?
Tried this but doesnt work
Member 12652110
6-Aug-16 11:56am
View
could you help me out as i am a student and my deadline is tmr
Member 12652110
6-Aug-16 11:55am
View
but it wont show error message
Member 12652110
6-Aug-16 11:54am
View
i tried
<asp:TextBox ID="txtrate" runat="server" onkeypress="if(event.keyCode<48 || event.keyCode>57)event.returnValue=false;" MaxLength="4">
<asp:RequiredFieldValidator id="RequiredFieldValidator5" runat="server" ErrorMessage="Rate is required!" ControlToValidate="txtrate" />
<asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1"
ValidationExpression="^((\d{1})*|([1-9]\d{0,1}))(\.\d{0,2})?$"
ControlToValidate="txtrate" Text="Input must be 123456.78 format."
Display="Dynamic" />
Member 12652110
6-Aug-16 10:15am
View
i want to validate that to limit to a digit before decimal point and two digits after decimal point
Member 12652110
6-Aug-16 6:15am
View
but im trying to convert it into dd/mm/yyyy
Member 12652110
29-Jul-16 11:54am
View
i got 1
Member 12652110
29-Jul-16 11:54am
View
i have this method
if (e.Row.RowType == DataControlRowType.Header)
{
foreach (TableCell cell in e.Row.Cells)
{
int c = cell.Controls.Count;
LinkButton lbSort = (LinkButton)cell.Controls[1];
if (lbSort.Text == GridView1.SortExpression)
{
if (GridView1.SortDirection == SortDirection.Ascending)
lbSort.Text += imgAsc;
else
lbSort.Text += imgDes;
}
}
}
Member 12652110
29-Jul-16 10:51am
View
3 doesnt work
Member 12652110
29-Jul-16 10:50am
View
int a = Controls.Count;
a= 0 and count = 3?
What should i put then
Member 12652110
29-Jul-16 10:06am
View
how do i do it?
Member 12652110
28-Jul-16 21:39pm
View
2013
Member 12652110
28-Jul-16 12:08pm
View
Whenn i click on car, few values will show up in second dropdownlist.
But when i click on select, second dropdownlist sholud be disabled but so far no luck
Member 12652110
28-Jul-16 9:52am
View
oops so sorry it actually works
Member 12652110
28-Jul-16 9:50am
View
It still does not work
Member 12652110
28-Jul-16 9:35am
View
it works perfectly
Member 12652110
28-Jul-16 9:35am
View
thank you
Member 12652110
26-Jul-16 4:41am
View
textbox takes in value of tinymce format
Member 12652110
26-Jul-16 4:40am
View
<script type="text/javascript" src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: 'textarea',
height: 300,
width: 100,
max_height: 500,
max_width: 500,
right:100,
menubar: false,
statusbar: false,
toolbar: false,
readonly : true,
content_css: [
'//fast.fonts.net/cssapi/e6dc9b99-64fe-4292-ad98-6974f93cd2a2.css',
'//www.tinymce.com/css/codepen.min.css'
]
});
</script>
Member 12652110
26-Jul-16 3:38am
View
No length but i used .count and worked perfectly.
Member 12652110
25-Jul-16 21:18pm
View
I took the list from the class file and they said the class contains no definition for 'Length'
Member 12652110
25-Jul-16 21:16pm
View
still same error
Member 12652110
25-Jul-16 21:16pm
View
not working
Member 12652110
25-Jul-16 10:03am
View
Below is the class file where i instantiate dropdown list
Member 12652110
25-Jul-16 8:24am
View
Existing gridview meaning the one which is able to use delete
Member 12652110
25-Jul-16 8:23am
View
i have a admin site where one of the roles is to update loan applications. Hence they are also able to delete. I want a conditional delete where only when there are no loans which are applied for that they can then delete. Hence it does not make any sense to put two gridviews in a page. Hence I decided to retrieve from the database and compare it with the existing gridview. I have tried to use the code above but unfortunately, there is an error. So I was wondering if you could help me solve?
Member 12652110
25-Jul-16 7:36am
View
It gives an error saying loanType1 does not exist in the current context
Member 12652110
25-Jul-16 7:35am
View
<pre lang="C#">string Id = this.GridView1.Rows[e.RowIndex].Cells[0].Text.Trim();
string loanType = this.GridView1.Rows[e.RowIndex].Cells[1].Text.Trim();
string loanTerm = this.GridView1.Rows[e.RowIndex].Cells[2].Text.Trim();
string loanRate = this.GridView1.Rows[e.RowIndex].Cells[3].Text.Trim();
string loanEffectFrom = this.GridView1.Rows[e.RowIndex].Cells[4].Text.Trim();
string loanMaturity = this.GridView1.Rows[e.RowIndex].Cells[5].Text.Trim();
string strConnString = ConfigurationManager.ConnectionStrings["ConnStr"].ConnectionString;
SqlConnection con = new SqlConnection(strConnString);
DataTable dt = new DataTable();
string str = "Select * from LoanMaster ";
con.Open();
SqlCommand com = new SqlCommand(str, con);
SqlDataReader reader = com.ExecuteReader();
if (reader.Read())
{
string loanType1 = reader["Loanloantype"].ToString();
string loanTerm1 = reader["LoanTerm"].ToString();
string loanRate1 = reader["LoanRate"].ToString();
string loanEffectFrom1 = reader["LoanEffectFrom"].ToString();
string loanMaturity1 = reader["LoanMaturity"].ToString();
con.Close();
}
if (loanType1 == loanType && loanTerm1 == loanTerm && loanRate1 == loanRate && loanEffectFrom1 == loanEffectFrom && loanMaturity1 == loanMaturity)</pre>
Member 12652110
25-Jul-16 7:35am
View
I am not sure how to compare hence there are no codes. For the table that I want to delete a row, I have used a gridview to do the command, however the second table which I am comparing to is not found in the page. Hence have to do a reader.read
Member 12652110
25-Jul-16 7:19am
View
I am very sorry. I do not know where to insert the codes. Do you mind copying in my codes and insert them? I have only started asp.net a few months ago and do not really understand
Member 12652110
25-Jul-16 7:02am
View
can u show me an example? I do not quite understand
Show More