|
There is no reliable way to do this. An AJAX call to log off when the browser is closed will work for much of the time, but you should never write such a system and not add a timeout, so that if the user turns off their browser without logging off, they are only locked out until that timeout expires. You would then update that timeout every time they access a page on the site.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Some pages getting this error.Plz help!
<br />
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.<br />
<br />
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.<br />
<br />
Source Error:<br />
<br />
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.<br />
<br />
|
|
|
|
|
What does the message say ? What code generates it ? What have you done to follow the instructions the exception message gave you ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
It's a simple update profile page containing a form with loaded value.
Whenever the page is opened those msg are coming.
SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
What should I do to fix this?
|
|
|
|
|
Hi,
I want to create a file using FileStream, but I want the user selects the file Location on its machine to be saved.
How can I show a dialog Box for selecting a path.
I don't need a control with browse, just open a save as dialog and I create the file in the selected path
Best wishes
modified on Monday, March 30, 2009 3:24 AM
|
|
|
|
|
mehrdadc48 wrote: but I want the user selects the file Location on its machine to be saved
That shows your level of knowledge in web applications.
|
|
|
|
|
As Navaneeth said, the problem is that you have absolutely no idea what you are doing. Buy a book on ASP.NET and read it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Could you please give me a short sentence about the complicated point of my post !?
I want user downloads a file, but the file is created run-time, not an available file on server.
I've exported an Excel file of a GridView data, now I can save it in a fix path on client (e.g. C:\1.xls), the thing I want is to ask the user about the path to be saved?
Best wishes
|
|
|
|
|
mehrdadc48 wrote: the thing I want is to ask the user about the path to be saved?
That is the problem. ASP.NET works on server and can't show dialog boxes on client machine. It is browsers job to show the save dialog box and you don't have any control over it.
|
|
|
|
|
Oh!
Are you familiar with products of DevExpress, Telerik, ... or just you know Microsoft products?
There are a lot of Controls that have both server-side and Client-Side capabilities, the Client-Side can be connected to Server-Side ones ...
Ok ,Take it easy. I'm not going to have an argument about it, maybe I'm wrong, but you can say in soft words.
Thank you for your attention.
Best wishes
|
|
|
|
|
Oh!
I said I don't need a control. I just need a smart code to enforce the browser to show dialog, and I use the selected path.
Ok ,Take it easy. I'm not going to have an argument about it, maybe I'm wrong, but you can say it in soft words.
Thank you for your attention.
Best wishes
|
|
|
|
|
mehrdadc48 wrote: I just need a smart code to enforce the browser to show dialog
I reiterate. It is totally controlled by the browser.
mehrdadc48 wrote: but you can say it in soft words.
I don't think I was rude. But if you are hurt, honestly, that was not my intention.
|
|
|
|
|
If you feed a file down from the server, the client will be prompted the path to save to. Always. Your post seems to indicate that you have no idea about the seperation between server and client, what happens on the server, and what happens on the client. If you save the file to the client, they will be asked where to save it, every time.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi Friends,
I have a doubt in routing.I send an action code view to a page on button click of another page.How i get the action name in the second pageload.Please help me.
|
|
|
|
|
I am developing a web app and i want to reload the page after 5 seconds . But when i included the code in the source of the master page ,it showed me the errors when i build , like:
1 .Validation (XHTML 1.0 Transitional): Element 'meta' must be included within a parent element.(This ocured when i included it after the first line )
|
|
|
|
|
Hi,put this code in your element..
|
|
|
|
|
|
I am using asp.net ajax tab control in my project. I found an issue with it. In my page there are four tabs, each tab contains a list of controls. When page loads, I want to set focus on first tab’s (which is set as active tab) first control. .I am not able to do it either using server side code or client side code.
Following java script code is used to set the focus on page load:
Sys.Application.add_load(function()
{
document.getElementById("<%=txtQuestion.ClientID %>").focus();
});
With above code I got following java script error:
Can’t move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
I need help on this.
|
|
|
|
|
Hi,
Please have a look on : http://forums.asp.net/p/1404295/3050490.aspx.
Hope this helps you.
Thanks.
Vijay Jadhav.
|
|
|
|
|
Hi
I have a number of pages that have gridviews in them and which use different queries. However, in the gridviews I have buttons, which use icons based upon the values held in the database. Is there a way in which I can move this code into a class object rather than having to repeat the code a number of times in each gridview's row bound method?
Thank you in advance.
|
|
|
|
|
Sure - just make the control take one of the objects that you bind a row to, so you can specify that when you add the control to a row.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Yes you can have a class that handle the case.
Another aletrnative approch to look would be UserControl. Do the gridview have the similar (or the same) formatting and behaviour? Of course the query as you stated is different. Look if you can create a UserControl then you can use this. In the UserControl class, you can customize anything you want.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi
Thanks for replying.
I like your approach about the User Control, because you are quite correct about the controls. They do use the same formatting and behaviour. To excuse my ignorance, do you have an example on how to pass the values from the built in gridview round bound method to the user control and still have the button appear in the gridview as if it is part of it? I am still fairly new to ASP, and I am still finding my feet, any assistance you can give me would be deeply appreciated.
Thanks in advance
|
|
|
|
|
AndyASPVB wrote: To excuse my ignorance, do you have an example on how to pass the values from the built in gridview round bound method to the user control and still have the button appear in the gridview as if it is part of it?
I didn't get your question. What is build in griedview round bout method? UserControl is similar to Page. You can handle any griedview events in the user control code behind. Can you explain your question.
AndyASPVB wrote: I am still fairly new to ASP
you mean asp.net. They are completely different.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi
In the gridview component there is a method called onRowDataBind, which is built in method in the gridview. This is where I have been looking at my data from the query to build up my ImageButtons. Sorry, if I confused, by was using the past tense, which is bound.
Going back to my question, in the onRowDataBind method, you have access to all the methods and classes associated with the rows, and where I have tried to say something like e.row.backcolor, this will not work because. So, how do create a user control class which is defined outside of the gridview, I can pass parameters from the onRowDataBind, and can interact with it when a user clicks on the button in the gridview?
On the last part of the question, when the user clicks on an ImageButton, I am using command name and command argument on the buttons. Do these still need to be part of the gridview, because command name sits inside the gridview tag and allows me to know which button on the row the user has click on?
Thanks in advance
|
|
|
|