All,
I have a form with a drop down list (populates from a DB)
DataValudField = 126
DataTextField = blah blah
Once I select the blah blah from the ddl it displays a gridview.
Then I have an export button that directs it to: cmpDataGridToExcel.vb
All works great.
What I would like to have it do when it ask if I want to save or open I would like it to automatically name the file the datatextfield (blahblah.xls)
response.ContentType =
"application/vnd.ms-excel"
response.AddHeader(
"Content-Disposition"
, (
"attachment;filename=guide_name_display1.xls"
))
How would I pass the datatextfield to the above code in the cmpDataGridToExcel?
I have searched I have
tinkered but to no avail
now you can understand my image
Jeff