Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
how to store the datarow values into variables using C#
narasiman rao
11y
2.9k
1
Reply
how to store the datarow values into the variables using c#
My code as follows;
DataRow objRow;
objRow = objDt.NewRow();
objRow[0] = sCourse;
objRow[1] = sRate;
objRow[2] = ViewState["batchid"].ToString();
if (ViewState["temp"] == "P")
{
objRow[3] = ViewState["PackageID"];
}
else
{
objRow[3] = "";
objRow[4] = Convert.ToDateTime(ViewState["StDt"].ToString());
objRow[5] = Convert.ToDateTime(ViewState["EdDt"].ToString());
}
From my above code how to store the objRow[4] and objRow[5] values into the variables. And comparing objRow[4] date is greater than the objRow[5] date.
Please help me.how can i do using csharp.
Regards,
Rao.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
String.Split - How to calculate slot
Crystal Report Required in Horizontal Format