Search results for query: *

  1. S

    Calendar Control and Text Clipping

    Nice catch - I appreciate the testing. Okay, came up with this new way of doing it. I've tested it in Safari, Firefox, Chrome, and IE 8, 9, 10, and 11 and it seems to work! aspx: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html...
  2. S

    Calendar Control and Text Clipping

    Works in IE 10, and Safari. What version of IE did you test it in?
  3. S

    Calendar Control and Text Clipping

    Okay, so I figured this out and thought I would post the code incase anyone else needs it. You just have to ensure you do two things. Set the "td" tag to have a max-width of 1px. Secondly, set your calendar header to a specified width (DayHeaderStyle-Width="175") aspx: <%@ Page...
  4. S

    Calendar Control and Text Clipping

    Is there a way to have it dynamic so that the calendar day column stays the same width as the rest? Since it changes, I cannot specify the div width.
  5. S

    Calendar Control and Text Clipping

    I have a calendar control on my page and inside one of the day squares, I have some text. I want to be able to keep the text on one line and clip it by adding an ellipsis (...) if the text is too long for the calendar square. Because the columns in the calendar change based on how big the...
  6. S

    OnClick or IsPostBack

    Hello, I'm building a web form and need some guidance - I haven't done this since VBscript. I'm not sure if I should be using OnClick or checking in IsPostBack. Here is my code: default.aspx: <asp:Button ID="btnYes" runat="server" Text="Yes" onclick="btnYes_Click" /> Code Behind...
  7. S

    Question Add Variable/Value to Bound DataGrid

    Hi, I am using the following c
  8. S

    New to OOP - Need Validation

    1. Speed gets passed in as m/s from a web service so it needs to be a double. You could have 25.39 m/s... 2. The client could also pass N/A so that string parameter is there to check for that and change all string values to NOTHING and set Nullable.HasValue to false. Should I be doing this...
  9. S

    New to OOP - Need Validation

    I like the way you described it with Nullable but couldn't figure out how to use it with the class, until now. How does this look: Public Class GPStest Private _speed As Nullable(Of Double) Public Sub New(ByVal speed As Double) Me.Speed = speed End Sub...
  10. S

    Naming for Namespace, Class, and Variables

    I am using Heading as the class name. Stephen
  11. S

    Naming for Namespace, Class, and Variables

    Okay, I think I got it now. Stephen
  12. S

    Naming for Namespace, Class, and Variables

    For Speed, it doesn't make sense to have MetersPerSecond as the property because you could be passing KM/H or MPH, etc. Just jumping back to Heading... I am adding another function that determines your direction (north, south, east, and west) based on a degree value from 0 to 360. Would it be...
  13. S

    New to OOP - Need Validation

    I think I am starting to understand this better... Instead of using that Nullable type, which I was having troubles incorporating into my class, I added an IsValid property to the class. I also found out you can pass different types through the constructor and handle them in different ways...
  14. S

    New to OOP - Need Validation

    Okay. I think I figured this out. The reason I was having issues is because in the TryParse, you can't use the Nullable type like I was doing before when it was a double. Is there anyway to just use one variable or do you have to use two? Public Function DoStuff(ByVal TheString As...
  15. S

    Naming for Namespace, Class, and Variables

    This value actually gets passed in by the GPS device so I do want to do some basic validation on it. Thanks for all of your help! Stephen
  16. S

    Naming for Namespace, Class, and Variables

    Good point... This is confusing. So since I am dealing with GPS data, should I name the class GPS and the property Speed? Stephen
  17. S

    Naming for Namespace, Class, and Variables

    Okay. I think this makes sense, to me anyways: Namespace GPS Public Class Speed Private _metersPerSecond As Double Public Sub New(ByVal metersPerSecond As Double) Me.MetersPerSecond = metersPerSecond End Sub Public Property MetersPerSecond()...
  18. S

    Naming for Namespace, Class, and Variables

    I want to have a class so that in the SET, I can validate that the value is greater than 0. Stephen
  19. S

    Naming for Namespace, Class, and Variables

    Thanks everyone. This is very helpful and I think I am getting the hang of it. I have another one that is exactly the same but is for Bearing ("The direction of one object in relation to another object"). So that one would be Navigation.Bearing.Direction right? Last question: I have another...
  20. S

    Naming for Namespace, Class, and Variables

    Hello. I'm new to OOP and am racking my brain over what to name stuff... I have read a lot of different articles on standards and when to use nouns and different case, etc... I'm stumped when it comes to a real world example. In the code below, the namespace is called "Navigation" which I...
Back
Top