Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to store the datarow values into the variables using c#

My code as follows;
C#
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.

Please help me. how can i do using csharp.

Regards,
Narasiman P.
Posted
Updated 4-Apr-13 1:01am
v2

1 solution

I think you'll find lots of examples here:
Google[^]

So problems soon solved ;-)
 
Share this answer
 
Comments
[no name] 4-Apr-13 7:37am    
Please send any example related my code.

please help me.

Regards,
Narasiman P.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900