What is the content of this byte array? If it contains the report formatted with HTML tags, you can use Response.BinaryWrite(YourByteArray). Then use RegisterClientScript() method and emit JS window.print which will print the window.
I have created my own browser in Visual Studio (in other words it is an instance of IE), but what I am looking for advice and assistance is how can you create a control which if the user isn't using the browser that it closes down.
This is a browser that will be sitting on an Intranet not the Internet, though!
but what I am looking for advice and assistance is how can you create a control which if the user isn't using the browser that it closes down.
Closes the control? If yes you have some understanding problem of how ASP.NET works. If you just have to logout the user upon inactivity, try the following steps
1 - Record users last request time.
2 - Use JS setTimeOut[^] method and call a method which request a ASPX page which returns you the last request time of the current user.
3 - Compare this time, and call the logout page if necessary.
im doing an asp.net website with a login system for its users. i used a table in sql to maintain a record of user details.when a user logs in , i set a flag to 1 and when they click the logout button , the flag is set back to 0. my problem is if the user closes the browser window or for some reason the system crashes , that user still remains logged in. i have 2 go to the database and set the flag. please suggest some way to solve my prob. thanx
1 - Handle the session_end event and reset the DB flag there. This event gets fired when session timed out and will happen even user closes browser (not immediately). Works only on InProc session mode.
2 - Create a new column in table which has the user's last request time. Write a SQL job which runs frequently, checks the last request time and update the flag if necessary.
You excuse my ignorance on this, but I am looking for someone to help me with the Object Tag or Active X to put it another way!
What I am trying to do is to display a word doc in ASP.Net, but I am unable to do and none of the examples I have found on the Internet work. So, can someone kindly assist me by talking me through what to do? Is there some other control that I need to install or plug in I need?
My compny inted to create an online library for showing some books in term of PDF to the users of site,but this showing is only readable and isn't able to save or download.
for instance:www.scridb.com site is a good example of this ,butuser can create PDF file in term of flash whieh can be saved.
www.vuzit.com is for upload book that it's script can be useful ,but my company does'nt want to be these information on the others server.
we need to a script which embed the PDF file to the web site ,but it shouldn,t be able to save like the library of www.google.com
would you please introduce me such a script or useful link in this case?
eve ,this copany is tending to buy this script compeletly.
i have 3 textboxes when i press button i want to show the errormessage as well as i want to change the color of textbox which is blank. this is possible with single customvalidator if is possible tell me
I want to develop a stored procedure in which I have to apply different modifications to the Query. Finally after undergoing all the changes to the query I have to execute the final query and get the resultant table.For example:
Set @Query='Select * from emplayee where empId=1"
Set @Query=@Query+'and empId=2'
Set @Query=@Query+'and empId=3'
As shown above my Query conditions will change according to the parameters. But here I am not able to get the resultant table. Please reply me if anyone know how to get the resultant Table. Also please tell me whether the above procedure is correct or not.
N a v a n e e t h,
Thank you very much for your help and sorry for my not clear question
The MsWord process is running on server and it has openned some doc file, and now I'am try to interact with the MsWord process in my ASP.NET application. So I tried to use GetActiveObject to get a objec reference to the MsWord process. But it just throwed a exception.
And the GetActiveObject（）can work well in a C# WINFORM application, while not in an ASP.NET application.
I think the discuss thread I mentioned above in my question may gave the possible reason of this quesion. Here is the abstract of the post:
Based on my research, GetActiveObject obtains a running instance of an
object from the running object table (ROT). Each WinStation has it's own
ROT. The interactive desktop is one WinStation and has it's own ROT and
that is where the desktop application will have registered the running
object. The ASP.NET process is running under a seperate account and exists
in a non-interactive WinStation with its own ROT. That is why it fails.
I think the only way for this to work would be to launch the third party
application process from ASP.NET so it exists in the same WinStation. Of
course the application will then not be visible and the user cannot
interact with it.
sorry, I think I didn't express myself clear again at the end of my last post just now ----
I think the discuss thread I mentioned above in my question may gave the possible reason of this quesion, but it didn't give a way to solve the problem
Last Visit: 31-Dec-99 18:00 Last Update: 2-Oct-23 16:18