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
S

suzyb

@suzyb
About
Posts
234
Topics
56
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Plcaeholder removing whitespace between controls
    S suzyb

    Sorry I haven't explained what I mean properly. I don't want the controls to render on a new line. I would like the whitespace kept in the html output so it gives that single space. I've added the html below to better explain. This is what the controls in the placeholder output like, no whitespace between them even though there is whitespace / line breaks in the ASCX files as shown in my original post.

    <label for="ContentPlaceHolderDefault_MainContent_MainContent_ContactForm_18_School" id="ContentPlaceHolderDefault_MainContent_MainContent_ContactForm_18_lblSchool">School (if applicable):</label><input name="ctl00$ctl00$ctl00$ctl00$ContentPlaceHolderDefault$MainContent$MainContent$ContactForm_18$School" type="text" maxlength="50" id="ContentPlaceHolderDefault_MainContent_MainContent_ContactForm_18_School" />* required* invalid

    ASP.NET html

  • Plcaeholder removing whitespace between controls
    S suzyb

    I have a couple of placeholders in a form to hide / show fields depending on a boolean. My form controls are all laid out like the following, each contol is on it's own line and when output as html (afaik) should still be on it's own line.

    School (if applicable):

    I have found however when the controls in the placeholder are rendered they all squashed up with no whitespace in betweeen them. It seems the placeholder is removing the whitespace. Is there any way to stop this.

    ASP.NET html

  • Checking the size of a cookie
    S suzyb

    Thanks for the advice. What I've done is check for a little less than the max value though to allow for the other information (expiry etc) that is written with the cookie data.

    ASP.NET question

  • Checking the size of a cookie
    S suzyb

    I want to write some tracking information to a cookie. When the cookie reaches it's max size I want to overwrite the final value or 2. How do I check the size of a cookie though.

    ASP.NET question

  • Different object depending on variable value
    S suzyb

    I thought of an interface but couldn't see how it would work. Strategy pattern sounds like a proper programming thing and not something a hack merchant would be able to do :-O

    C# tutorial database question

  • Different object depending on variable value
    S suzyb

    I am trying to implement a multi page form on a site that will be used for 3 different types of applicant. Each of these 3 types will fill in their personal details before filling in different sections of the form depending on type. I currently have a base class with the shared personal details and derived classes for the 3 specific types. In my form however I don't know how to create the correct object based on the type of applicant without having a lot of duplicate code. Here is a cut down example of my code. This is an example of the classes

    public class BaseApplication
    {
    public bool FirstName { get; set; }
    public bool LastName { get; set; }

    public virtual void Save()
    {
        // write first name and last name to database
    }
    

    }

    public class StudentApplication : BaseApplication
    {
    public bool SupportNeeds { get; set; }

    public override void Save()
    {
        base.Save();
    
        // write support needs to database
    }
    

    }

    And this the part of the page where I want to create the object.

    ?? app;
    switch (courseType)
    {
    case "31":
    app = new StudentApplication();
    break;
    case "32":
    app = new AdultApplication();
    break;
    }

    app.FirstName = FirstName.Text;
    app.LastName = LastName.Text;
    app.SupportNeeds = SupportNeeds.Text;

    app.Save();

    I don't know what to declare app as as it can be one of 3 types depending on the value of courseType.

    C# tutorial database question

  • wireless hotspots
    S suzyb

    I know to be careful to stop people getting access to your data but it never occured to be there could be sniffing for passwords. Thanks for the link. I'll check it out. SuzyB If I had a better memory I would remember more.

    The Lounge adobe performance learning

  • wireless hotspots
    S suzyb

    Marc Clifton wrote:

    Albeit. Sorry, it's my nature.

    :doh: SuzyB If I had a better memory I would remember more.

    The Lounge adobe performance learning

  • wireless hotspots
    S suzyb

    I'm going to be taking my laptop on the road soon. To the US actually, so its more of taking it to the air ;P. And I'm wondering about wireless broadband connections. The hotel I'll be staying at has one and of course there are various hotspot locations around the place. Is it possible (and acceptable) to download large files (possibly > 300Mb) and use a BitTorrent client. Is it simply a case of being able to access the internet like its your own connection (all be it with however many other people sharing it) or is there limits on what you can download or does it depend on the connection. SuzyB If I had a better memory I would remember more.

    The Lounge adobe performance learning

  • Powered speakers
    S suzyb

    OK thanks. That helps me understand things a little better. SuzyB If I had a better memory I would remember more.

    Hardware & Devices performance question

  • Powered speakers
    S suzyb

    I tried the speakers with my portable cd player (yes I even dug that relic out of the cupboard) and with another PC. When connected to the cd player sound could be heard when the speakers were switched on but even at maximum volume the sound was barely audible. With the PC, sound could be heard through both powered and non powered speakers but again even at max volume the sound was barely audible. All I'm trying to do is establish if the speakers work so I can flog them. :sigh: SuzyB If I had a better memory I would remember more.

    Hardware & Devices performance question

  • Powered speakers
    S suzyb

    I have a set of powered speakers that do not seem to be working. When the speakers power is switched off I can hear sound from the speakers although it is extremely quiet. To hear the sound at a decent level the source volume has to be up extremely high. However when I switch the speakers power on I get no sound from the speakers at all despite the power light indicating the speakers are getting power. It is my understanding powered speakers amplify the source no matter what it is so I tried connecting the speakers to my laptop as well as my mp3 player but no sound could be heard from either except when the speakers power was off. Is there any reason this could be happenning or is it a case of broken speakers? SuzyB <i>If I had a better memory I would remember more.</i>

    Hardware & Devices performance question

  • New York Hotel Recomendations Wanted
    S suzyb

    Mid May, probably for 4 or 5 days. Then I'm hoping to travel around a bit before returning home. Thats why I didn't want to pay too much to stay in NYC. Anyway I'll have a look at the sites mentioned and see. SuzyB <i>If I had a better memory I would remember more.</i>

    The Lounge performance question

  • New York Hotel Recomendations Wanted
    S suzyb

    Can anyone recomend a decent hotel in New York City? I'm ideally looking for one around the £100 ($175) mark. I'll probably be spending a good part of the evening in my hotel room so I'd like it to be comfortable but the hotel itself doesn't have to have lots of facilities. SuzyB If I had a better memory I would remember more.

    The Lounge performance question

  • car insurance..
    S suzyb

    I've never actually tried it myself. Been to the Abbey though. Its popular with underage drinkers and 'neds'/'hoodies' because its cheap. SuzyB If I had a better memory I would remember more.

    The Lounge css performance question announcement career

  • car insurance..
    S suzyb

    Its buckfast we get tanked up on around here :) SuzyB If I had a better memory I would remember more.

    The Lounge css performance question announcement career

  • car insurance..
    S suzyb

    I got my car insurance renewal quote in the other day and since some details have changed I had to call them to update it. I'm now taking a break from work (although on the lookout for contract or freelance work) so I told them I was unemployed. To my surprise my insurance quote went up by £40. How exactly does being unemployed put you at a higher risk of claiming on your car insurance? I would have thought it would be the opposite, what with not commuting during rush hour and generally travelling less miles. SuzyB If I had a better memory I would remember more.

    The Lounge css performance question announcement career

  • Applications crash when accessing files
    S suzyb

    I tried checking the drives for errors but came up with nothing. I'm going to try switching off some services and startup apps and see if that works. SuzyB If I had a better memory I would remember more.

    System Admin performance lounge

  • Applications crash when accessing files
    S suzyb

    For some reason applications seem to have started crashing when I access a file using the open dialog. The files themselves are relativly large (> 500mb) but I have a 3.2Ghz pentium with 1Gb of RAM which I would assume could handle it. I've tried defragmenting the hard drive and scanned for viruses and spyware and searched google but most of the posts are general windows explorer 'slowness'. Windows explorer on my PC isn't slow its just when browsing via the open dialog. SuzyB If I had a better memory I would remember more.

    System Admin performance lounge

  • .Net Shopping Cart??? Or any other???
    S suzyb

    Have you searched the articles here on CP. I used this[^] one as the basis of a basket I developed. SuzyB If I had a better memory I would remember more.

    The Lounge 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