Search

You searched for the word(s): userid:788899

Matching Posts

  • Re: Inserting Blob using FormView

    Ok, but how do I actually populate my class variable with the binary info? The above example works great if you are trying to store the file on the server file system. I am trying to store it in the DB. I think I am just going to skip using FormView alltogether. I've had to many issues with it...anyone else have any ideas?
    Posted to Data Presentation Controls (Forum) by nwahlberg on 6/23/2008
  • Inserting Blob using FormView

    Hi all, I am hoping that someone has done this before and that is it possible using FormView. I have an asp:FileUpload control that I currently use to upload a file to the server and then store the filename in the database as a string so that I can point to the file on the file system for download/display. This all works fine, but from a design standpoint I would much rather store the file in the database as a BLOB. Storing the object in the DB isn't the problem, I am pretty sure I know how to
    Posted to Data Presentation Controls (Forum) by nwahlberg on 6/19/2008
  • SelectedValue with dynamic asp:DropDownList

    Hi, I have a dropdown list of states that I am displaying as part of my userform. I have a FormView with the fields...here's what it looks like: < asp:FormView ID= "FormView1" runat= "server" DataSourceID= "userDetails" DefaultMode= "Edit" DataKeyNames= "userID" OnDataBound= "FormView1_DataBound" > < InsertItemTemplate > < asp:DropDownList ID= "state" runat= "server" AppendDataBoundItems= "true"
    Posted to Data Presentation Controls (Forum) by nwahlberg on 6/7/2008
  • Re: Display empty string for DateTime nulls

    [quote user="HeartattacK"] DateTime? dt = DateTime.Now; DateTime t = dt.Value;[/quote] Great, this works like a charm together with CastDBNull. Thanks, Nik
    Posted to Data Presentation Controls (Forum) by nwahlberg on 6/6/2008
  • Display empty string for DateTime nulls

    Hi, I have a FormView that displays various text fields. One of the fields is a DateTime field. In my underlying object class I set this as: private DateTime expirationDate; public DateTime ExpirationDate { get { return expirationDate; } set { expirationDate = value ; } } The corresponding fiedl in my EditItemTemplate is: < asp:FormView ID= "FormView1" runat= "server" DataSourceID= "userDetails" DefaultMode= "Edit" DataKeyNames= "userID" >
    Posted to Data Presentation Controls (Forum) by nwahlberg on 6/5/2008
  • Re: DataBinding a checkbox in FormView

    The problem with Eval is that it won't carry the value to my update or insert statements. I need to use Bind in order for this to work... Thanks, Nik
    Posted to Data Presentation Controls (Forum) by nwahlberg on 6/3/2008
  • Re: DataBinding a checkbox in FormView

    [quote user="abhilashca"]Are you sure that the data-type of "RecieveUpdateEmails" is bool type, in ur table ?[/quote] Well it is a field of type bit, which should be the equivalent. It is also never null as it defaults to 0. Is there something that I should do in my codebehind? Thanks, Nik
    Posted to Data Presentation Controls (Forum) by nwahlberg on 6/3/2008
  • DataBinding a checkbox in FormView

    Hi, this is my 3rd post about FormView, and even though I am new to .NET, this is extremely frustrating! The problem I am having is that I can't use Bind in a case where I am checking the value of what is stores in the database (in the update template) and if I use Eval (which works for display purposes only) then I don't get the value passed to my update method or insert method!! Can someone provide an example of how to work with Checkboxes in EditItemTemplate and InsertItemTemplate when
    Posted to Data Presentation Controls (Forum) by nwahlberg on 6/3/2008
  • Re: Inserting records using FormView

    It's probably safer to leave it alone for now. Thanks for all your help! -- Nik
    Posted to Data Presentation Controls (Forum) by nwahlberg on 6/3/2008
  • Re: Inserting records using FormView

    Holy schnikes....that's it. It doesn't make sense to me that you would Bind any values to the fields since it is an insert, but that sure seems to work. Is there a way to combine the Edit and Insert templates so that I don't have to repeat the code for each? Thanks, Nik
    Posted to Data Presentation Controls (Forum) by nwahlberg on 6/3/2008
Page 1 of 3 (22 items) 1 2 3 Next >
Microsoft Communities