|
Okay. I think your problem is the Response.End statement. That statement is going to finish all processing and push the page out with whatever information it currently has. I haven't done a file download exactly like this, so I'm not sure if just removing the statement will work or if you need to replace it with something else, but you can give it a shot and see what happens.
Hope this helps.
|
|
|
|
|
I am afraid removing the .End does not help, nor does moving the essence of the subroutine back into the original button click event. If you have any other ideas I am willing to listen.
|
|
|
|
|
As far as I'm aware you can't push multiple files to a browser - in other words what you're trying to do just isn't possible.
|
|
|
|
|
hi all
can any body tell me how to include file in vbs file
SP
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
How do you mean ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi i want to include JAVASCRIPT FILE in VBscript is it possible ? & how?
SP
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
You're using ASP ? When I did ASP, we used VB script for the server side code. AFAIK, only javascript can run on the client. I don't believe you can mix them, for that reason. Why do you want to ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Looks like you can combine them for IE6:
<html>
<body>
hello
<script language="javascript">
var1 = 'Wibble' ;
</script>
<script language="vbscript">
call msgbox(var1)
</script>
</body>
</html> Of course, that doesn't mean that you should.
Regards
Andy
|
|
|
|
|
If you need to include a VBScript file into your web page (to run in your browser then use:
<script src="Inc/global.vbs" language="VbScript"> </script> However, you should really be using JavaScript if you want users to use anything other than IE. If you need to include a VBScript file into your ASP page (to run on your web server) then use:
<!--#include file="Inc/GenScreen.asp" --> If you are using CScript.exe to run VBS on your desktop then use:
<?xml version="1.0" standalone="yes"?>
<?job error="false" debug="false"?>
<package>
<job id="main">
<reference guid="00000205-0000-0010-8000-00AA006D2EA4"/>
<reference object="Scripting.FileSystemObject" />
<script language="vbscript" src="Utils.vbs"/>
<script language="vbscript">
<![CDATA[
'Your script goes here.
]]>
</script>
</job>
</package> If you want to get reeeeeeally frisky then you can use VBScript to create WSC COM components!!! VBScript rocks
Hope that helps.
Andy
|
|
|
|
|
hi,
I'm having problem with seeing my datagrid? Yet I set Property visible to true and I'm caling the DataBind() what could be the Problem. I mayed be forgetting something.. Could you please help?
Thanks?
|
|
|
|
|
Check in the debugger - if your data source is empty, you won't see anything.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i think your datasource may be empty otherwise if you are using dataset, the dataset.tables(0) may be empty.
Check the datasource
Sathesh Pandian
|
|
|
|
|
Hi,
How would I be sure to know if data source is empty or not?
Thanks.
|
|
|
|
|
check
Tables[0].Rows.Count;
All I ever wanted is what others have....
CrazySanker
|
|
|
|
|
I have a table in asp and im using vb a code language. I have a table showing all the records. Please tell me how can i export them (in the same format like excel), may it be a pdf file, word or excel. Or can we print it directly using some built in feature.
Thanks
Bye
|
|
|
|
|
its simple friend..
u need to add
Response.ContentType = "application/vnd.ms-excel"
Response.Addheader "content-disposition", "inline; filename=YourFileName.xls"
these two lines top of ur page
ok
bye
Thanks,
Ankur Bakliwal
|
|
|
|
|
Where should i place this code. its not working.
Bye
|
|
|
|
|
these lines must be writen in
<%
line 1
line 2
%>
top of the 2nd page
u have to give a link of 2nd page for export, then in 2nd page u need to write that lines
ok
this will work
try it.
bye
Thanks,
Ankur Bakliwal
|
|
|
|
|
Use a different language.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
do one thing ok
copy that page wich u want to export.(say page1.asp)
rename it (copy of page1.asp -> page2.asp)
write these line in page2.asp at top
<%
Response.ContentType = "application/vnd.ms-excel"
Response.Addheader "content-disposition", "inline; filename=YourFileName.xls"
%>
noe call page2 from page1
it will export to excel
try it
if it is working pls tell me.
bye
Thanks,
Ankur Bakliwal
|
|
|
|
|
|
I use visual web dev 2005 express and office 2000.
VWE fails to add a reference to the word library object 9.0 at my project but add without trouble , the excel object library.((error message library not registred...)
I try the same thing (add a word reference )in visual C# 2005 and it's working fine for word and excel , so i assume that my word library is well registred.Any idea to fix this bug?
|
|
|
|
|
Hello,
I have a problem, I m not able to get an output in ASP from output parameter of SP.
i have SP, it returns some msg to a variale.
i don't know how to get that value in ASP.
Pls help me
Thanks,
Ankur Bakliwal
|
|
|
|
|
Hi Ankur
You might be better off on the ADO/SQL Server forum.
I would guess that your problem is that you are attempting to read the value of the output parameter before you have closed the resultset that has been returned (or else you haven't got "set nocount on " specified in your stored procedure).
http://msdn2.microsoft.com/en-us/library/aa905903(SQL.80).aspx[^]
Regards
Andy
|
|
|
|
|
Hi there,
I have some problem in fetching array in Javascript. Hope you will help me out.
From php I am creating 2d array and send only one to html,
for ex,
I have an array that is like :
array[1][abc];
and I am sending to html:
array[1];
now in html with the use of Javascript I want to fetch the value that is in array[1][abc];
array[1] will have an array. And 'abc' is the index of the value stored in array[1];
Please..Please..Please help me out. I am trying to solve this problem from much time
Thank You in advance.
|
|
|
|