Search

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

Matching Posts

  • Re: GridView Row Count after FilterExpression when AllowPaging = True

    Using a SqlDataSource that would be: int totalRows = e.AffectedRows; In the Selected event of the SqlDataSource, this gives the total rows fected from the database, you can then use GridView.Pagesize and GridView.PageIndex to inform what rows are displaying is Paging is used. /Anders
    Posted to Data Presentation Controls (Forum) by Ajes on 4/30/2008
  • Re: Different menu for different login account

    [quote user="rasberry81"]Ajes, can u show me in codes using "User.Identity.IsAuthenticated"?. i use windows authentication.[/quote] I haven't used windows authentication, but instead Forms, but i would think it works the same way when using User object. Lets say you have a btbButton on your page, which have its visible property set to false. Then what you have to do is have this code in your codebehind file. protected void Page_Load( object sender, EventArgs e) { btbButton
    Posted to Security (Forum) by Ajes on 4/14/2008
  • Re: Creating folders from last_insert_id()

    Ok, so now i testet alot on this issue. I upgraded my .NET connector to 5.1.5, so im am able to use SqlDataSource with name parameters "?newid". Testet on a simple table "Test" with two columns id int auto_increment text char My SqlDataSource looks like this "SqlDataSource1" runat= "server" ConnectionString= "<%$ ConnectionStrings:ConnString %>" ProviderName= "<%$ ConnectionStrings:ConnString.providerName %>" InsertCommand
    Posted to MySQL (Forum) by Ajes on 4/12/2008
  • Re: Password Recovery not sending email

    Glad i could help
    Posted to Security (Forum) by Ajes on 4/11/2008
  • Re: Different menu for different login account

    You can set ASP button to Visible="false"; This you should do in the Page_Load event by checking User.Identity.IsAuthenticated Regards Anders
    Posted to Security (Forum) by Ajes on 4/11/2008
  • Re: Password Recovery not sending email

    I have a site running use the same functionality without any problems. Only difference i can see is that my from="" is with @ and domain. Try adding some to our "admin", the email does not have to exists. Hope it works out. /Anders
    Posted to Security (Forum) by Ajes on 4/11/2008
  • Image resizer control

    Hey people, I have this Custom Server Control. "C#" Class= "ShowImage" %> using System; using System.Web; using System.Data.Odbc; using System.Data; using System.IO; using System.Drawing; public class ShowImage : IHttpHandler { const int BUFFERSIZE = 1024; public bool IsReusable { get { return true ; } } public void ProcessRequest(HttpContext context) { Byte[] imgBytes = null ; context.Response.ContentType = "image/jpeg" ; String url = Utils.Decrypt(HttpUtility.UrlDecode
    Posted to Custom Server Controls (Forum) by Ajes on 4/11/2008
  • Max on datetime, with .net connector 5.1

    ´Hello people, I am rewriting my site to use .net connector 5.1, and have a problem with a select returning a date time. I use a SqlDataSource and wants to display the selected datetime like this. <% # Convert .ToDateTime( DataBinder .Eval(Container.DataItem, "submitted" )).ToString( "dddd dd MMMM kl. HH:mm" )%> This doesn't work for some reason. The datetime is selected by a sub select with max function, to get the newest datetime. Select executes fine but when evaluting
    Posted to MySQL (Forum) by Ajes on 4/4/2008
  • Re: Creating folders from last_insert_id()

    Sorry cannot execute php pages. But executed select last_insert_id from dual in a query browser for MySQL, which worked fine.
    Posted to MySQL (Forum) by Ajes on 3/31/2008
  • Re: Creating folders from last_insert_id()

    Sorry missed that last line. I have tried last_insert_id, and that returned the error posted in my previous post.
    Posted to MySQL (Forum) by Ajes on 3/30/2008
Page 1 of 4 (34 items) 1 2 3 4 Next >