Greetings,
In a current vs solution I have 2 projects, 1 holds the linq datacontext classes and another holds the business model.
Inside the business model I created a class which inherits from my datacontext like so;
Public Class <snip>DataModel
Inherits <snip>DataContext
In...
That can be done by changing the response headers of your page.
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("content-disposition", "attachment; filename=" & yourFileName)
Response.BinaryWrite(fileContents)
I think that you'd still need to save the file to the server.
Did you try saving it to your server with the SaveAs method?
Like xlWorkBook.SaveAs("path\filename")
http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.workbook.saveas(VS.80).aspx
Hello,
I have a problem with the ModalPopupExtender control and dropdowns, it's the following issue: as soon as the modalpopupextender is shown Dropdownlists dissapear from the page itself and when the extender control is closed the Dropdownlists reappear again.
The code on the page looks as...
Thanks I will try that out, but there is one thing in your post that made me wonder about something.
In IIS you have the option to create a Wildcard mapping for all files and directories (you get the option to let isapi respond to every request even if it could send a 404 back).
Would you...
What I usually do is the following. I create a Gridview with Hiddenfields that will contain the ID value of a certain item from the database, then another hiddenfield (the amount depends on the items you wish to edit in that tablerow).
Once the hiddenfields are made you add the textboxes or...
Hello all,
I was wondering about the following issue, at the moment an url rewrite module is being implemented into one of the company's sites.
However this site will need future updates so the use of debugging is needed. The problem starts with the use of the response.rewritepath method...
No I made an url crawler once for a sitemap generator that uses mshtml aswell (windows app) and the only thing that slowed the app down was the axwebbrowser(sp?) object that would be responsible for downloading the HTML code.
Parsing the html went as fast as any normal string operation given...
Not 100% sure about that, since I do have to include the reference of the mshtml dll file into the project.
But I just recalled something I made an vb.net windows application once that read a bunch of links in with mshtml and that went pretty smoothe.
So my guess is that it can be a threading...
Hello all,
I am using mshtml in a asp. Looping trough every element, changing it/writing it back to the page seems to work fine but
there is one annoyance. Calling the mshtml object and filling it makes the page's loading time alot longer (say 4-5 seconds). Now for the company's site this is...
I am currently developing a Httpmodule for url rewriting and I would like to have an extra feature with it: the module should both handle the url rewrites and if possible access the htmlsource of the page so it can move the viewstate and actually rewrite links on the site.
I found out that the...
My colleague made an sql query where he uses Rownum to sort the selection with, now his query is setup like the following:
Select *,RowNum
From
(select rownum() over(id) from test) as RowNum
where
--
order by RowNum
The thing that is happening in this code is that a subtable is selected...
Cheers! That worked, but just wondering why is the isnull comparison needed? I mean if the values of the table columns are null shouldn't you be able to select on those values?
Hello, I am facing a problem with one stored procedure that I made using a method in the WHERE clause that worked in other queries.
ALTER PROCEDURE backend_GetReferrers
-- Add the parameters for the stored procedure here
@Filialen_ID varchar(6) = null,
@Omschrijving varchar(100) = null...
http://www.codeproject.com/index.asp has some nice articles about asp.net/vb ranging from beginner to advance.
To create your own .vb file that holds your own classes in Visual Studio you right click on the project name in the solution explorer. Then you select "Add new item" and a new form will...
Just taking a wild guess here, but if your html output is shown in the source view but not on the page then you probally forgot to add/close a body/html/header tag or left one open like so "<body" (just a guess).
You can try the following, on index.php you create hiddenfields and set the value of those according to the variables you have on that page, then in menu.php you set the variable values there by requesting the hiddenfield values in index.php.
Sorry but I don't understand that part, the controls I have on the gridview are all dynamicly created on page_init so setting those as public prop on the masterpage would be somewhat impossible? (unless I am mistaken ofcourse).
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.