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
D

DFU23

@DFU23
About
Posts
170
Topics
24
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • What would you do if your Boss asks you to UNINSTALL FIREFOX
    D DFU23

    Comply ... and then use Portable FireFox from your memory stick! It is not installed on you machine!

    Wally Atkins
    Newport News, VA, USA
    http://wallyatkins.com

    The Lounge question career

  • Ok, I'm coming around to it, IE does in fact suck
    D DFU23

    When I initially wrote my little Minesweeper JS game[^] I included a small recursive function to clear space on the game board and with IE it was slow enough to may the game unplayable to a good Minesweeper. When Firebird, the early name of FireFox, came out I noticed that the game play had no lagging at all ... like it thought it should ... because it is not a complex routine by any stretch. This was my immediate switch from ever using IE again. You are right though, this fact about IE is not raised enough. There are plenty of other things to harp on IE about though ... You guys are familiar with /IE7/[^], right?

    Wally Atkins
    Newport News, VA, USA
    http://wallyatkins.com

    The Lounge help javascript testing beta-testing performance

  • Default Outlook 2003 reply Font/Color
    D DFU23

    Tools -> Options ... Mail Format tab Fonts ... button

    Wally Atkins
    Newport News, VA, USA
    http://wallyatkins.com

    The Lounge linux tutorial question

  • Weird crap from work
    D DFU23

    Nothing ... the cheap b@st@rds ...

    Wally Atkins
    Newport News, VA, USA
    http://wallyatkins.com

    The Lounge question

  • Records That stand the test of time
    D DFU23

    Led Zep - In through the out door.

    Wally Atkins
    Newport News, VA, USA
    http://wallyatkins.com

    The Lounge com tools question

  • What tv show makes you..
    D DFU23

    One good thing about watching survivor this season has been seeing Richard Hatch bit on the arm by a shark (dog fish?). I was LMAO at that.

    Wally Atkins
    Newport News, VA, USA
    http://wallyatkins.com

    The Lounge question discussion

  • Move over fellow CPians...
    D DFU23

    hit select before start for 2 players!

    Wally Atkins
    Newport News, VA, USA
    http://wallyatkins.com

    The Lounge com

  • which is better...
    D DFU23

    xhtml 1.1 :-D

    Wally Atkins
    Newport News, VA, USA
    http://wallyatkins.com

    Web Development linux

  • How do I change the apperance of datetimes in a datagrid?
    D DFU23

    Like Mazdak said, you can change the display of the DateTime object when it is databound to the DataGrid. Example ASPX:

    <asp:DataGrid runat="server" id="MyDataGrid" AutoGenerateColumns="false">
    <columns>
    <asp:TemplateColumn HeaderText="Date/Time">
    <ItemTemplate>
    <asp:Label ID="lblDate" Text='<%# DataBinder.Eval(Container.DataItem, "MyDate") %>' runat="server" OnDataBinding="lblDate_DataBinding" />
    <ItemTemplate>
    </asp:TemplateColumn>
    </columns>
    </asp:DataGrid>

    In the code behind:

    private void lblDate_DataBinding(object sender, System.EventArgs e) {
    Label lblDateTime = (Label)sender;
    DateTime dteDateTime = System.Convert.ToDateTime(lblDateTime.Text);
    lblDateTime.Text = dteDateTime.ToString("MMM dd YYYY");
    }

    If you want to let the user choose the format I guess you could put DropDownList on the page with available formats and whenever that changes grab the format string to use it in the ToString method of the DateTime object. Should work. (?) Let me know.

    Wally Atkins
    Newport News, VA, USA
    http://wallyatkins.com

    ASP.NET help question

  • image button event handler
    D DFU23

    Most likely ... When doing the Server.Transfer it becomes the first request for the page (URL is different) and loses the ViewState because it is not a PostBack. Just my stab in the dark.

    Wally Atkins
    Newport News, VA, USA
    http://wallyatkins.com

    ASP.NET sysadmin question

  • Asp.net
    D DFU23

    Only works in Internet Explorer: Here's a link to some examples.

    Wally Atkins
    Newport News, VA, USA
    http://wallyatkins.com

    ASP.NET csharp asp-net

  • Repeater Control Problem
    D DFU23

    This assumes that your images are in a folder named "images" which is in the root of the web site and that the field "Image1" in the database contains only the image file name. If this is the case you just need to concatonate the path to the images to the filename, as is done above. The third parameter of the DataBinder.Eval function is for formatting the data (i.e. "{0:c}" is used to format a number to currency). There might be a way to do what you want through this parameter but contatonating the path will get the job done.

    Wally Atkins
    Newport News, VA, USA
    http://wallyatkins.com

    ASP.NET help database docker

  • How to clear the SmartNavigation position programatically?
    D DFU23

    You could use an anchor tag to go to a certain spot on the page ... <a name="GoHere">Go Here</a> The trick would be getting that into the form action ... MyForm.aspx#GoHere

    Wally Atkins
    Newport News, VA, USA

    ASP.NET question tutorial

  • If you didn't just wet your pants...
    D DFU23

    Right ... it's an IE "feature" where you can open a new window (or windows) in fullscreen mode which removes all of the "chrome" (toolbars, menubars, statusbar, titlebar ... everything) of a normal browser window. This can then be resized so it no longer takes up the full screen and you can do anything with it you like ... malicious if you so choose. Definitely a potential security hazard ... if a person with little computer knowledge came to a site that opens itself into full screen mode they may not even know how to close the window (with Alt+F4) or get even back to their desktop.

    Wally Atkins
    Newport News, VA, USA

    The Lounge com learning

  • What did you dream last night?
    D DFU23

    Last night I dreamed that I had to get up about four times throughout the night to bring one of my 5 month old twin boys to our bed so momma could passify them back to sleep ... Oh, nevermind ... it wasn't a dream ... am I awake yet?

    Wally Atkins
    Newport News, VA, USA

    The Lounge csharp html com graphics question

  • Aligning with CSS
    D DFU23

    try something like this on a containing DIV (or whatever elements suits the need):

    #container {
    position: relative;
    width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    border: 0px;
    }

    Wally Atkins
    Newport News, VA, USA

    Web Development css help

  • Increasing acronym popup time
    D DFU23

    I think that this is a system setting (info box) that could possibly be tweaked through the registry or something like that ... otherwise you could use something like this: http://webfx.eae.net/dhtml/tooltip/tooltip.html or this http://webfx.eae.net/dhtml/helptip/helptip.html to control the delay time ...

    Wally Atkins
    Newport News, VA, USA

    Web Development html question

  • Default submit
    D DFU23

    IE will treat the "Enter" button as submitting the form ... that is its nature. What I have found is that if there is even one button (that is an INPUT of type SUBMIT) the "Enter" button can be an annoying feature to handle because of this nature. You can avoid this by making the buttons of type BUTTON but this is probably not a good viable option because I would assume that you are using the Web Control asp:Button which is of type SUBMIT. So, using javascript to capture the keydown, or keyup, or keypress event(s) is probably going to be your best method of blocking this "feature".

    Wally Atkins
    Newport News, VA, USA

    ASP.NET question

  • printing an ASP page
    D DFU23

    not without some sort of active-x control or plug-in ...

    Wally Atkins
    Newport News, VA, USA

    ASP.NET question

  • Edit Datagrid row On Double Click
    D DFU23

    That's what my code example attempts to do ... but my question is how will the user then save the changes? Are the buttons still there for functionality or are you trying to get around using the buttons completely?

    Wally Atkins
    Newport News, VA, USA

    ASP.NET csharp 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