Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

aplope

@aplope
About
Posts
10
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Circumcision
    A aplope

    We had our first son circumcised and plan to have our second son (due in about a month) circumcised. We had no real opinion on the matter with our first until our birth class instructor told us about men going through basic training having to take up to a week to recover from circumcision. Seems all the training and such led to not being able to keep the organ clean enough and getting lots of infections. So the men would then elect to have the circumcision which from what I have gathered is more traumatic later in life than it is for an infant. Plus, you can't really count on little boys having great hygenic practices. Also knew a women married to an uncircumcised man. She said she had lots of yeast infections and female issues because of her husband. :suss: Knowing what I know of this woman now, this information may be circumspect, but still might be true. Something to consider. Given the right pain medications and such, I don't believe there is any harm to the boy to have him circumcised. As for reducing sexual performance, interest, etc., I find it hard to believe from what I observe in society and my own marital relations. Good luck! Pegmeister

    The Back Room question com

  • data grid
    A aplope

    Check out this article on 4guysfromrolla.com. It's the best thing out there (IMO) for adding a checkbox column in a datagrid. An Extensive Examination of the DataGrid Web Control: Part 11[^] Pegmeister

    C# css help question

  • how to access a method/variable declared in a web user control form(.ascx) from a web form(.aspx) (C#)
    A aplope

    Found this article on the web. Seems to address your problem quite adequately. http://aspalliance.com/articleViewer.aspx?aId=67&pId=-1 Pegmeister

    ASP.NET csharp tutorial question

  • what's the name of mail server?
    A aplope

    It seems to me that you would need to ask your network administrator for this information. This kind of info is specific to each network. Pegmeister

    IT & Infrastructure csharp sysadmin help question

  • DaataGrid Columns
    A aplope

    This has been done on 4guysfromrolla.com. Here's the link: http://aspnet.4guysfromrolla.com/articles/122602-1.aspx Pegmeister

    C# help question

  • get row number after datagrid sort
    A aplope

    There are two different methods that can be used to do this. (Please be sure to check MSDN on the datagrid to get more details about both). I color the column (not a row) that has just been sorted in an "OnItemCreated" procedure. I check to make sure the item is an Item or an Alternating Item and then I get the back color like this:

    e.Item.Cells[m_iSortColumnIdx].BackColor = (System.Drawing.Color) new ColorConverter().ConvertFromString("#CCFFCC");

    The other procedure you can use is the "OnItemDatabound" procedure. Again, you have to check to make sure the item is an Item or an Alternating Item. From this method, you can access each of the cells and a number of attributes for that cell: text, back color, fore color, alignment, columnspan, class, etc. So if you know the column number (zero-based), you can also get the text. Here's how I format my social security numbers in my very first column of my datagrid.

    e.Item.Cells[0].Text = Utils.FormatSocial( (string)DataBinder.Eval(e.Item.DataItem, "social_num") );

    I believe if you wanted to color the whole row, you might need to loop through each of the cells and set the color in the loop. (From what I remember of trying to do this in the past, this is how I had to change the style class or the color for an entire row). You might also try 4 Guys From Rolla which is running an EXTENSIVE examination of the datagrid. You might find some discussion of these methods in that set of articles. The latest is # 17. Pegmeister

    C# css algorithms help

  • Sending data back to referer
    A aplope

    On the page that will call the popup, set your link to something like this:

    <A href="javascript:calendar_window=window.open('[popup-name].aspx?formname=Form1.DueDate','calendar_window','width=210,height=188');calendar_window.focus()">
    Select New Due Date</A>

    You will need to insert a literal control onto your popup page first. In the event method that fires to show your user has selected whatever, you will need to put this string into your literal control:

    <script language='javascript'>
    window.opener.(Request.QueryString["formname"]).value = '[new value]';
    window.close();
    </script>

    Obviously, replacing the form name item and the new value item with something specific to your situation. Pegmeister

    Web Development javascript tutorial question

  • Displaying data in rows not columns!
    A aplope

    Just so happened I was browsing the Code Project site today and ran across this article: http://www.codeproject.com/aspnet/Datatable.asp It addresses the exact problem you mention here. Pegmeister

    ASP.NET

  • U can help
    A aplope

    Hitting the Enter button will submit the form you are working on. You can add an "onchange" attribute to the textbox which will call the javascript. The limitation is, however, that the user has to change some text and then exit the textbox. (IIRC, "onblur" does the same thing only is called ANY time a user exits the text box and not just when text has been entered). There is the "onsubmit" event of a form tag. When the user hits enter, this event is fired. Please note, however, that if you do not want the form to actually be submitted (as in the case of validation, then you have to be sure to return false from your function and have something like

    ..

    Pegmeister

    Web Development javascript help tutorial question

  • Link Validation
    A aplope

    Seems to me you should use the System.IO class and then the File.Exists() method. For this method to work, you would need to know the file path for "http://xxx.xxx/report/". Once you know that and the file name, if File.Exists(FullFilename) then 'show file end if Pegmeister

    Web Development csharp windows-admin help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups