Re-use data from sqldatasource control?

M

Mike

On the page, I have a formview which shows details of a job, including its
title and location. The data is fetched by a sqldatasource. Now I want to
take the job title and location and create a page title out of it as well.
Something like:

(pseudo-code)
protected void Page_Load(object sender, EventArgs e)
{ Page.Title = <jobtitle> + " " in + " " + <location>;}

I kind of understand that the data is available to the formview because the
sqldatasource is bound to it, but how do I access the data outside of the
formview without running the select statement again?

Thanks

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top