Search

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

Matching Posts

  • Re: Basic questions concerning the MVC framework overall

    upload with mvc :) http://forums.asp.net/t/1237419.aspx
    Posted to ASP.NET MVC (Forum) by tumickey on 4/6/2008
  • Re: Session State

    http://msdn2.microsoft.com/en-us/library/ms972429.aspx The ASP.NET HttpSessionState class provides a useful IsNewSession( ) method that returns true if a new session was created for this request. The key to detecting a session timeout is to also look for the ASP.NET_SessionId cookie in the request. If this is a new session but the cookie is present, this indicates a timeout situation. In order to implement this effectively for an entire web site, it is useful to utilize the “Base Page” concept described
    Posted to ASP.NET MVC (Forum) by tumickey on 3/28/2008
  • how to get IIS version ?

    uhm I find in Google and found in http://dotnetslackers.com/articles/aspnet/KiggBuildingADiggCloneWithASPNETMVC1.aspx int iisVersion = Convert.ToInt32(ConfigurationManager.AppSettings[ "IISVersion" ]); so it's no work with ii7 . help me . Thanks
    Posted to ASP.NET MVC (Forum) by tumickey on 3/28/2008
  • Re: Session State

    in controller use session HttpSessionStateBase session = HttpContext.Session; i have ex: create login controller public void Login(string id){ HttpSessionStateBase session = HttpContext.Session; // check username , pass . if(checkuser(){ session["login"] = true ; .... } create check login public bool CheckLogin() { HttpSessionStateBase session = HttpContext.Session; if (session["Login"] == null) { return false; } else { return (bool)session["Login"]; } } } ... :)
    Posted to ASP.NET MVC (Forum) by tumickey on 3/28/2008
    Filed under: session
  • Re: RedirectToAction in ActionFilterAttribute

    uhm ,that is great! Thanks .
    Posted to ASP.NET MVC (Forum) by tumickey on 3/28/2008
  • Re: RedirectToAction in ActionFilterAttribute

    public class LoginActionFilterAttribute : ActionFilterAttribute { public override void OnActionExecuting(FilterExecutingContext filterContext) { HttpSessionStateBase session = filterContext.HttpContext.Session; Controller control = filterContext.Controller as Controller; if (control != null) { if (session["Login"] == null) { filterContext.Cancel = true; control.HttpContext.Response.Redirect("./Login"); } } base.OnActionExecuting(filterContext); } }
    Posted to ASP.NET MVC (Forum) by tumickey on 3/28/2008
  • Re: howto upload file with mvc

    thanks all, i do it, to cvallance : ok don't need runat=server .
    Posted to ASP.NET MVC (Forum) by tumickey on 3/25/2008
  • Re: howto upload file with mvc

    thanks , so it's no work. I try upload in views/news.aspx .
    Posted to ASP.NET MVC (Forum) by tumickey on 3/25/2008
  • howto upload file with mvc

    I have form : < form id= "form1" runat= "server" method= "post" action= "~/news/addnew" > <input id="TI_Title" type="text" name="TI_Title"/> <input id="File1" type="file" runat="server"/> // upload file <%=Html.SubmitButton("submit","Submit") %> </ form > in newsconttroler , i can't find Reques.File to upload . so howto upload file ? thanks .
    Posted to ASP.NET MVC (Forum) by tumickey on 3/24/2008
Page 1 of 1 (9 items)