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
Sheikh parvaz
NA
199
109.3k
Passing Array from a method
Dec 30 2012 3:25 AM
I want to return array of char to another method in code behind. But the problem is, Itz showing me problem , As I can not access the array outside the foreach loop.
public Array passprocedures()
{
con.Open();
string[] procs =
{
"Today",
"Open",
"Resolved",
"Pending",
"Closed"
};
foreach(string value in procs)
{
cmd = new SqlCommand(value, con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = value;
cmd.Parameters.Add("@para", SqlDbType.NVarChar).Value = User.Identity.Name;
char[]fcount = cmd.ExecuteScalar().ToString().ToArray();
}
return ? ;Here is the problem. I m unable to return the array.
con.Close();
}
Reply
Answers (
2
)
Which of the following performed to fully debug an asp.net a
Label and background image in css file