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
T

thowra

@thowra
About
Posts
480
Topics
37
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Export to Excel Date Format for UK
    T thowra

    Simplest method turned out to be iterating through the list, parsing any DateTime fields with the DateTime.Parse() method specifying "en-GB" CultureInfo as the DateTimeFormat parameter :cool:

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    ASP.NET wpf wcf help question learning

  • Export to Excel Date Format for UK
    T thowra

    Hi, My web application exports a List of objects to an Excel spreadsheet by creating a DataGrid and binding it to the List. The objects that the List contains include columns whose type is DateTime and while the resulting spreadsheet correctly lists all the objects, the date format is US instead of UK (which is what I want) - to be expected really. I can, of course, create a new object class and copy each object in the List to a second List of these new object types and bind the DataGrid to that but I'll have to do the same for every list of object types I want to export. Can anyone suggest a simple method to resolve this issue? Thanks :)

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    ASP.NET wpf wcf help question learning

  • Filtering a GridView on a column using checkboxes
    T thowra

    Try CheckBoxList You can iterate through the list and get the text value of each item whose Checked value is True.

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    ASP.NET question

  • TechNet Magazine RIP
    T thowra

    Henry Minute wrote:

    ...and I'm sure I saw a photograph of a woman, once. Big Grin

    A what now? :D

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    The Lounge help question

  • Sending sms through .Net C# Windows Application
    T thowra

    If you're going to be using an SMS gateway, your service provider will almost certainly have some sort of developer's guide. I've used an SMS gateway myself and I was able to download an excellent developer's guide which documented all the calls and even provided sample code. They also provided me with free credits to try the gateway out and a "test mode" which allowed me to test my code before I started actually sending text messages beyond the gateway. So, in summary, speak to your gateway provider and at the risk of generalising, if they don't provide a decent development guide, look elsewhere ;)

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    C#

  • How can I use regex to match CSV record?
    T thowra

    This: ",(?=([^\"]*\"[^\"]*\")*(?![^\"]*\"))"

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    C# regex question help

  • FormView Insert record containing DropDownList value
    T thowra

    Hi, I've built a FormView with a number of fields and a corresponding insert template. It works fine and I can insert a record with no problem. However, I now want to replace one of the text fields with a dropdownlist so I can select from a number of fixed options. I've supplied a data source which references a small list of values table: DataSourceID="sdsProducts" DefaultMode="Insert"> Name: Type: DataSourceID="sdlType" DataTextField="Value" DataValueField="ID" /> ConnectionString="<%$ ConnectionStrings:myConnStr %>" SelectCommand="SELECT * FROM [lovType]"> ConnectionString="<%$ ConnectionStrings:myConnStr %>" InsertCommand="INSERT INTO [tblProducts] ([Name], [Type]) VALUES (@Name, @Type)"> I can see the values in the dropdownlist but it doesn't seem to insert any value for the dropdownlist. I'm having no luck with this at all. Is it even possible to place a dropdownlist control in a FormView's InsertItemTemplate? Thanks for looking :)

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    ASP.NET help question

  • Source Code Control Advice - Remote Working
    T thowra

    Hi, I've been developing a number of applications for my own company over the past couple of years and I've reached a point where I really need to start using a source code control system. I've used them in the past of course including Visual Source Safe, CVS and so on but what I really need is to take advantage of a server-based system as I have a Windows 2003 server in a data-centre and I would like to submit my code and my changes via a suitable web client. All my development is in Visual Studio 2005 and soon-to-be 2K8. I tend to be out and about on a laptop so a lot of my development is done remotely - I spend a lot of time in hotels! What would people advise for a single user that needs to use a server to host their code over the Internet? I looked at Perforce which is supposedly free for a single user. Is that a good place to start? Thanks for looking :)

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    IT & Infrastructure csharp visual-studio sysadmin question learning

  • Handling a SoapException
    T thowra

    Make sure your web service is throwing an actual SoapException rather than just an Exception. You can throw one as easily as this:

    throw new SoapException("My Error Text", SoapException.ClientFaultCode);

    You'll get a more "concise" message that way. For more general information see here[^].

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    ASP.NET question wcf sysadmin data-structures debugging

  • Scheduled command line application
    T thowra

    Rewrite it as a Windows service if it won't need user interaction.

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    C# help question

  • GridView: Bind data to template column
    T thowra

    Try this:

    <asp:TemplateField HeaderText="Product Code">
    <ItemTemplate>
    <asp:Label ID="abc" runat="server"
    Text='<%# Eval("Product.Code") %>'>
    </asp:Label>
    </ItemTemplate>
    </asp:TemplateField>

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    ASP.NET question csharp asp-net wpf wcf

  • Best way of generating a lookup table
    T thowra

    Use XmlTextWriter. For part key pairs, try this:

    XmlTextWriter 
    

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    C# xml tutorial question

  • Application settings in constructor
    T thowra

    How about this:

    _MySetting = (ConfigurationManager.AppSettings["MySetting "] == null) ? "default value" : ConfigurationManager.AppSettings["MySetting"]);

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    ASP.NET question

  • Datagrid - how to avoid adding an item
    T thowra

    Hi, I'm populating a datagrid in ASP.NET 1.1 and after binding it to a collection, the ItemDataBound event allows me to access the data after it's entered as a row into the grid. I can add tooltips to the individual cells depending on the cell value and so on, which is very useful. However, I also have need to exclude some of my items from ever being displayed in the grid and so I'd like to handle an event which occurs before each row in the datagrid is populated. In this way I can filter the contents of my datagrid rather than apply any filtering to the collection class which for one reason or another, I don't wish to do. Is there any way of capturing the item *before* it's added to the grid to stop it ever being displayed? In other words, can I filter a grid at this level?

    Evil cannot be conquered in the world... It can only be resisted within oneself.

    ASP.NET csharp css asp-net wpf wcf

  • VS2005 Beta Fonts/Colours
    T thowra

    Same old problem from VC++ 6.0's IDE - there's no 'Apply' button on the dialog when you're choosing alternative fonts/colours. Worse still, I had to restart VS2005 Beta to see some of the changes and when I tried resetting to the default colours, it decided it needed to send an error report to MS :| Evil cannot be conquered in the world... It can only be resisted within oneself.

    Visual Studio help c++ visual-studio beta-testing

  • Security
    T thowra

    If you're using ASP.NET authentication you can do a check on each "protected" page to see if the user is authenticated, by examining the User.Identity.IsAuthenticated property. Evil cannot be conquered in the world... It can only be resisted within oneself.

    ASP.NET question csharp asp-net security regex

  • Spiderman meets Counter-Strike
    T thowra

    Spiderman n00b tbh!!!1[^] OH NOES!!!1 Evil cannot be conquered in the world... It can only be resisted within oneself.

    The Lounge com

  • London won!
    T thowra

    Trollslayer wrote: I wonder if Paris lost by one Finnish vote... :cool: :D Evil cannot be conquered in the world... It can only be resisted within oneself.

    The Lounge

  • Google Bombed ... again ?
    T thowra

    It's whom! ;) Evil cannot be conquered in the world... It can only be resisted within oneself.

    The Lounge com question announcement

  • Laptops
    T thowra

    I thought they weren't called laptops anymore because they burn your leg and it's too easy to cover the ventilation holes and overheat the machine. I thought the PC (no pun intended) term was "notebook". "Oh, I'm sick of doing Japanese stuff! In jail we had to be in this dumb kabuki play about the 47 Ronin, and I wanted to be Oshi, but they made me Ori!"

    The Lounge com tools question announcement
  • Login

  • Don't have an account? Register

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