I have a page with the below code, when I load Downloader.aspx in my web browser on ie6 it prompts me with a saveas dialog box to save the file Downloader.xls. When I attempt to do the same in IE7 in brings up a blank window. Any idea why the saveas dialog doesnt appear in IE7?
//code for...
Woops sorry didnt see you meant asp.net. You will have to invoke it through javascript:
<script language="JavaScript">
var isReady = false;
function doSaveAs(){
if (document.execCommand){
if (isReady){document.execCommand("SaveAs");}
}else{
alert('Feature available only in Internet Exlorer 4.0...
The following code should get you started:
(check out this site for more: http://www.csharphelp.com/archives/archive192.html)
private void btnOpenFileDialog_Click(object sender, System.EventArgs e)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.InitialDirectory = "c:\"...
I never heard of creating a class per table. Maybe you should consider removing that layer of extraction. The classes in the data layer should make logical sense rather then randomly creating one class per table.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.