15,885,546 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by db7uk (Top 200 by date)
db7uk
9-Jan-15 11:33am
View
Hi, thanks for the message. Sorry for the late reply. I have been looking at this with Microsoft Development. They are not sure what the issue is and it has been several days now of trying to work it out. In answer to your question, yes I created the azure queue before the setting up the service endpoint. The problem I have is that I cannot save and verify correctly if I use the full path to the queue. I have to use the base address which authenticates correctly but does not find the service URL for some reason. MS are strugling to work this one out.
db7uk
16-Dec-14 11:14am
View
Silly question, but how are you changing the value of the property? Also When you select tabs manually does this change the CurrentIndex property?
db7uk
19-Aug-14 7:42am
View
great.
db7uk
4-Aug-14 6:00am
View
Hi,
Your code does not look right. Have you looked at the following link?
http://printssrsreport.blogspot.co.uk/2011/09/print-ssrs-report-using.html
[
^
]
db7uk
4-Aug-14 5:53am
View
A very vague question. However, If I read it right, you need to send sms messages from your ASP.net website? there are several ways to do this however, you will need a provider or GSM device to send the messages. One way to do it is use http://boom-sms.co.uk/index.php/. Basically you create an XML file and send to the service. The service then parses the XML file and sends your message (text from inside xml file) to the recipient numbers listed also in the xml file.
db7uk
25-Feb-14 6:34am
View
yes you are correct. Miss read this. thanks.
db7uk
24-Feb-14 8:24am
View
And what is the question? What have you tried?
db7uk
24-Feb-14 6:51am
View
Yep completely agree. The solution you provided was better in terms of coverage.
db7uk
22-Jan-14 3:50am
View
not really.
db7uk
21-Jan-14 7:11am
View
really dont think this is possible as it is driven from your browser default in windows or whatever browser process you are in.
db7uk
21-Jan-14 7:07am
View
ahhh I see sorry, did not read "without open save".
hmmmm, your best bet then is to using something like http://www.pdfsharp.com/PDFsharp/ and parse each page of the pdf and then create an image from those pages. These images could then be fixed into the site. However, the problem here is that someone could download the image?
db7uk
8-Jan-14 6:55am
View
please see my updated solution thanks.
db7uk
6-Jan-14 16:41pm
View
sadly this did not work and I did not get an email :(
I have setup paltalk and added to connections. When you are online I should be around. if not tomorrow!
db7uk
6-Jan-14 4:16am
View
again, if you want to send anything over for compilation test this end you are more than welcome.
db7uk
6-Jan-14 4:16am
View
Wow, sounds like you have a real PITA. One recommendation I would have is that use dotPeek (assembly viewer from jet Brains) on the assemblies that things are complaining about. What you may find is the dependancies on your pc may not have the right assembly version (hence the message). Basically it may probably be due to a dependency on the Ninject dll or EF dll. Check each version of what it thinks it is using and check the what version it is referencing. There will be a dll that is not correct or has the correct path. Probably the EF one.
Lastly you probably have but have you tried cleaning the solution and then re-building each dll on its own to narrow down where the issue is?
db7uk
5-Jan-14 15:28pm
View
Yes, Do Off as OFF will not work.
db7uk
5-Jan-14 15:12pm
View
Hi thanks for the reply. I am sorry but I cannot determine the issue from the code. I would be more than happy to take a peek at the project and give any feedback. I may not be able to fix it but as they say, two heads are better than one! If you do let me know.
db7uk
5-Jan-14 15:09pm
View
No problem.
db7uk
5-Jan-14 15:09pm
View
Hi, I missed the response as this was updated in a solution. It would have been better to reply to my comment. That said, I have tried to re-create the issue but I am not getting the same problem. Do you have any code that you can post or send over the project / part of the project?
db7uk
3-Jan-14 17:19pm
View
when you say using the webbrowser control. Could you be a little more specific? is this wpf or winforms?
db7uk
3-Jan-14 16:07pm
View
Does this work using the InputPath? Also to clean it up a bit I would not concatenate your strings like you have done. If you were getting hundreds of files you might overtime see some memory problems. use string.format, string.concat or stringbuilder.
Can you explain a little more? What is wrong with moving what you have into a method like "void ReadFiles(string filePath)" and looping through other folders passing the directory path into method?
Lastly, are you referring to looping through sub folders? this is simple to do "Directory.GetFiles(strFilePath,"*.txt", SearchOption.AllDirectories)"????
db7uk
3-Jan-14 15:51pm
View
Hiya,
What sort of UI are you thinking on using? web, wpf, console?
One way I would do this is by creating a method that does the chatter (poll or ping etc).
You could then create a list of poll objects and run a Parrallel.foreach() on it to maximise the requests. Either that or use a loop and request using Tasks (TPL). In each case you should think about throttling and locking if writing to a file.
A very nice way of doing it would be to create a WCF service that does the work. You can then handle multiple concurrent requests to this service and handle throttling there however I am unsure of the scope of your requirement.
In any case, because TCP round trips (pings etc) are very fast, the 500 requests should be very possible using Tasks or Parallel loops. That's my understanding anyway.
db7uk
3-Jan-14 15:39pm
View
Hiya, I had a similar issue. Are you sure that all projects in your solution that have a dependency on EF have the right assembly version? Also are you using a boostrapper on assmebly start to add the references to the container?
My issue was that EF did not play nicely with the EFContext. The other issue was that if you use a ef repository then controlling when the connection opens and closes really helped me.
What is the EFProductRepository code and the EFDataContext code?
db7uk
2-Jan-14 7:40am
View
Are you using VSTO or EWS etc? Or is this going to be custom mail client?
db7uk
2-Dec-13 20:20pm
View
added to that you have a nice section in here: http://www.codeproject.com/Articles/203453/Dynamic-Method-Dispatcher
db7uk
2-Dec-13 20:14pm
View
Ok Granted and very valid. The code supplied was actually better than some other posts however I guess I was confused by the "whats going on". It took me a couple of mins to figure out the actual question hence my response. It also seems you worked out the question much quicker than I so hats of to you. I like your solution. Clear and I very much doubt I would do nearly as well.
I guess my point was that the OP question was not specific enough and may not have looked into the issue that much before posting. Not a bad thing really, just one of those things.
db7uk
2-Dec-13 18:50pm
View
Apart from being a very confusing post, one with no detail, what you have tried and are trying to achieve etc I can tell you that you need to look more at object inheritance. a good example is http://stackoverflow.com/a/160095. Is this an exam question per chance?
db7uk
25-Nov-13 10:48am
View
added to that, are you using strongly typed datasets?
db7uk
25-Nov-13 10:45am
View
Your post is quite confusing. Are you saying that on your UI layer you have some dropdown lists that you want to pass to a service layer which in tern executes an MS SQL stored procedure?
Are you using MVC and or is your application broken down into an n-tier architecture. By the looks of it you are exposing a method as a service from a webforms application. is this correct? Once we can determin your structure it should be easier to work out what you want to do?
db7uk
23-Oct-13 3:09am
View
Out of morbid curiosity, why not in xaml? have you tried creating a txtbox behavior and applying it to your control? also without the code which shows where you actually create the text box's it is hard to see what you are trying to do.
db7uk
23-Oct-13 2:56am
View
Hiya
Sorry for the late reply. Yes, wcf can be a mine field with it comes to security. Your suggested route does seem feasible and is actually something I implemented a while back but with normal SOAP web services. WCF does have many security features governing transport, message or transport and message encryption. All with their own headaches. Anyway, Go for your suggestion if you feel the risks are not high.
Good luck with the project.
Dan
db7uk
6-Oct-13 17:57pm
View
I think using marshallByRef in this instance will cause more pain than good. What is wrong with having the Windows service expose endpoints that web, desktop apps can comminicate with? i.e. create a WCF windows service that has a duplex endpoint so that subscribers can be notified of the service results?
db7uk
2-Oct-13 16:00pm
View
Have you tried the Informatics forum? they maybe able to provide an instant answer. I also notice you are using a fairly old assembly. One line they may say is update it. What about applying a service patch? are you fully up to date with that version? The problem here is that browser versions move on but your infragistics one has not.
db7uk
2-Oct-13 15:54pm
View
If this is a web application, how many concurrent users would execute the long running processes?
db7uk
13-Aug-13 16:23pm
View
What processes are you doing to deploy? what is the error message exactly. Is this Out of browser?
db7uk
13-May-13 17:00pm
View
Yep good answer. The OP did not provide enough information to go on at the time. Thanks for covering it in depth.
db7uk
13-May-13 16:56pm
View
Do you require an example? The OP did not really provide enough information to go on. Basically you could (if the query permits) use the PIVOT function to convert rows to columns. One could use the Max / avg aggregate function needed with pivot to do just that. I am not 100% this would work on the OP original question based on information but could point in the right direction?
db7uk
13-May-13 15:48pm
View
Really a question for telerik. vs2012 should be able to open vs2010 solutions no problem. The fact you are getting a message is probably because the design surface cannot render the controls from the from the old assemblies.
You probably will have to upgrade to newer versions. What version are you running with?
db7uk
8-May-13 14:41pm
View
Also browser versions will help too!
db7uk
8-May-13 14:31pm
View
this is not c#, please tag question correctly. What version of SQL is it (if it is sql at all)? information like this really helps us help you.
db7uk
7-May-13 6:32am
View
No Problem! Have a good day!
db7uk
6-May-13 17:36pm
View
Excellent answer!
db7uk
6-May-13 17:32pm
View
Have you cleaned your solution. Have you closed the IDE and gone back in. Is the property public? You mentioned that you app is recognising static methods, so are you trying to instantiate your object before trying to call the method?
db7uk
6-May-13 17:12pm
View
your pageindexchanging does not look right. ds.tables["subjects"]... where is this kept? viewstate, session? at the moment your pageindexchanging just fires a postback and does not bind to the original datasource.
db7uk
6-May-13 17:08pm
View
I had a similar issue. Is the silverlight app inside a div? can you not hide the div before closing the window. For me it was a z-index / display issue as modal windows over the top would not show. Maybe not what you were after but may help
db7uk
6-May-13 16:56pm
View
What object are you returning? If it is a class ( or list of objects) have you correctly decorated the class with DataContract and decorated the properties with DataMember attributes?
Can you provide any code regarding the object(s) you want serialized?
db7uk
30-Apr-13 14:42pm
View
I doubt it. not sure that calling the speech synthesizer is right also... are you expecting this to be heard on the website?
Anyway, what does the response show you in fiddler? what happens if you just return a string value "test" without the array. are you wanting the array to appear or the sound?
db7uk
29-Apr-13 15:10pm
View
Ok, first, if you have a reply I would recommend either replying to my original solution or by "Improve Question" link. Now, the ASP.NET membership and roles provider are all very extendible. The roles provider shown in my solution shows how this can be done. The only thing you need to worry about is modifying the aspnet_roles stored procedures to to the work. A dba should be able to handle this.
db7uk
29-Apr-13 10:09am
View
The problem with that approach is that in theory that is what the application is already doing. Once the dll has been loaded into the app domain this should be there for the life time of the application. What is the round button style?
db7uk
29-Apr-13 9:33am
View
An error message would really help here!
db7uk
29-Apr-13 9:32am
View
what is the value of !m_ConfigurationManager.Instance.ReadConfiguration()? are you sure the current.shutdown is not being called? Is you code being set in the override OnStartup in the app.xaml.cs? Have you removed the entry for StartUpUri in the app.xaml file? Have you called the base.OnStartUp(e); in the startup event?
db7uk
28-Apr-13 19:08pm
View
Mike is correct. Are you trying to setup a spam engine?
The only way is to have your own SMTP server. : http://local-smtp-server.en.softonic.com/, http://www.softstack.com/freesmtp.html or http://papercut.codeplex.com/. Not tried any and cant guarantee security or containing viruses but there are options out there if you search for them.
db7uk
27-Apr-13 8:52am
View
ASP.NET, WPF or Winforms?
db7uk
27-Apr-13 8:51am
View
what is msgError? is this a control that is on the page? is it a control that lives inside a usercontrol that the page is hosting? please provide some HTML markup.
db7uk
26-Apr-13 17:52pm
View
Strange. What browser? I know this should not matter but I had a weird issue once with IE 7 not showing coloured labels. So, I notice that the image is in a separate dll? if so is this loaded dynamically or with the xap itself? Do you have enabled "reduce xap size by using application library caching"?
db7uk
26-Apr-13 17:22pm
View
I see you point. can you bulk insert your data into a database that you can then use on oracle 10g?
db7uk
25-Apr-13 18:03pm
View
Ok I understand. Can you create a linked server (Database Link)? http://it.toolbox.com/blogs/oracle-guide/database-links-a-definition-in-plain-english-7023. Not done it in oracle, but could you not reference the new database only and handle the legacy stuff from 10 links? Either that or do a bulk update to the new db from the legacy one? i.e. migrate all relevant data from the old database and migrate to new datbase under different schema?
db7uk
25-Apr-13 16:51pm
View
when it does not work, what is the error? what does fiddler tell you? Have you tried increasing the Http request size and time limit? how big is the data?
db7uk
25-Apr-13 16:49pm
View
Why are you setting the binding in code and in xaml? Take the code one away for a moment. Also the binding in xaml :ItemsSource="{Binding Data, Source={StaticResource source}}".... what is Data? I take it that is the collection from the RIA service?
db7uk
23-Apr-13 17:07pm
View
If you provide some code, we could all probably help more.
db7uk
23-Apr-13 17:04pm
View
Sorry you question is not clear?
db7uk
22-Apr-13 17:29pm
View
Dont duplicate posts. If you have an update to something, please "improve solution". Was my previous answers ok? If not, break your unions down into single statements before unioning all together. Do the single statements work?
db7uk
22-Apr-13 17:26pm
View
You will need to use Partition by. http://msdn.microsoft.com/en-GB/library/ms176102.aspx
Play around with RANK and DENSE_RANK
db7uk
22-Apr-13 17:22pm
View
No you cant.
And yes jkirkerx is right. BlogEngine.Net : http://www.dotnetblogengine.net/
Another one is http://www.funnelweblog.com/ (not tried that but its mvc3)
db7uk
22-Apr-13 17:11pm
View
The error might help. But looking at the code, are you sure you want a space in "item name" and "item description" and "total price"????? you will need to put [] round it surly. i.e. [total price]
db7uk
22-Apr-13 16:43pm
View
what is firebug telling you?
db7uk
21-Apr-13 16:56pm
View
Hiya, sorry for the late reply. Hope all is well with you. The service should be hosted in a process that can accommodate multiple concurrent calls. There are many advantages to different hosting scenarios. To be honest, I would not rely on self hosting a service and then having another application talk to it. The main reason is that you cannot rely on the other party being available. Have you considered centralizing your communications to be more in-line with an SOA approach? i.e. You have a service hosted in IIS or windows that both applications (or any other applicaiton) can communicate freely with? By doing this you simplify the service endpoint as there is only one point of reference. What if your current setup needed to scale and you were required to have multiple applications all talking together? Multiple endpoints, who is an active subscriber or pulisher.... a nightmare for configuring.
db7uk
18-Apr-13 17:11pm
View
I take it this is Infragistics? What have you tried? How about Firefox and chrome? what version of the grid are you using?
1) Consider contacting their support
2) Consider updating controls with latest release patch / hotfix.
3) When running this, what does Fiddler or Firebug show you? any js errors?
4) Once you have more information someone maybe able to help.
db7uk
18-Apr-13 5:43am
View
Yes you are correct. sorry missed that one.
db7uk
16-Apr-13 17:14pm
View
Yes I saw it on the news. Hope you are getting on ok!
db7uk
15-Apr-13 18:27pm
View
testing? what's that :)
db7uk
15-Apr-13 18:20pm
View
not very clear. Is the BIT causing you problems? why not cast as int. If this is not the case then it seems you need to do a left join somewhere. possibly left join Prices on Sales_Invoice_Content.Itm_ID=prices.Itm_ID
db7uk
15-Apr-13 18:08pm
View
What version of SL are you using?
db7uk
14-Apr-13 16:24pm
View
what have you tried?
db7uk
14-Apr-13 8:28am
View
Thanks. I hope it has helped. I have added some of this as a solution. If it has helped could you mark as answered? Very much appreciated.
db7uk
13-Apr-13 19:43pm
View
Ok, it sounds like the proxy dll is just a means to generate the address bindings and facilitate the communications (aka proxy). This is fine and I have some similar. The main point is that nothing will communicate if there is no service present. what a duplex service does is act as a bridge, messenger, publish subscribe mechanism to marshal the messages to the clients. Basically You need to look into the publish subscribe pattern. An excellent example is: http://www.idesign.net/Downloads#InstanceManagement. Take a look at the Publish subscribe framework.
Basically, host your service (publisher) somewhere (app 1 or a dedicated service) and the have your apps subscribe to it. Each message that is set from a client or publisher will be sent to other clients who have subscribed to the events.
Other examples are:
http://msdn.microsoft.com/en-us/magazine/cc163537.aspx
http://www.squarewidget.com/poor-mans-publish-subscribe-wcf-service
db7uk
13-Apr-13 18:33pm
View
Ok, You can set two applications to talk to each other but there must be a service endpoint. i.e. one of your two applications could work as a service host and client. However you mentioned a windows service that is effectively the mediator between the two applications. Where is this service hosted? so in essence app 1 talks to app 2 via the service?
db7uk
13-Apr-13 17:43pm
View
Hi, How what is your endpoing config like and what is your service host and client config?
db7uk
16-Mar-13 10:41am
View
What is the recovery mode set to on the database? what backup strategy do you have? If none of the above you cant.
db7uk
13-Feb-13 15:15pm
View
As SA said. You cannot get an answer without background. As for the first comment. You can't go MVC if you are talking about service bus's, tcp and socket communications or anything real time. my opinion is that MVC (more to the point WebAPI that was spawned from MVC and MVC not being a service anyway its a pattern) is for websites. WCF is for complex services. WebAPI is for http based services that compliment http based UI's.
db7uk
10-Feb-13 4:05am
View
Copy the files from one and paste into another? Does that not work?
db7uk
7-Feb-13 15:59pm
View
Good answer
db7uk
7-Feb-13 14:44pm
View
why not call the function from the client side? calling from server side makes no sense? what are you trying to do?
db7uk
5-Feb-13 18:36pm
View
This is not a solution. It is great that you have provided more info but this should have been an "improve question". I'd update the question to get a better response. BTW have you tried setting the IncludeExceptionDetailInFaults to true? have you tried WCF test client or WCF storm for more detail?
db7uk
5-Feb-13 16:50pm
View
oh, and yes the QueuedTaskScheduler is very good and I would try to stick with that.
db7uk
5-Feb-13 14:51pm
View
What?
db7uk
4-Feb-13 16:11pm
View
or http://www.pdfsharp.com/PDFsharp/ is good!
db7uk
4-Feb-13 16:11pm
View
Deleted
or http://www.pdfsharp.com/PDFsharp/
db7uk
4-Feb-13 4:16am
View
You have not mentioned what code you are using. you have not provided and source that we can help comment on. Please improve question.
db7uk
3-Feb-13 18:39pm
View
ok, if you get stuck post your question. Dont forget to mark this as accepted answer if you are happy with the result. If you need another question I would post a new one as this is getting pretty long :) Good luck!
db7uk
3-Feb-13 18:16pm
View
Also see my improved solution.
db7uk
3-Feb-13 18:16pm
View
yes, very easy. try using something like : http://www.developerfusion.com/tools/convert/csharp-to-vb/
db7uk
3-Feb-13 17:22pm
View
You cannot add formatted code to a comment window. What you should have done was to "improve question" and add more detail. That said, see my very basic example. in my Improved solution.
Thanks
db7uk
3-Feb-13 16:06pm
View
Is this part of a deployment option if a user installs your software but does not have .net 4? Your question is not clear.
db7uk
27-Jan-13 18:46pm
View
um dont get it. Please elaborate?
db7uk
21-Jan-13 15:42pm
View
really silly question but can you download the file without silverlight? What file type is it?
db7uk
16-Jan-13 5:26am
View
Dont.. Try UMBRACO or something.
db7uk
15-Jan-13 15:47pm
View
IS this hosted in IIS or IIS Express / VS host.? Do you have a SSL cert installed? Are you using mixed HTTP / HTTPS requests......
db7uk
30-Dec-12 14:22pm
View
Excellent. Hope the rest goes well!
db7uk
29-Dec-12 10:26am
View
Ok, The problem is that I do not have your database. It will be very hard to "change" the above code when I can not see results etc. Can you provide a query plan? also I think your question has gone a bit funny. There is no code showing. :)
db7uk
28-Dec-12 18:22pm
View
mmmmmm, so your WCF call returns an addresses object? This addresses object has address1, address2 etc properties? You are binding directly to the addresses.address1 property? this should work. What happens if you make the call in an synchronous way?......... Out of interest, are you binding to address1, address2 properties in your viewmodel or to the properties in the addresses class?
db7uk
28-Dec-12 16:50pm
View
This is the better approach. I would host the Address class as a property and bind to that. i.e. text="{Binding Address.address1, IsAsync=True}" You would then only need to raise the changed event once. .i.e.
public Address Address
{
get
{
return _address;
}
set
{
if(Address != value)
{
_address = value;
RaisePropertyChanged(() => Address);
}
}
}
db7uk
28-Dec-12 15:43pm
View
Added to that, consider using reflection property names. i.e. RaisePropertyChanged(() => address1). By strongly typing your property changed event will allow compile time support if your property name changes. Consider looking at Prism for Notifiable objects and delegate commands.
db7uk
28-Dec-12 15:40pm
View
You will need to raise the property changed event. This must be done in order for the UI to know a change has happened. Without it how would the UI know when to update itself? So you setter is correct. Interesting though, what is Address.address1? is this a model property within the viewmodel? So back to the question. You do need to raise the property changed event when something in your viewmodel property changes.
db7uk
22-Dec-12 19:43pm
View
I would avoid using viewstate for data tables. Use session instead. Also agree with Sandeep. Question is not too clear.
db7uk
30-Sep-12 16:26pm
View
setting the httpRuntime executionTimeout="1200" in the web.config
db7uk
30-Sep-12 16:25pm
View
have you tried <httpruntime executiontimeout="1200">
db7uk
30-Sep-12 16:22pm
View
Wait. So you have posted this question before on another site. Has it been answered or not? What have you tried and what are you stuck on. You must state specifics, show some code etc.
db7uk
30-Sep-12 16:15pm
View
I have seen the site but still do not understand what you are after. What values do you mean? text? where are the values stored? is it a windows or web application????
db7uk
30-Sep-12 14:29pm
View
this is not really a question. What have you tried, what is your goal. What values are you talking about, what platform and .net version are you using. All these questions really help others help you. Without it no one can help.
db7uk
9-Sep-12 18:33pm
View
Sorry for the late reply. The reader quota will be on the client connection. I notice your are calling proxy.SendMail. How is the service being instanciated? Can I recommend you create the proxy in code. You can set the readaquotas programmatically. One other thing, dont wrap the proxy in a using statement. try http://www.codeproject.com/Tips/197531/Do-not-use-using-for-WCF-Clients or http://bloggingabout.net/blogs/erwyn/archive/2006/12/09/WCF-Service-Proxy-Helper.aspx for good ways to call wcf services.
db7uk
7-Sep-12 8:56am
View
your SELECT * FROM Name...... are you sure name is a table?
db7uk
6-Sep-12 17:53pm
View
yep agree. I guess I was being a bit vague.
db7uk
6-Sep-12 17:41pm
View
I dont understand. could you re-phrase the question?
db7uk
6-Sep-12 17:39pm
View
um...
db7uk
6-Sep-12 17:34pm
View
um that's quite a general question. What platform are you thinking of working on? wpf / silverlight / winforms ????
db7uk
6-Sep-12 17:16pm
View
You should include the webconfig containing the service model data. The error you are getting is a generic one. The service endpoint may not be reached but the error does not contain the full detail. This is right up my street so improve question with more detail and me or someone can help.
db7uk
6-Sep-12 17:13pm
View
This is not an answer. Please update the question by improve question link
db7uk
6-Sep-12 17:04pm
View
could you not do this as part of a webservice call? Your service would reside in the website and external calls communicated with that. Therefore your service would be responsible to the file creation?
db7uk
19-Aug-12 9:01am
View
Why is the installation so complex? why do you need to re-create the keyboard and mouse clicks? surly creating a basic batch script or exe to perform automated installations and running that through group policy will be better? the problem with these automated ui things is that they will often fail due to inconsistent performance on the client pc and timings.
db7uk
13-Aug-12 17:56pm
View
How are you returning the data? Your web invoke attribute is not enough to work out what is going on.
db7uk
23-Jul-12 15:42pm
View
Hiya,
Ok that is understood. Yes this is something that could be done if not public. So with that in mind I would suggest the following:
First use the focusout event from Jquery. This would fire every time you the textbox looses focus. Using the below you can then call your stored procedure.
$('#usernametextbox').focusout(function(){
//callback here
});
You may ask how to call the stored procedure using jquery. Well one way would be to create a service or generic handler (ashx) that returns true or false depending on the contents of the text box.
Look at these links for help. If it really is causing a head ache then message back.
http://encosia.com/using-jquery-to-consume-aspnet-json-web-services/
http://riderdesign.com/articles/Check-username-availability-with-JQuery-and-ASP.NET.aspx
http://forums.asp.net/t/1661427.aspx/1
http://www.aspsnippets.com/Articles/Check-UserName-Availability-in-ASP.Net-using-JQuery.aspx
db7uk
22-Jul-12 17:11pm
View
no problem. Hope it all goes well from now on.
db7uk
22-Jul-12 17:10pm
View
Please mark as answered. Thanks
db7uk
22-Jul-12 17:08pm
View
I think it is something to do with the date (dd). Try casting it or formatting the date in the correct manor that your database uses?
db7uk
22-Jul-12 17:02pm
View
Please elaborate. This is not a well formed question. What context, what environment, what level of security?, What have you tried?, what is your goal?
db7uk
22-Jul-12 15:49pm
View
Can you show the gridview markup? Have you set GenerateColumnsAutomatically?
db7uk
19-Jul-12 4:15am
View
http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/9a9a7d1d-d818-4b53-9e6b-6527051359a6/
http://www.codeproject.com/Articles/27107/Scalable-COMET-Combined-with-ASP-NET
db7uk
19-Jul-12 4:14am
View
Well with signalR and jQuery you can do that. You may also want to look at a duplex service that users subscribe to and then get notified when something happens. You can do this with JQuery but if it were Silverlight you would have a better time with it.
db7uk
18-Jul-12 7:49am
View
So you want a service that performs something like an event aggregator or mediator?
db7uk
17-Jul-12 17:46pm
View
Yes, it would be better to show the code where you have the exception, show the stack and more importantly show the config file
db7uk
16-Jul-12 18:23pm
View
Personally I would not post questions as solutions as this is confusing to people that have the same issue. Either post a new question or at best leave a reply comment.
db7uk
16-Jul-12 18:21pm
View
I guess the question is: Why do you want to execute the submit using JQuery when you have a button? What is the overall goal?
db7uk
16-Jul-12 14:54pm
View
5+ :)
db7uk
15-Jul-12 17:49pm
View
You could but it is not fully released yet so there may be issues you encounter that means you would have to uninstall / re-install release versions etc. Not a major problem. The WebAPI stuff is great to get going on too! :)
db7uk
15-Jul-12 16:42pm
View
Can you not use windows authentication for your intranet site? Users could be controlled by Active Directory which would also help with the server request authentication?
Are you using Impersonation? If so I would double check delegation. Is the DB server on the same server as the Web app?
db7uk
6-Jul-12 15:23pm
View
What is wrong? what error?
db7uk
22-Jun-12 18:55pm
View
my 5. this is the best advice. one should try an learn / discover ways of doing this from the vast amount of material out there. if you are learning .net, i really recommend www.pluralsight.com. fantastic for any learning needs. also www.asp.net has a massive learning section which covers this sort of thing.
db7uk
22-Jun-12 6:49am
View
This should not happen. Is your site deployed to a server? IIS version? Are you using the membership provider for login credentials?
db7uk
22-Jun-12 4:17am
View
Now this is far to general a question. What have you tried? What database are you referring to? What language are you using? All of this really helps because lack of information will mean lack of solution (or right solution). "Improve Question"
db7uk
21-Jun-12 17:57pm
View
I have added a solution to what little information you have provided. Please elaborate more so that the solutions can be more suited to your needs. "Improve Question"
db7uk
21-Jun-12 17:26pm
View
Yeah that's kind of what I thought and maybe I was not clear enough so apologies for that. What I was trying to say was that the OP can not do what he wants. SQL will not allow a higher version database to be attached to a lower version server. It is getting late and I may have really missed the point as my brain is failing. If it is I am sorry and will seek medical attention at one! :)
db7uk
21-Jun-12 17:10pm
View
Have you got a small script output for both tables? I think I get your situation but please expand on what you refer to as object table?
db7uk
21-Jun-12 16:06pm
View
does a postback occur? What is the code behind?
db7uk
19-Jun-12 9:06am
View
not sure I follow. What application client are you developing. Your tags include wpf and asp.net???? Also is the code in any usercontrols etc? Could you provide more detail using "Improve question".
db7uk
19-Jun-12 8:43am
View
Try something like:
Dim txt As String = "ADR;WORK;PREF:;;Sjoerd Veltmanstraat 15;Drachten;;9203 NJ ENCODING=QUOTED-PRINTABLE:Sjoerd Veltmanstraat 15"
Dim newTxtStrings As New List(Of String)
newTxtStrings = txt.Substring(txt.IndexOf(":") + 1).Split(";").Where(Function(txtString)
Return txtString.Length > 0
End Function).ToList
db7uk
19-Jun-12 4:49am
View
Is the second database on the same server as the first? You can just add another connection string to the app / web.config and use that?????
db7uk
19-Jun-12 4:37am
View
???? What have you tried? Is it ASP.Net, WPF etc..
db7uk
19-Jun-12 4:36am
View
Please show some code. Please show the way you are passing the arguments. We cant work out if you are using ADO.NET or Entity framework etc. Please show you SP header including the variable layout. This will help to determine what exactly should be passed. Please improve question.
db7uk
19-Jun-12 4:22am
View
yes. Use "dim myDateTime as DateTime?" or "dim myDateTime as nullable(of DateTime)". Your null value in the database will be DbNull.value. You can check for this and if true set the "myDateTime" to nothing.
db7uk
19-Jun-12 4:06am
View
Indeed. Without the config file detail no-one can determine what's happened!
db7uk
18-Jun-12 16:45pm
View
When you say you have tried the convert. What happened? I normally do this if working with dynamic sql:
select @countout=count(*) from Trans where Trans.Date between convert(datetime, '+ @FromDate +', 103) and convert(datetime, '+ @ToDate + ', 103)
db7uk
18-Jun-12 6:57am
View
my pleasure. Sorry for the time it took but got there anyway. Happy coding!
db7uk
18-Jun-12 6:39am
View
Ok, Looking at how you call the SP you need to call the sp like:
exec usp_test N'test', N'id', N'BO-0001'
db7uk
18-Jun-12 6:26am
View
Ok, Looking at how you call the SP you need to call the sp like:
exec usp_test N'test', N'id', N'BO-0001'
db7uk
18-Jun-12 6:23am
View
mmmm I have just re-created your sp and using the code I suggested. What happens if you run in a new query window?:
DECLARE @TableName nvarchar(50),
@PM1 nvarchar(50),
@Value1 nvarchar(50),
@DynamicSQL nvarchar(4000)
SELECT @TableName = 'testTable',
@PM1 = 'id',
@Value1 = 'BO-0001'
SET @DynamicSQL ='DELETE FROM '+ @TableName +' WHERE ' + QUOTENAME(@PM1) +'=''' + @Value1 + ''''
PRINT @DynamicSQL
Exec (@DynamicSQL)
db7uk
18-Jun-12 5:24am
View
I know what you already said. But what I am asking is this.
comment out your exec(@DynamicSQL) statement.
Add Print @DynamicSQL
Tell me what the output message is.
db7uk
18-Jun-12 5:20am
View
move away from this sort of thing. If you do want a function that returns a connection object then use something like I suggested in my improved solution. Also review solution 2 with regards to query string. Note: you will need to close the connection once all work is done. I would wrap all of what you have done in a try catch and in the finally statement then close and dispose.
db7uk
18-Jun-12 4:52am
View
Also what is the actual exception message?
db7uk
18-Jun-12 4:52am
View
What is con? how global is it?
db7uk
18-Jun-12 4:16am
View
Is the unmanaged dll serializable? Are you using WCF?
db7uk
18-Jun-12 4:07am
View
Ok thanks. What is the final print output of @DynamicSQL?
db7uk
17-Jun-12 18:02pm
View
If you do a Print @DynamicSQL what does the message tell you? Could you also state the correct datatype for @Value1 (I take BO-0001 is varchar) and specifically @PM1?
db7uk
17-Jun-12 17:44pm
View
Updated by removing repeated content.
db7uk
17-Jun-12 17:39pm
View
damn sorry. It was a long shot as I got the feeling you probably tried that already.
Ok, so what flavor is it? WPF/winforms? Have you tried adding a field that when set true you could ignore in the Listchanged event?
db7uk
17-Jun-12 5:14am
View
yes but you are missing the quotes ''' around the value.
db7uk
17-Jun-12 2:52am
View
thanks Tim. hope i it helps in some way.
db7uk
17-Jun-12 2:50am
View
thanks!
db7uk
17-Jun-12 2:50am
View
Deleted
thanks Tim. hope i it helps in some way.
db7uk
15-Jun-12 18:22pm
View
Deleted
Sorry, what error is thrown?
db7uk
15-Jun-12 14:34pm
View
um what is the question? what have you tried?
db7uk
15-Jun-12 14:19pm
View
Hi. I am not following the question. What is the problem? Your title stated you wanted to retrieve an image from sql and be used in a wpf application. I don't quite follow what you are trying to achieve with the code and question you have asked. Please re-phrase by "improve question".
db7uk
15-Jun-12 9:59am
View
??? not a well formed question. Please re-post with a little more information. I doubt people can help with this as it is hard to work out what's going on. Also add what you have tried or want to try, the application type (WPF, Winforms, Webapp). All this really helps!
db7uk
15-Jun-12 6:07am
View
This is not a solution and should be removed to avoid confusion.
Also I think the question is not clear. Are you talking about a service that is hosted in a development environment or remote location. What sort of WCF service is it (self hosted, service or IIS)? what bindings have you used? nettcp, http, msmq? The more information we get the better the chance of an accurate answer.
db7uk
14-Jun-12 7:11am
View
Please could you "Improve Question". I am confused as to what is actually happening now as there are several answers and several questions all on several threads... Please re-post the code you actually are working now rather than something from another time to help us determine if or where the problem is???
db7uk
14-Jun-12 6:30am
View
next question. Is the service local or remote when published?
db7uk
14-Jun-12 6:27am
View
Deleted
next question. Is the service local or remote when published?
db7uk
14-Jun-12 6:19am
View
when you deploy the service, what is the configuration i.e. debug or release?
db7uk
14-Jun-12 6:02am
View
How are you attaching to the process? Have you checked the box "Show processes from all users" and "Show processes in all sessions"? You service maybe being launched under a different user / session which is why the attach process does nothing???
db7uk
14-Jun-12 5:54am
View
sorry, not quite clear. Are you trying to debug your live (release) instance? If so remove the #if and just use the thread.sleep. I would also remove the debugger.launch method too.
db7uk
14-Jun-12 5:54am
View
Deleted
sorry, not quite clear. Are you trying to debug your live (release) instance? If so remove the #if and just use the thread.sleep. I would also remove the debugger.launch method too.
db7uk
12-Jun-12 19:06pm
View
Hiya, sorry is this a question? If so I would be happy to help. Could you re-post by selecting "Improve Question" with an extract of the actual data. I have the code I suggested and would be happy to assist. thanks
db7uk
12-Jun-12 8:32am
View
cool, glad all is at one with the world.
db7uk
12-Jun-12 4:12am
View
Sorry, was this answer not correct?. I am still working on the extension method for you but had been caught up on somthing else!
db7uk
11-Jun-12 15:55pm
View
Is the code breaking at a certain point? i.e. vs shows the code block that caused the issue? What happens if you trap nullReferenceExceptions through the execptions menu (debug > Exceptions > system > System.NullReferenceException) ????
db7uk
11-Jun-12 14:49pm
View
oh, If you have any xaml to post this should be better to help. If you need to "Improve Question" with xaml and you'll probably get a better answer.
db7uk
11-Jun-12 5:36am
View
What have you tried? Have you tried @@IDENTITY??? Do you have a primary key?
db7uk
11-Jun-12 5:31am
View
If we are talking about sql insert then you would need to use the CASE statement. If in code then you could use the SELECT CASE or if... If you answer by posting a new question then I / We / someone can give a solution. Thanks for the *'s !!!
db7uk
11-Jun-12 5:26am
View
Cheers!
db7uk
11-Jun-12 5:24am
View
Thanks, I should really have used the MSDN link as the preferred link in the original post!!! :)
db7uk
11-Jun-12 5:02am
View
Agreed, at anchor point 6 (Example of Animation with Code Behind) there is an example of code animations. This may not have been clear enough. I have added a couple more links for possible other solutions however the OP question was a little vague.
db7uk
11-Jun-12 4:45am
View
Yes please add more detail or xaml! There are several ways to things with images but I really don't get your question???
db7uk
11-Jun-12 4:20am
View
I think that is a too general question. What have you done so far?
db7uk
10-Jun-12 18:32pm
View
WPF or winforms?
db7uk
8-Jun-12 8:52am
View
I don't understand the [traffic%]==[traffic%]???? Should you not do [traffic%] * 100????
db7uk
8-Jun-12 8:08am
View
What is your expression and what is the datatype?
db7uk
8-Jun-12 7:24am
View
What process are you talking about? Can you provide a bit more info?
db7uk
8-Jun-12 5:17am
View
Yes, agree with Sandeep. If you are using Telerik (rad) controls then I would seriously ask their forums first.
db7uk
7-Jun-12 17:49pm
View
Thanks. I would love to know how this is possible so am watching for others to comment. Thanks again.
db7uk
7-Jun-12 17:33pm
View
mmmm thought you would say that. Unfortunately I do not. The only thing I can think of is to have say a popup or editor region that could show / hide. When the user wants to edit / paste the text, the text in the text box is bound to a text block that is bent around a path. Sorry for no other solution.
Show More