15,918,706 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 12233583 (Top 6 by date)
Member 12233583
31-Jan-17 6:10am
View
var fee_detail = "";
List<string> list = new List<string>();
for (int i = 0; i < ds2.Tables[0].Rows.Count; i++)
{
list.Add(ds2.Tables[0].Rows[i]["fee_name"].ToString());
list.Add(ds2.Tables[0].Rows[i]["fee_amount"].ToString());
string txt = "";
foreach (string s in list)
{
txt += s +"\t";
}
fee_detail = txt;
}
receipt = receipt.Replace("{FeeName}", fee_detail);
Dear Sir,
Below This line
fee_detail = txt;
i have insert new line character but "\n" or "\r\n" not working .
Plz Help me.
Member 12233583
29-Jan-17 14:24pm
View
According to school requirement.List of fee can be increase or decrease every month,then how can we handle this.
Particular Payable Paid
------------------------------------------
Tution Fee {TFDue} {TFPaid}
Transport {TRDue} {TrPaid}
Exam Fee {EFDue} {EFPaid}
Member 12233583
29-Jan-17 4:03am
View
Thanks I have done..thanks alot
Member 12233583
29-Jan-17 2:52am
View
I am confuse with string "template" where i have to declare it.
Thanks
Member 12233583
30-Dec-15 2:27am
View
Dear Sir/Madam
Your code is very helpful to me but it need some more correction for me.
The date which has Sunday it give error like...
SELECT CASE DATEPART(WEEKDAY,'2015-12-27 00:00:00.000')
WHEN 1
THEN 'S'
ELSE
DATEPART(DAY,GETDATE())
END AS Day_Name
Conversion failed when converting the varchar value 'S' to data type int.
Member 12233583
29-Dec-15 4:10am
View
I am using View and store procedure in sql server 2008 R2
My View is::
ALTER view [dbo].[vwAttandenceDetails]
as
select sd.id, sd.name, att.attendance_status,sd.rf_code,
DATEPART(day,att.attendance_date) as 'day_Name'
from tb_student_detail as sd
left join tb_attendance as att
on att.student_id=sd.id
And Stored procedure is
ALTER proc [dbo].[disp_monthly_report]
as
select rf_code as 'Student ID', name as 'Name',
isnull([1],'A') as '1',
isnull([2],'A') as '2',
isnull([3],'A') as '3',
isnull([4],'A') as '4',
isnull([5],'A') as '5',
isnull([6],'A') as '6',
isnull([7],'A') as '7',
isnull([8],'A') as '8',
isnull([9],'A') as '9',
isnull([10],'A') as '10',
isnull([11],'A') as '11',
isnull([12],'A') as '12',
isnull([13],'A') as '13',
isnull([14],'A') as '14',
isnull([15],'A') as '15',
isnull([16],'A') as '16',
isnull([17],'A') as '17',
isnull([18],'A') as '18',
isnull([19],'A') as '19',
isnull([20],'A') as '20',
isnull([21],'A') as '21',
isnull([22],'A') as '22',
isnull([23],'A') as '23',
isnull([24],'A') as '24',
isnull([25],'A') as '25',
isnull([26],'A') as '26',
isnull([27],'A') as '27',
isnull([28],'A') as '28',
isnull([29],'A') as '29',
isnull([30],'A') as '30',
isnull([31],'A') as '31',
(select count(id) from vwAttandenceDetails where id=pio.id and attendance_status='P') as 'P'
from vwAttandenceDetails
pivot
(
max(attendance_status)
for day_name
in ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12],[13],[14],[15],[16],[17],[18],[19],[20],
[21],[22],[23],[24],[25],[26],[27],[28],[29],[30],[31])
)as pio
I want to know which date is sunday(each sunday of month) and print that column as "S".
This is attendance management system
Show More