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:858656
More Search Options
RSS Available
Matching Posts
Re: FileUpload to database (doc, xls, pdf, picture, etc.)
Thanks Steve, that was it. I registered the handler in web.config and I was able to invoke my FileHandler.axd code. However I'm running into another issue. I'm using EF and I'm running into the following error when using DbImage sample. // Items.Where(row => row.ID == 1).Single() var singleWhereCall = LinqExpressionHelper.BuildSingleItemQuery(query, metaTable, primaryKeyValues.ToArray()); // Items.Where(row => row.ID == 1).Single().Picture var fileBytes = Expression.Property(singleWhereCall
Posted to
ASP.NET Dynamic Data
(Forum)
by
msingareddy
on 7/4/2009
Re: FileUpload to database (doc, xls, pdf, picture, etc.)
Yes I need to use FirstOrDefault. Can you show me how I can modify the above code to use that?
Posted to
ASP.NET Dynamic Data
(Forum)
by
msingareddy
on 7/4/2009
Re: FileUpload to database (doc, xls, pdf, picture, etc.)
Thanks Steve. that worked! Instead of making the change to the LinQExpressionHelp class I made the change directly in the handler class. Now I'm able to upload and download files from database. var whereCall = LinqExpressionHelper.BuildItemsQuery(query, metaTable,cols,primaryKeyValues.ToArray()); var singleWhereCall = Expression.Call(typeof(Queryable), "FirstOrDefault", new Type[] { metaTable.EntityType }, whereCall); //var singleWhereCall = LinqExpressionHelper.BuildSingleItemQuery
Posted to
ASP.NET Dynamic Data
(Forum)
by
msingareddy
on 7/4/2009
Re: FileUpload to database (doc, xls, pdf, picture, etc.)
Hi Steve, I see that in your example, you are saving the files to the file system. I need something that saves the file to the database and retrieves it. Thanks
Posted to
ASP.NET Dynamic Data
(Forum)
by
msingareddy
on 7/3/2009
Re: FileUpload to database (doc, xls, pdf, picture, etc.)
Thanks Steve, I've already looked at this and I'm trying to adapt DbImage sample from the futures to accomplish what I want. I'm having trouble invoking my custom FileHandler. I have create a custom FeildTemplate called FileImage and added a custom HttpHandler called FileHandler to the App_code folder. But when I set the ImageUrl to "~/FileHandler.axd?Table=xxxx&Field=yyyy&pk=1.....", the processRequest() method never gets invoked. When I manually type in the URL as
Posted to
ASP.NET Dynamic Data
(Forum)
by
msingareddy
on 7/3/2009
FileUpload to database (doc, xls, pdf, picture, etc.)
Hi, I need to upload any file (picture, doc, pdf, excel etc.) to the database. In display mode, I need to display the file name with a hyperlink. When this hyperlink is clicked the file should be downloaded from the database and displayed (embedded in the browser) or promt for saving it. When in edit mode, both the link and file upload control should be displayed to enable replacing the original file or inserting a new file. I have looked at DBImage and FileUpload examples but they are not quite
Posted to
ASP.NET Dynamic Data
(Forum)
by
msingareddy
on 7/2/2009
Re: Filter by non-FK columns
Thanks Steve, that explains it. I will convert my Integer PK field to a string type. I need one more type of filter for filtering by date columns. Something that can support a date range on a date column would be best. Any ideas or resources you can point me to? Thanks again for all your help.
Posted to
ASP.NET Dynamic Data
(Forum)
by
msingareddy
on 6/11/2009
Re: Filter by non-FK columns
Thanks Steve, I was able to integrate you AnyColumnAutoCompleteFilter into my EF project without any issues and it works great. But it doesn't work with the Integer PK columns. I noticed that in your article you referenced a forum thread where another user had the exact same issue. Have you been able to figure why it doesn't work with numeric PK columns? PS: I don't want to use the Integer filter because it loads all values in a drop down and I will have upto 20,000 values in it.
Posted to
ASP.NET Dynamic Data
(Forum)
by
msingareddy
on 6/11/2009
Filter by non-FK columns
Does anyone have ideas or samples on how to setup filtering on a non-FK column? I'm using EF. I have looked at the AutoComplteFilter samples but they are all for the FK columns. I need something similar for non-FK column. Thanks
Posted to
ASP.NET Dynamic Data
(Forum)
by
msingareddy
on 6/10/2009
Re: Insert Child data with the Parent data on the same page
Thanks for the idea. I was able to get around this by making the PK of the parent table a GUID. I then generate the new guid in the OnSavingChanges event handler and use it to save the child data as well. What I am now running into is an issue setting the correct datacontext for the EntityDataSource control in the FieldTemplate ChildrenGrid. Steve, do you have any equivalent of your ChildrenGrid article that works with EntityDataSource?
Posted to
ASP.NET Dynamic Data
(Forum)
by
msingareddy
on 4/30/2009
Page 1 of 4 (32 items) 1
2
3
4
Next >
Channel 10:
Flickr Drive Integrates Flickr into Windows Explorer
Channel 10:
Playfire: A Growing Network for Gamers
Channel 10:
Find the Top iPhone Apps with Bing (Yes, Really!)
Channel 10:
Xbox to Become Emergency Alert System
Channel 10:
Progression of the Iconic Background
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
TechNet Edge:
ISA to TMG Migration Guidance
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online