|
|
Ok, so in the Session_end event I want to make a not in a database when the session ends. In this row I want a unique identifier for the user whose session just ended. Where can I place this identifier so that it will be accessible in the Session_End handler.
The Session object is already gone, I can't use Request in Session_End so query string is out. I tried a static variable on a class, but every user overwrites the previous one's data.
Thanks.
|
|
|
|
|
eggsovereasy wrote: The Session object is already gone
Not at all.
---
b { font-weight: normal; }
|
|
|
|
|
Hi friends,
Is there any way to lock ur computer with asp.net????
I mean ...i want the computer of client to be locked if he is idle for some 10 minutes...am not asking about sessions....i want the whole computer should be locked....can any of you great .net programmers solve this problem??....plz give me a way....its very urgent and it will be really a great help for me....plz once again and thanks in advance....
Live Life King Size
Asif
|
|
|
|
|
You want to lock someone's desktop from their web browser? Are you serisous?
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Yes Mr.Hoffer am serious ......
give ur brain a think of this issue...am sure u can get me a way;)
Live Life King Size
Asif
|
|
|
|
|
Its called screen saver.
If you really for some strange reason want to implement this logic in your web app (I pray its intranet), you will need to set up browser to some insanely insecure level, and use ActiveX or similar component (on client of course!) accessing system functions. Really bad idea IMO.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
Hai dnh,
Yes man....really my client is really a strange fellow...but i cannot do more than this except asking u peoples help....think!!!!!
Live Life King Size
Asif
|
|
|
|
|
I am trying to write a image viewing control that runs partly on the server. The server side is designed to more easily facilitate creating asp pages in VS designer, and also grab the needed image from the secure image server, and then download it with a client side control and page to the client. The client side control does most of the viewing/zooming/etc... on the client side to reduce post backs. I cannot seem to get the server to reliably download the '.dll' containing the client side part of the control. I am using .NET 2.0/Visual Studio 2005/C# and am trying to call the client side control using the usual <object> tag. I am using the server control's RenderContents() to generate the "<object>" tag in the client page. My current theory is that, this is not interpreted until the page actually runs on the client side, and by then is too late. If this is the case, is there some other server side mechanism that could be used to do this? I am also not exactly sure where it might put the control when it downloads. Will it go to a bin directory in the user side cache, or somewhere else?
|
|
|
|
|
hi friends,
In next 2 days, I'll be attending a technical interview in ASP .Net. Can anyone please give me guidelines as to what I need to prepare ?
Thanks in advance
|
|
|
|
|
Things you need to know.
How to maintain state Session state / View state / Cache.
Basic Object Oriented programming such as inheritance, abstraction,
encapsulation.
What ispostback is used for.
Server validation / client validation.
ADO.Net E.G. Disconnected data, dataset, dataread, datatable
Common controls and what they are used for
E.G. DataReapter, DataGrid, ListControls
Basic security models Forms / Widnows
How the web.config file is used.
Good luck.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Thanks ToddHileHoffer,
I do have a question. From what I know of the interview, I may have to do some pogramming too (I'm not really sure). Can you please give me some input as to how to prepare for security related to forms/windows. what kind of practical questions can I expect w.r.t security ?
Thanks a lot for your help..
|
|
|
|
|
hi meena,
do u still need Interview questionare for ASP.NET?
or u alreay attend the interview? if so, how it went?
Regards,
Rahi
|
|
|
|
|
yes, I still need help coz I'm attending a couple of interviews in the next few days.I'd appreciate any help to do good in my interview..
Thanks a lot in advance....
|
|
|
|
|
I have a master/detail set of grids. on the detail(bound), all the data is visable and editable through the tempplate(Each bound column is a textbox in the template). When a user edits and leaves one of the cells, I want the grid to update. I cannot seem to find the call to get control of the system when the cell is left.
(think of it like excel, where a calulate is down after the cell is left).
Thank you
|
|
|
|
|
I'm trying to display a binary image on a webpage by using the following code however the actual binary data is displaying on the screen, not the actual image:
---------------------------------------------------------
FileInfo fi;
FileStream fs;
BinaryReader br;
fi = new FileInfo(imagePath);
fs = fi.OpenRead();
br = new BinaryReader(fs);
// Read and verify the data.
byte[] image = br.ReadBytes((int)fs.Length);
Response.BinaryWrite( (byte[]) image );
fs.Close();
----------------------------------------------------------------
How can I display the actual image on the screen?
Also, this image is not the only item on the webpage. The entire page contains a bunch of different data, so I don't know if using Response.ContentType("image/jpeg") is a viable option either (since wouldn't that force the page to just display the image and nothing else?).
Thanks for your help.
-Goalie35
|
|
|
|
|
hi goalie
use this code
Dim myConnection As New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim myCommand As New SqlCommand("Select * from Person", myConnection)
Try
myConnection.Open()
Dim myDataReader as SqlDataReader
myDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)
Do While (myDataReader.Read())
Response.ContentType = myDataReader.Item("PersonImageType")
Response.BinaryWrite(myDataReader.Item("PersonImage"))
Loop
myConnection.Close()
Response.Write("Person info successfully retrieved!")
Catch SQLexc As SqlException
Response.Write("Read Failed : " & SQLexc.ToString())
End Try
regards
saravanan
|
|
|
|
|
The image date is not sent in the html document. You place an image tag on the page, and the browser requests the image file separately.
---
b { font-weight: normal; }
|
|
|
|
|
Hi
I need to fade certain controls into my aspx page on the pageload e.g. asp textboxes and labels. Obviously the fading needs to work on all browsers. I have tried searching for some sort of javascript to do this, but I havn't found anything yet. Does anyone know how to do this?
steve
|
|
|
|
|
I upgraded to internet explorer 7 and discovered that the visual studio 2005 script debugger doesn't seem to work with it at all, I can't set a breakpoint in embedded jscript on the page, where I used to be able to. I just get the "this is not a valid location for a breakpoint" error.
I've done a search and only found reports of it not working in vs 2003 so I'm wondering if this should work or if there is a work around or...?
|
|
|
|
|
|
John Cardinal wrote: I can't set a breakpoint in embedded jscript on the page, where I used to be able to. I just get the "this is not a valid location for a breakpoint" error.
Through F9 I guess? The lil red dot? I've never been able to get this to work, but adding a debugger; statement does with IE6 - how bout with IE7? (and hoping it does - was JUST about to upgrade, but if I can't debug js then NO DICE!!!)
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hello,
I have a function which is transforming a XML file into another XML file using a XSL file.
Function GetXML()
...
Dim myXml As XmlDocument = New XmlDocument
...
myXsl.Transform(myXml, myXslArguments, HttpContext.Current.Response.Output)
...
End Function
Instead of displaying, in the browser, the resulting XML I want to return it so I can display it later in the browser as a XML document.
How can I do this?
Thanks,
Miguel
|
|
|
|
|
Have you tried writing it to a stream?
|
|
|
|
|
No, could you give me an example?
I have been looking for an example but no luck.
This is the code I have:
Hello,
I tried to find an example but no luck.
Could you give me an example?
Here is my code:
Function GetXML()
Dim myDocument As XmlTextWriter = New XmlTextWriter(Response.OutputStream, System.Text.Encoding.UTF8)
myDocument_Build(myDocument) ´ >> This line calls a function which adds nodes to myDocument
myDocument.Flush()
myDocument.Close()
End Function
All I want is to return myDocument in some format that I can display later as XML file.
Thanks,
Miguel
|
|
|
|