Click here to Skip to main content
15,887,267 members

Comments by Martin Arapovic (Top 66 by date)

Martin Arapovic 5-Oct-12 6:19am View    
Yes it is and I wrote that you need to call SaveChanges which means it can't be done without saving changes. As I know, object is inserted when SaveChanges method is executed, not before!!!
Martin Arapovic 6-Sep-12 15:46pm View    
Problem can occur because of many things.
I suggest you to turn on trace for your wcf srevice and then using Service trace Viewer tool to check if there is any exception inside WCF infrastructure. It's easy and all things are done in service web.config file. How to turn WCF tracing search on google. Use Service Trace Viewer Tool to analyze trace.
One more thing. I see you are trying to send some file, so try to change transferMode="StreamedResponse" within your binding configuration and make sure that your service and client have the same configuration (bindings and so on).
Important note: As I remember, WCF streaming was not supported by the ASP.NET Development Server, so make sure that you deploy your service to IIS or host it inside your test app, before making any tests.
Martin Arapovic 3-Sep-12 19:05pm View    
Hi, I think that your problem/exception is related to datetime string format! Basically, LINQToSQL provider is getting tripped with it while trying to translate it into SQL when linq command is going to be executed. Above example is written without test and as I can see the easiest solution is to fetch datetime values into list and then do formatting in a second projection... I'll update example with code that should do the trick... :)
Martin Arapovic 21-Aug-12 8:50am View    
Hi, You have all code posted here within answer. You only need to create empty aspx page, download/add ajaxcontroltoolkit as reference and paste markup code into page and javascript code in head of your aspx page. If you can't get it to work, contact me by email martinarapovic(at)gmail.com and I'll sent you working example...
Martin Arapovic 20-Jun-12 8:54am View    
Hi, I just want to add a comment/suggestion. For things like this in your question i suggest you to use some js framework/library, like jQuery, prototype, mootools. Using them to select and manipulate DOM elements on page, your code will work in all browsers, because they are taking care of the browser and its version...