User Profile

Collapse

Profile Sidebar

Collapse
dotneto
dotneto
Last Activity: Jul 30 '09, 09:56 PM
Joined: Feb 19 '07
Location: Costa Rica
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dotneto
    replied to Silverlight Mediaelement to play Video
    avi??

    Please read this or watch the proposed video.

    I don't think media element supports avi files.
    See more | Go to post

    Leave a comment:


  • dotneto
    replied to Error in PDF Generation(Urgent)
    in .NET
    Could you post some code?...
    See more | Go to post

    Leave a comment:


  • dotneto
    replied to restricting non-ASP.NET content
    in .NET
    Yes, using location for the files is the cleanest way to do that.

    What you could also do is deny acces to unauthenticated users and grant acces to the specific role where your html files are. In you web.config:

    Code:
    <authentication mode="Forms">
    <forms loginUrl="/yoursite/default.aspx" name="name" timeout="20" protection="All" path="/">
    ...
    See more | Go to post

    Leave a comment:


  • row.FindControl doesnt work for controls inside the edititemtemplate

    Hi, I have a gridview with some templatecolumns , I need to retrieve the value from a textbos inside a edititemtemplat e in the rowupdating event. I can get other controls using findcontrol method in the current gridviewrow, but It always returns null when I try to access the controls inside the edititemtemplat e. I'm not using objectdatasourc e, just a plain grid and I'm doing this to bind the grid:

    Code:
            If Not Page.IsPostBack Then
    ...
    See more | Go to post

  • dotneto
    replied to Update is not working
    in .NET
    i'm glad you found the solution
    bye....
    See more | Go to post

    Leave a comment:


  • dotneto
    replied to Update is not working
    in .NET
    OK, have you checked that the record with this data exists:
    Code:
    where
    reason.EmployeeNominationID=@EmployeeNominationID and  
    reason.datecreated =@datecreated
    because I don't see why you compare with the @datecreated parameter, I think that parameter doesn't have any value and that makes that the update never happens.
    Is employee nomination Id a unique value?, if so, try this part:
    Code:
    where
    reason.EmployeeNominationID=@EmployeeNominationID
    ...
    See more | Go to post

    Leave a comment:


  • dotneto
    replied to Update is not working
    in .NET
    Sorry, I'm maybe not understanding but i'll guess, maybe
    reason.datecrea ted =@datecreated is what makes it doesn't updates, because you are not passing any meaningful value to this parameter. Is an output parameter and it doesn't seem to be initialized. Maybe it makes that the updates never happens.


    Hope it helps.
    See more | Go to post

    Leave a comment:


  • dotneto
    replied to Password Regular Espression
    in .NET
    I don't get what are you tring to do with your regex, but it seems like too compicated.
    Look, at the first part, ^($=.*\n), this expression will match the start of the line only, since you are using ($=, this is a regex token to look for a char with some other ahead of it.

    in example, a($=b), will look for an a followed by a b, like ab, but will only match the a. So ^($=.*\n) will match if there is any character or none...
    See more | Go to post

    Leave a comment:


  • I'm glad it helped you....
    See more | Go to post

    Leave a comment:


  • dotneto
    replied to Password Regular Espression
    in .NET
    yes, ^ and $ mark the beggining and end, ^ is only negation when you use it insede square brackets.
    Maybe you can explain us your password policy and we can help you built your regex?...
    See more | Go to post

    Leave a comment:


  • dotneto
    replied to Regarding RegularExpression
    in .NET
    Maybe this one?

    ^[1-3]{1,3},[1-3]{1,3}$...
    See more | Go to post

    Leave a comment:


  • I may be wrong, but i think that is simply no possible and you'll have to rewrite the control for the web application.
    Windows user controls don't inherit from the same classes as the web controls.

    If it is possible, I'll love to know how though. But i'm pretty sure is not....
    See more | Go to post

    Leave a comment:


  • Please try this one, instead.

    Code:
    ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "alert('hello');" + Page.ClientScript.GetPostBackEventReference(this, "") + ";", true);
    ...
    See more | Go to post

    Leave a comment:


  • Hi, I'm not an expert or something.
    I think the best way to validate user input(client side) is with a regular expresion validator control, maybe use something like this for the expression.
    ^\d+$

    if there is an expert on regex, please check if the expression works.
    See more | Go to post

    Leave a comment:


  • dotneto
    replied to IE& back forward button
    in .NET
    Please If anyone has an idea, I'll realy like to know why this happens....
    See more | Go to post

    Leave a comment:


  • dotneto
    replied to Gridview rows inverse order
    in .NET
    Got an answer from a friend. The grid mantained the sort expression and sort direction so it resorted the data after the data came from the datasource.
    Fixed by resetting the values of sortdirection to the right ones. Like : e.sortdirection = "ASC", or e.sortdirection = "DESC".
    See more | Go to post

    Leave a comment:


  • dotneto
    started a topic Gridview rows inverse order
    in .NET

    Gridview rows inverse order

    Hi,
    I'm working on a gridview with an object datasource. I send the sort expression and sort order to the selecting method through a parameter. It works fine in the ascending order, but in the descending order, when the grids navigates to the first page and shows the data for that page, the first row is in the last position, the last in the first and so on.
    If I navigate away, to another page in the grid, the data is fine, and if...
    See more | Go to post

  • dotneto
    replied to IE& back forward button
    in .NET
    Hi, maybe if you could se the code, this is an example:

    Code:
                FileStream fs;
                string strPath = Server.MapPath("~/pdf/");
                string strFileName = "vista_upgrade_flowchart.pdf";
                fs = File.Open(strPath + strFileName, FileMode.Open);
    
                byte[] bytBytes = new byte[fs.Length];
                fs.Read(bytBytes, 0, (int)fs.Length);
    ...
    See more | Go to post

    Leave a comment:


  • dotneto
    started a topic IE& back forward button
    in .NET

    IE& back forward button

    Hi,
    There is a strange behaviour with ie7 and browsing history. In a page (aspx), the user can download a file. If he navigates back from that page, the page is lost(from browsing history), an sometimes it navigates to another page, the previous, is there is one.
    I mean,you were in page 2 an navigate to page 3, download the file and everything and click the back button, you were supposed to be taken to page 2 again, but no, the page...
    See more | Go to post

  • Thank you guys, a solution:

    I finally found a solution to this. Thanks to
    this blog

    And thank you guys for your help.
    See more | Go to post
    Last edited by dotneto; Jul 13 '07, 08:55 PM. Reason: Forgot something

    Leave a comment:

No activity results to display
Show More
Working...