Search

You searched for the word(s): userid:613315

Matching Posts

  • load List<> to FormView and select one specific object

    Hi, I would like to ask for advice about FormView, When i bind List<object> to FormView i get the information in the FormView as it sould be. I would like to know if it is possible to add also which object sould be selected in the view. for example, if i have List of 10 products can i tell the FormView to load the productId=5 as eddition to the binding all the list to the FormView. Thank you in advanced Ori
    Posted to Data Presentation Controls (Forum) by slasi.net on 12/26/2009
  • Re: Secure folders and files in mvc

    Hi Maciej, Yes usage of the App_data is a solution to my issue, I have also tested it and the asp.net user has permisions to write, create files to this folder but the web user cannot access it from the web. from here i can copy the files to temp file and let the user to view it. but you have other solution, can you please explain ? Thank you Ori
    Posted to ASP.NET MVC (Forum) by slasi.net on 12/6/2009
  • Secure folders and files in mvc

    Hi, I would like to ask how can i secure folders and files when using asp.net mvc c#. while working with mvc the consept of files and folders on the server is not the same as if i use asp.net web project. from file directories as it is in asp.net to Action and controlles in asp.net mvc. Is it possible to restrict direct access for example usage of direct URL link to folder and files on the server ? for example if i have log info or private files and i would like to restric the access to specific
    Posted to ASP.NET MVC (Forum) by slasi.net on 12/5/2009
  • Re: Secure folders and files in mvc

    Hi, The way the login is implemented in mvc website is based on attributes -CAS code access security. [Authorize(Roles = "Administrators")]. If you are not autorised then you get the login page. in this process you ask for action and controller that you need to be autorised, if you are not then you get login screen. I am looking for other level of security, files and folders. not on code level. in this level attributres cannot help me. Thank you
    Posted to ASP.NET MVC (Forum) by slasi.net on 12/5/2009
  • Re: Secure folders and files in mvc

    Hi Gerry, I will give you an example: i have an asp.net mvc web site. there you do your stuff... controllers actions and model. Let say that you want to let your registered users to upload personal files. pdf,docs and text files. in the current mvc web site you have access those files with a direct link. I would like to know how to protect those files. You cannot use attributes, there is no code running. with asp.net website you can add into the web.config directory security, then when you want to
    Posted to ASP.NET MVC (Forum) by slasi.net on 12/5/2009
  • Re: Secure folders and files in mvc

    Hi Gerry, The link you have send me is about upload files to the server. Your solution is to create a mapping table with random names. but if some body gets direct link to a file he can view it without authentication. I am looking a way to force users to login and authenticate according to there userName and roles when they want to view there files. thank you for your time and help Ori
    Posted to ASP.NET MVC (Forum) by slasi.net on 12/5/2009
  • Device Emulator manager

    Hi to all, I would like to ask for advice about how to use external emulator while developing with visual studio 2005. I am using c# visual studio 2005. and i have for the moment trial version of 3rd party Emulator. it is a cab files. I would like to know if it is possible to add this emulator to visual studio. or if there is another way to test the mobile project using this emulator. Thank you Ori
    Posted to Mobile and Handheld Devices (Forum) by slasi.net on 9/29/2009
  • Re: Rich Text Editor for MVC?

    Hi, i would like to implement editor in an MVC application i am building and i think there is a problem when you use the link creator in the editor. creating link by writing the next code: <a href="/page/details/someInformation"><em><b>Link Name</b></em></a> but when we use MVC application we must keep the links directing to actions and controllers, like: <a href="<%=Url.Action("Details","Page",new{id="SomeInformation"
    Posted to ASP.NET MVC (Forum) by slasi.net on 7/5/2009
  • Re: Filter query for logged-in username in repository

    you can add a referance and control it on higher level, if you intention is to control who can run your code in your application, also in the repository you can add can add attributes [Authorize(Roles = "user")] for extra security. i would recomanded to do it in the controller level, and keep the repository with generics that handle data requsts, in that you also can reuse the code also from other places in your application and preventing duplicating code. try to google or ask for second
    Posted to ASP.NET MVC (Forum) by slasi.net on 5/23/2009
  • Re: Filter query for logged-in username in repository

    Can you get the username on the controller level? try somthing like: string userName = User.Identity.Name; when i look at the object Browser i see that it comes from "System.Web.Mvc". i dont know if you want to add a reference to it. if not you can get the username in Conroller level and send it repository. suggestion: keep the name : IPrincipalModelBinder for interfaces and not classes. and for classes use the name without "I".
    Posted to ASP.NET MVC (Forum) by slasi.net on 5/23/2009
Page 1 of 7 (61 items) 1 2 3 4 5 Next > ... Last »