Search

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

Matching Posts

  • Re: Output Empty byte[]

    If the result is null, and you write an emtpy byte array you are sending back errored data, that youare still labeling as contenttype img/jpg. I would if it's null, set content type to plain text if you want to send back an empty page. or if you want to send back an image, do something similar to your placeholder with a spacer; const string spacerPath = "..." ; In my opinion the "right" thing is to change the content type and return an empty response. you don't even need
    Posted to HttpHandlers and HttpModules (Forum) by jminond on 3/31/2009
  • Re: SiteMap roles not working

    You said ". There is no point showing users nodes that contain urls they can't actually access, that kind of negates what I like about the sitemap in that it automatically trims the navigation UI to items the user can access." That is not true at all... very often people want to show menu nodes, even if people don't have access to hit the page. Often within organizations and websties there is a difference between "Can see" "Can access" and other subsets. There
  • Re: Accessing ascx variable in javascript

    You need ClientID From inside your usercotnrol you could do something like: var gbTextUserName = <% =txtUserName.ClientID%>; var txtUser = document.getElementById('gbTextUserName'); alert(txtUser.value); ClientID is the property that gives you the ID that will be rendered out to the HTML so it will take into account naming containers, etc... control hierarchy.
    Posted to Client Side Web Development (Forum) by jminond on 3/9/2009
  • Re: No Data Present

    Once the databind is complete, the reader has probably been moved all the way to the end. what you probably want to do is attach to the RowDataBound event of the grid, and grab your values as they are being bound.... Note that I have no idea what your three fields are : EGC_IDx, EGC_TYP_CDx, STR_IDx < asp:GridView runat=" server " ID=" theGrid " OnRowDataBound=" Grid_OnRowDataBound " > < /asp:GridView > protected void Grid_OnRowDataBound( object sender, GridViewRowEventArgs
    Posted to Web Forms (Forum) by jminond on 3/9/2009
  • Re: whats wrong with this code behind for my submit button

    Are you trying to tell me that if you do: Session[ "stat" ] = 'E' ; Trace.Write(Session[ "stat" ].ToString()); // At this point you are saying "stat" is not there? SqlDataSource2.Update(); Or... Are you saying when you come back to the page, or the next page, the session variable is not there? ---------------------------------------------------------------------------------------------------------------------------------------------------------- SqlDataSourceUpdate
    Posted to Web Forms (Forum) by jminond on 3/9/2009
  • Re: tracking user activity in a website

    1) you need to extend the "Actiivy Log" database to support extra informatio you want to add. Such as adding columns or an XML field for your needs. Say you had a colum Action, Column OldValue, Column NewValue - Combined with the existing fields you have page, user, action, old and new value.... you can add more if you need / want. 2) From his sample, the method: protected void LogActivity( string activity, bool recordPageUrl) you would want to add string oldValue, string newValue (or whatever
    Posted to Security (Forum) by jminond on 3/9/2009
  • Re: Modify Xml attribute with SQL

    Then your question belongs in a sql forum http://social.msdn.microsoft.com/forums/en-US/sqlxml/threads/
  • Re: Modify Xml attribute with SQL

    Then your question belongs in a SQL Forum: http://social.msdn.microsoft.com/forums/en-US/sqlxml/threads/
  • Re: tracking user activity in a website

    What you found on that site is fine. You need to 1) Extend Figure 1: The ActivityLog table models the activity log. 2) Extend this method: protected void LogActivity( string activity, bool recordPageUrl) 3) You need to extend by addint information based on the Actions you are talking about. You could do this a number of ways with enums, or simple strings, you will now based on what you have to do. You could store a piece of XML that states <oldvalue><newvalue><editedvalues> Whateeer
    Posted to Security (Forum) by jminond on 3/9/2009
  • Re: How can i do read utf-8 .txt file and save-as ansi with same name?

    In short, something along the lines of this should work, I am not sure you might not have issues as UTF carries more info than ANSI, so some might get lost? Also, you probably want to dispose, try catch, etc.... System.IO. FileStream fs = System.IO. File .OpenRead("file.txt"); byte [] bytes = new byte [fs.Length]; fs.Read(bytes, 0, ( int )fs.Length); fs.Close(); System.Text. Encoding inputEnc = System.Text. Encoding .UTF8; System.Text. Encoding outputEnc = System.Text. Encoding .Default;
    Posted to C# (Forum) by jminond on 3/9/2009
Page 1 of 60 (592 items) 1 2 3 4 5 Next > ... Last »