15,907,687 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 Member 10562086 (Top 28 by date)
Member 10562086
18-Mar-15 3:21am
View
I accepted your solution sir.can you please give me a solution for above validate dadatable data and excel sheet data
Member 10562086
17-Mar-15 6:40am
View
Sir . I have one excel sheet,the excel sheet data and what ever data from datatable data both are same . i want compare both "datatable" data and excel sheet each cell data .please help on that ,if both data is same then i want display message ,,other wise i have to display message ,,like "data miss match in excel sheet and Datatable data in row no 8 and column 10" like that ,please help me
Member 10562086
17-Mar-15 6:27am
View
thanks for your reply :)
Member 10562086
12-Mar-15 10:30am
View
hello sir I need one help. I want display meaasge inside message box ,message is like "this sheet have non zero amount in the pariculor(row no) and and pariculor ( column no) please check it"
I am comparing pariculor cell value with "0" by the method Assert.AreEqual("0", values); and once it catch it will go to catch and display message like what I mention in above and my test case should be fail .
but what ever I declare row and column variable ,how to use inside the catch and how to display that row and column in the meaasge box .bellow code is there
try
{
int row;
int column;
for (Row = 22; Row <=23; Row++)
{
for (Colm = 5; Colm <= 18; Colm++)
{
excelProperties.excelCell.Set_CellIndices(Row, Colm);
string values = excelProperties.excelCell.Get_CellValue();
Assert.AreEqual("0", values);
Playback.Wait(500);
}
}
MessageBox.Show("There is no zero data in revenue input sheet");
}
catch (Exception ex)
{
MessageBox.Show("This sheet contains non zero amount, please check it in row " + Row + " and column " + Colm);
Assert.IsNull(ex, ex.Message);
}
}
Member 10562086
11-Mar-15 6:09am
View
thank you Shankar.i have one question ,why you initialize i=2 and j=1 ,which is row and which is column .suppose I want check data from particular row range(10th row to 25 th row )and particular column range (column "E" to "G" column )on this condition how to check
Member 10562086
11-Mar-15 0:53am
View
thanks chill60 and subramanyam
Member 10562086
10-Mar-15 9:46am
View
can I use same code for Coded UI?? Is it work? I have to implement by using coded ui test case .
Member 10562086
10-Mar-15 9:38am
View
earlier I was using that code for web application .now I want implement same thing using Coded UI.
Member 10562086
10-Mar-15 5:17am
View
thanks subramanym .suppose If I want search all data of ( all Column and all rows of excel sheet) .what type of condition I have put .please tell me
Member 10562086
10-Mar-15 4:47am
View
I am going to write code but I don't know how to wright code for this condition ..which logic and how to implement ??
Member 10562086
4-Apr-14 5:45am
View
thank you its working
Member 10562086
2-Apr-14 6:50am
View
Sir Can u Explain
(ISNULL(Emp_leavingdate,'12-31-9999')) >= @date
And even i pass month and year separately,based on that month of year i want total no(Count of) of employee presently working and left Emp
Member 10562086
11-Mar-14 8:37am
View
emp_name jan feb march april may june july,,,,december
sachin 5 6 6 6 7 7 5 12
dravid 6 5 7 8 4 7 8 10
declare @ShiftDate datetime='01-02-2014';
here if i pass this date i want output like
empCode jan feb (only jan feb months and empcode )
sachin 5 6
suppose if i pass date as 2-3-2014
my output like
empcode jan feb march
sachin 5 6 6
like this i have to show sir
Member 10562086
11-Mar-14 8:10am
View
Conversion failed when converting date and/or time from character string. this is error i got sir
and what is that dateColumn ???? is this my months column or what sir?
Member 10562086
3-Mar-14 23:59pm
View
yes sir i got ,,now its working .thank u so much love u,,,,,,,,,,
Member 10562086
1-Mar-14 7:38am
View
<script type="text/javascript">
$(document).ready(function() {
$('#' + '<%= btnSave.ClientID %>').click(function(e) {
var isValid = true;
$('input[type="text"].required').each(function() {
if ($.trim($(this).val()) == '') {
isValid = false;
$(this).css({
"border": "1px solid red",
"background": "#FFCECE"
});
}
else {
$(this).css({
"border": "",
"background": ""
});
}
});
if (isValid == false)
e.preventDefault();
else
alert('Thank you for submitting');
});
});
</script>
this j query show red colour only for type="text" but if i change textmode="mulitiline" its not showing any red colour and its not validated(means for mulitiline text box its not workink),,,please help me sir
Member 10562086
14-Feb-14 0:05am
View
sir what is this CAST(count(MerchantInfo.MerchantId) % 60 as varchar(2)) ,2)
as OTHOURPad,
i dint use MercantInfo .MerchantId in my table
Member 10562086
13-Feb-14 4:39am
View
those two table means Cte1_TotalCount And cte2_totalCount sir?
yes Those two value having Emp_status as common
Member 10562086
12-Feb-14 23:55pm
View
cte3_persent (per) as
(select ((cte1.totalcount/cte2.TotaCount)* 100 )
from cte1,cte2)
i am creating one new cte table shown above
from that value '2'coming from cte1.totalcount and
value '500' coming from cte2.TotaCount
i want percentage of those value it should be in 0.00% format
i want ans of per from cte3 table is =0.40%
please help me sir
Member 10562086
12-Feb-14 23:53pm
View
<pre lang="sql">cte3_persenta (per) as
(select ((cte1.totalcount/cte2.TotaCount)* 100 )
from cte1,cte2)</pre>
i am creating one new cte table shown above
from that value '2'coming from cte1.totalcount and
value '500' coming from cte2.TotaCount
i want percentage of those value it should be in 0.00% format
i want ans of per from cte3 table is =0.40%
please help me sir
Member 10562086
12-Feb-14 1:09am
View
no sir its not working
Member 10562086
12-Feb-14 1:09am
View
no sir its not working
Member 10562086
11-Feb-14 1:43am
View
thank Dnyaneshwar Sir ,,,Thanks lot
Member 10562086
8-Feb-14 2:29am
View
hello karthik Sir it show input string was in not correct form error
Member 10562086
8-Feb-14 2:24am
View
i have to cast both the linkbutton text value and grid row value to integer
Member 10562086
31-Jan-14 4:11am
View
yes i want present ,absent ,leave and halfday,single punch,etc,,,,,, as m columns,and count the no of present,absent ,leave ,halfday,etc,,,based on shiftwise and particulor datewise i want like
shiftname present absent leave halfday weekoff
genralshift 1 2 3 0 0
nightshift 5 1 0 1 2
like this i want output,,,i have to dynamically bind this one to my gridview
Member 10562086
31-Jan-14 2:57am
View
in bellow structure i want get out put from query ,,,,
Att_sheduleShift, Att_date, present ,absent, leave, Wo, halfday
genralshift 1-2-2014 2 3 2 0 2
nightshift 2-2-2014 3 1 0 5 1
in my Att_status column contain :present ,absent ,leave,halfday,Wo,etc,,,,
Member 10562086
31-Jan-14 2:36am
View
thanks for your answer sir.but i actualy i am paasing Att_date And att_scduleshift from my code on particlor date and schedulshift i want how many are present and how many absent status ,,so i want display this table into my grid view means dynamically bind grid view ,,,please help me sir ,,,,and my table name is "Attendance" and even ther is not only present and absent status in my att_status,even around 20 Att_status is there like absent ,present ,leave,half day,fullday,weakoff.,,,,,,etc soo please help me
Show More