MatthewKeyzer 0 Newbie Poster

Hi.

Background : the application i am busy with is a webpage being done in C#, ASP.NET, and SQL server 2005.

I have set up a SqlDataSource so that it returns one result. This would be meetingID. The query is set up in a way that the SqlDataSource just returns the latest added meetingID to the meeting table. Thats all fine and works well...

The issue is that i want to take that value and place it into a string variable so that i can use it later in the same function, but im not sure how the c# code would look. I would also like to avoid using gridviews and datagrids.

i know the following code is completely wrong but im just showing the type of format i need. I basically want to use something like this:

string MeetingID = Sqldatasorce1.Values["MeetingID"].ToString()

thanks for your help in advance..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.