Search

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

Matching Posts

  • Manually log in

    I'm using a Login control to authenticate users. But is it possible to authenticate them without it? I thought I could set the Page.User.Identity property manually, but it's read-only. Is there any other way?
    Posted to Security (Forum) by tsw_mik on 9/18/2009
  • Re: Manually log in

    Ok, I've got it: FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(user.Login, true, 10); FormsIdentity id = new FormsIdentity(ticket); HttpContext.Current.User = new GenericPrincipal(id, null); string hash = FormsAuthentication.Encrypt(ticket); HttpCookie cookie = new HttpCookie(FormsAuthentication.FormsCookieName, hash); if (ticket.IsPersistent) { cookie.Expires = ticket.Expiration; } this.Page.Response.Cookies.Add(cookie);
    Posted to Security (Forum) by tsw_mik on 9/18/2009
  • Re: Manually log in

    I'm using forms authentication, so I've modified this as shown below: FormsIdentity id = new FormsIdentity(new FormsAuthenticationTicket(user.Login, true, 10)); HttpContext.Current.User = new GenericPrincipal(id, null); and it seems to set the Page.User.Identity properly, but the value is lost when I try to go to another page. What's missing/wrong?
    Posted to Security (Forum) by tsw_mik on 9/18/2009
  • Microsoft.Jet.OLEDB

    I'm having some difficulties with generating excel files using Microsoft.Jet.OLEDB . Everything works fine locally, but not on the server. The error I'm getting is: type=System.Data.OleDb.OleDbException message=No error message available, result code: E_FAIL(0x80004005). Should the server have Office installed in order to use it? Or does it not matter? I don't have direct access to it and can't check too many things, but is it possible that it's the lack of privileges that's
    Posted to Getting Started (Forum) by tsw_mik on 7/29/2009
  • Web serice and Forms Authentication

    I need some basic security for a web service. I was thinking of forms authentication. I've set up some users in the web.config: < authentication mode = " Forms " > < forms name = " ServiceCookie " loginUrl = " Service.asmx " protection = " All " timeout = " 60 " path = " / " > < credentials > < user name = " user " password = " pass " /> </ credentials > </ forms > </ authentication
    Posted to XML Web Services (Forum) by tsw_mik on 7/17/2009
  • Post a form without redirecting?

    A short description of the problem... In Email class there's a Send method, which sends emails. The problem with it is that it doesn't work on the server that it needs to be (let's call it S1), but would work fine if placed on a different server (S2). There's nothing I can do about this as a developer, because it's a admin setting, that I can't change. The application needs to stay on S1, but I was asked to put the email sending functionality in a separate place (e.g. standalone
    Posted to Web Forms (Forum) by tsw_mik on 7/17/2009
  • Re: Post a form without redirecting?

    Yes, thanks. I've already figured it out. HttpWebRequest is the answer.
    Posted to Web Forms (Forum) by tsw_mik on 7/17/2009
  • GridView + SqlDataSource + UpdateQuery (and Query Builder)

    I'm using a SqlDataSource as a source for a GridView. I've added the Edit column and want to set up the UpdateQuery. I can see a query builder, but have no idea how to pass the row values as parameters to the query. Any clues?
    Posted to Data Presentation Controls (Forum) by tsw_mik on 6/18/2009
  • Re: DataGrid columns

    To do that I would have to ASSUME that the DataSource is a DataSet or DataTable and cast the object to it, but I need a generic solution that would work with any type of a source (e.g. generic List etc.).
    Posted to Data Presentation Controls (Forum) by tsw_mik on 6/18/2009
  • GridView Pager style

    Is there a way to replace the default paging style with a dropdown list or a textbox for page number? To get to the last page, if there are many records, requries far too many clicks.
    Posted to Data Presentation Controls (Forum) by tsw_mik on 6/18/2009
Page 1 of 27 (270 items) 1 2 3 4 5 Next > ... Last »