Search:

Type: Posts; User: drpcken

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    12
    Views
    1,303

    Re: Global function!?

    Yea I figured this out the hard way :)
    It makes more sense to me now though.

    Thanks everyone!
  2. Replies
    12
    Views
    1,303

    Re: Global function!?

    ahh but of course!

    I still get in my vb.net state of mind from time to time and think about things too hard.
  3. Replies
    12
    Views
    1,303

    Re: Global function!?

    I wanted to do this as well but without even calling the class. Like this:



    MessageBox.Show(GetCoolDude());

    I seem to remember doing this in VB.net, I may be wrong though. I'd love to...
  4. Replies
    1
    Views
    690

    Re: [2008] ModalPopupExtender

    Check out this site:
    http://blogs.vertigosoftware.com/alanl/archive/2006/07/25/Creating_a_Confirmation_Using_the_ModalPopup_Extender.aspx
  5. Re: [2005] Hard time formating DateTime

    I figured this out. It actually turned out to be a problem with a dropdownlist and not the datefield, i was just blaming the date field for the problem :)

    Thanks! I still learned alot!
  6. Re: [2005] DropDownLists default value if DataValueField is null?

    Ok I think that did it. Once I set the value of the ListItem to "0" it works great.
  7. Replies
    10
    Views
    657

    Re: JS when using UpdatePanel and AJAX

    I'm not sure if this will work but specify the script type in your javascript being generated.

    strScript="<script type='text/javascript' language='javascript'>"
    strScript = strScript & "alert('"...
  8. Re: [2005] DropDownLists default value if DataValueField is null?

    I created a strongly typed table adapter and added a simple update query that updates my database based on the values passed into its parameters. I've attached a screenshot of my parameters screen. ...
  9. Re: [2005] Hard time formating DateTime

    Yes it is to update the record in SQL. I'm not familiar with parameterized queries (i'll google it after this) but I thought the update method technically was one since it accepts parameters.
  10. Re: [2005] DropDownLists default value if DataValueField is null?

    That works good, but when it tries to pass the value into my UpdateMethod it errors out saying:
    Input string was not in a correct format.
  11. Re: [2005] Hard time formating DateTime

    edit:
    i'm changing this post because I figured this part of the problem out...

    Now the issue at hand is this:

    For the date fields, I had to manually inject the values for the parameters...
  12. Re: [2005] Hard time formating DateTime

    hmm even when I fill in all the date values it still throws that error :(
  13. Re: [2005] Hard time formating DateTime

    I think the problem is I'm trying to pass null values into my method and it doesn't like it.
  14. Re: [2005] Hard time formating DateTime

    Hmm i just figured something out:

    I removed all the date field values from the record i'm updating (in sql) so it won't pass a date value into the database and i'm still getting the error. Could...
  15. Re: [2005] Hard time formating DateTime

    See I THOUGHT that was the case, I've never had to format a ShortDateTime back into sql any other way. Here's the code:


    adapterContacts.Update(Convert.ToDateTime(txtContactDate.Text));
    ...
  16. Re: [2005] Hard time formating DateTime

    Ok now I need to convert the shortdatestring to back to the format sql needs it. When I try to update using the value in shortdatestring I get:
    String was not recognized as a valid DateTime even...
  17. Re: [2005] DropDownLists default value if DataValueField is null?

    Ahhhh I think I figured it out :blush:

    I just put ddlContactType.Items.Add(""); and when I stepped through debugging it reported the value = "" so maybe that will work.

    I'm going to work on...
  18. [RESOLVED] [2005] DropDownLists default value if DataValueField is null?

    Here I am again :D

    You guys may have remembered from my last installment that I'm populating all my DropDownLists at runtime using DAL methods. Here's an example using one of my US States...
  19. Replies
    2
    Views
    487

    [2005] Strip formatting function?

    Are there any .NET functions that will strip non-alphanumeric characters from a string (such as a phone number or social security number)?

    I've searched everywhere but can't seem to get a...
  20. Replies
    3
    Views
    1,207

    Re: two-way

    I think you're trying to set the SelectedDate right? You can't use Text to do so on an ASP calendar.

    Try


    <asp:Calendar ID="DateOfServiceCalendar" runat="server"
    ...
  21. Re: [2005] Hard time formating DateTime

    Thanks to everyone who posted! And the idea of doing it at the database level is very good to know and I can apply that in the future.
  22. Re: [2005] Hard time formating DateTime

    That did it! :D But now I'm torn between formatting it there or at the db level. I mean I have it setup to remove the formatting when I update using these formatted field.
  23. Re: [2005] Hard time formating DateTime

    Well thats one way to do it! :D
  24. Re: [2005] Hard time formating DateTime

    wow none of these suggestions are working. this is odd. I'm posting the entire method I wrote to fill the dropdown list, maybe its something inside it:



    private void fetchDeductables()
    ...
  25. Replies
    4
    Views
    837

    Re: database error

    Also,
    I just found this, it might help.

    http://scottonwriting.net/sowblog/posts/5480.aspx
  26. Replies
    4
    Views
    837

    Re: database error

    Looks like you have User Instance = true, which needs to be false in a hosting environment.

    Also your "transmiamiConnectionString" is still looking by hostname, I don't know if this is your old...
  27. Re: [2005] Hard time formating DateTime

    I don't know why I"m having such a hard time with this format. It's still not working. I'm trying to format the values in a dropdownlist that come from a database as a 'money' type. Of course they...
  28. Re: [2005] how to go on other page when i signout.

    On your Sign Out link, add the target="_top" property.

    Example: <asp:hyperlink id="hyperlink1" NavigateURL="#" target="_top"></asp:hyperlink>
  29. Replies
    5
    Views
    647

    Re: database with asp.net

    You'll need MS SQL 2005 on your web server or if you already have a sql server you can point your connection string there. Alternatively you can use Sql Server 2005 Express, which is free (unless...
  30. Re: [2005] Hard time formating DateTime

    Hey I'm reopening this thread as to not make another one. I'm having a similar problem trying to format a money datatype from SQL. Here's my code that gets the data:


    txtDrCopay.Text =...
  31. Replies
    11
    Views
    892

    Re: [2005] custom form databinding

    These are textboxes in a form (I think you think they are labels?). If the value is null of course I want the textbox to be empty and if the user chooses they can put something in the textbox and...
  32. Replies
    11
    Views
    892

    Re: [2005] custom form databinding

    Ahh I see what you mean. I just noticed something to. Here's how I'm checking for null:


    if (ds.Tables[0].Rows[0]["AddressLine1"] != DBNull.Value)
    {
    txtAddressLine1.Text =...
  33. Re: [2005] Hard time formating DateTime

    AHHH There's my precious .ToShortDateString method!

    This is my first major project in c# (vb.net from the beginning) so I'm still rough around the edges :)

    Thank you so much! Worked perfectly!
  34. Replies
    11
    Views
    892

    Re: [2005] custom form databinding

    Ok thanks for clearing up the DAL issue. I wasn't sure if there was a way to bind a DAL method to a SqlDataSource. At this point I'm very proud of my DAL methods and want to use them :) I spent...
  35. [RESOLVED] [2005] Hard time formating DateTime

    I have a field on my form that gets its data from a SQL DateTime field. Of course when the control populate it looks like this: "12/12/2008 12:00:00"
    I want it to only show the small date (ie...
  36. Replies
    1
    Views
    472

    Re: Login control and securing pages

    Are these other pages in different folders in the project? If so you can create another web.config inside each folder you want secured and then put

    <authorization>
    <deny users="?" />...
  37. Replies
    11
    Views
    892

    Re: [2005] custom form databinding

    I considered that but then I feel like my DAL methods would be useless because I can't use my Select/Update/Insert methods with the SQLDataSource :)

    Here's what I ended up doing:


    int...
  38. Replies
    11
    Views
    892

    Re: [2005] custom form databinding

    I think what I'm going to end up doing is just fill my dataset with the method to get all my data, then manually fill the controls on Page_Load(). Unless anyone can think of something more efficient...
  39. Replies
    1
    Views
    4,587

    Re: Drag and drop rows in Gridview

    You could use AJAX and try this custom extender (I have not tested it, though it looks promising).

    http://weblogs.asp.net/rajbk/archive/2007/06/13/the-gridview-row-drag-overlay-extender.aspx
    ...
  40. Replies
    11
    Views
    892

    [RESOLVED] [2005] custom form databinding

    Hey I have quite a fiew fields for a specific form I'm writing. So instead of using a gridview, or detailsview, or formview, I just slapped a bunch of aps:controls on the page and setup my...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width