Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:788899
More Search Options
RSS Available
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 >
ASP.NET:
Using WCF RIA Services without Silverlight in Visual Studio 2010 for building 3 tier ASP.NET Applications
Channel 9:
Ping 41: Top stories of 2009, bing, windows 7, laptop hunters, azure
Channel 9:
endpoint.tv - Windows Server AppFabric in action monitoring and troubleshooting
Channel 10:
Windows Marketplace for Mobile Opens to 6.0, 6.1 Phones
Channel 9:
Rx API in depth: Hot and Cold observables
ASP.NET:
Back in Business
TechNet Edge:
Hacking Windows 7 Interview
WindowsClient:
Windows Client Developer Roundup for 12/14/2009
Channel 9:
TWC9: Silverlight Web cam apps, VS extensibility, Explorer shell extensions
ASP.NET:
Visual Studio Project Sample Loading Error: Assembly could not be loaded and will be ignored. Could not load file or assembly or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
WindowsClient:
Working with Windows 7 Taskbar Thumbnail Buttons with WPF 4
WindowsClient:
overflow:hidden -- a fix to a CSS problem
TechNet Edge:
Empowering your teams with SharePoint
TechNet Edge:
TechNet Radio: Expert presents: Creating and Executing a Comprehensive 2007 Office Deployment
ASP.NET:
ViewModel Pattern for Silverlight - Options for Hooking a View to its Model
Channel 9:
Rx API in depth: Concat, Catch and OnErrorResumeNext
Channel 10:
PowerPoint Twitter Tools Updated
Channel 10:
Windows Live Messenger Arrives on Nokia Phones
Channel 9:
Peer to Peer Series Part 7: PeerChannel Basics
TechNet Edge:
Visio: Drawing on Experience with Saveen Reddy
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online