TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ca guy
NA
13
0
Override procedure..
Dec 27 2007 5:49 PM
Hi..
I am new to c#. I want to write common procedure , when I pass database field as a parameter to procedure, if field has value just return the value or if field type is numeric then reurn 0 or if it is string then return ""..depending upon datatype of field being passed.
Something like this considering CheckNull is the name of procedure..
txtCode.Text=CheckNull(rs.Fields["ID"]);
txtDate.Text=CheckNull(rs.Fields["SaleDate"]);
txtYear.Text=CheckNull(rs.Fields["NoofYears"]);
Reply
Answers (
9
)
How to print TABSPACES in a string using System.Drawing.Printing in c#
view hardware