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 Stephen Hewison (Top 200 by date)
Stephen Hewison
25-Apr-16 4:14am
View
https://riccardo-moschetti.org/2014/10/03/opening-a-mobile-app-from-a-link-the-xamarin-way-url-schemas/
Stephen Hewison
28-Jan-16 10:08am
View
No, it will be a DLL which is installed and registered against the stack. If you google "Writing a winsock layered service provider" you should find a number of articles which will take you through the basics.
Stephen Hewison
28-Jan-16 5:42am
View
This is about the most up to date thread on the roadmap for the VS Team System, including the Coded UI Framework.
http://blogs.msdn.com/b/bharry/archive/2016/01/11/team-foundation-server-and-visual-studio-team-services-roadmap-update.aspx
Stephen Hewison
28-Jan-16 5:23am
View
Then try using google to research saving settings in a windows form application. Give it a go and if you get stuck. Come back and ask a question about where you're stuck.
Stephen Hewison
28-Jan-16 5:08am
View
What mechanism have you used to save your settings? What code are you using to load them? Where is the code not behaving as expected?
Please update your question to include a sensible snippet of code which shows your problem.
Stephen Hewison
27-Jan-16 8:24am
View
When you create your cordova project you use the cordova create command on the command line. This creates a folder. The created folder is the root of your project.
Stephen Hewison
27-Jan-16 6:41am
View
Then you're in the wrong directory. You should be in the root of your cordova project. Where the main config.xml file is.
Stephen Hewison
25-Jan-16 6:17am
View
I don't think this can be done. I think you can stop a user seeing it whilst still being able to execute stored procedures which access it. But if you can directly execute any script against the table you must be able to see it.
Stephen Hewison
14-Jan-16 5:31am
View
Also TLS 1.0 is effectively deprecated and subject to known vulnerabilities. There's a movement across the internet to phase out SSL3.0 and TLS1.0 and to drop support for the RC4 cipher too. To ensure your website remain compliant with modern browsers and secure you should be planning to disable these during 2016.
Stephen Hewison
14-Jan-16 5:29am
View
And to clarify. When windows orders the cipher suite preferences the (protocol, cipher, hashes and key exchanges make up a cipher suite) it makes not reference to the version of TLS being enabled in the suite. So this would suggest that yes, TLS1.0 is compatible with SHA256.
Stephen Hewison
15-Dec-15 5:57am
View
There is no scroll at bottom event so you've have to use the event you've identified. Then test the scroll position to see if it's at the bottom.
Stephen Hewison
15-Dec-15 5:55am
View
Deleted
this is a client event issue. What you've shown is a server side event. You'll need to solve this problem using javascript, the OnScroll event and properties such as ScrollOffset.
Stephen Hewison
8-Dec-15 11:34am
View
Deleted
Load it into a Bitmap object and look up the pixel which was clicked? (Assuming no scaling in the image view)
Stephen Hewison
8-Dec-15 10:47am
View
You can't install an APK over the top of an installed application with the same package name if the signing certificate is different. Did you uninstall the original APK which you decompiled?
Stephen Hewison
2-Dec-15 7:00am
View
That's a new question but I think it's going to be a limit on how much information can be passed through a uri attribute. Please accept if this answered your original question. Feel free to ask a new question.
Stephen Hewison
2-Dec-15 6:40am
View
What version of IE?
Stephen Hewison
2-Dec-15 6:39am
View
What process? The IIS worker process? Application_End is called when a work process is recycled or the application pool is stopped e.t.c.
Stephen Hewison
2-Dec-15 5:46am
View
Then use the global begin request method. This is called for every page request. If you want a distinct user count the use the session start event.
Stephen Hewison
2-Dec-15 5:19am
View
Is the page processing the cookie in an iFrame? Is the page location the same the main page?
Stephen Hewison
2-Dec-15 4:15am
View
Bump!
Stephen Hewison
14-May-15 4:11am
View
If you're interesting in just IE and the web server, you could also look at Fiddler. This already does exactly what you're asking for.
Stephen Hewison
28-Apr-15 4:35am
View
This problem was stemming from a seed of bad info. Found the bad info and the problem is now solved. Was not a technical issue.
Stephen Hewison
28-Apr-15 4:19am
View
If only it was that simple! Yes I'm testing on the same PC and the connection strings are fine. The server's recently been moved but the not NAT address hasn't changed and I copied the server/port from the same DB which drives the connection string on the .Net and SSRS side.
Stephen Hewison
27-Apr-15 5:33am
View
What extension is your service using? ASMX or a Custom extension? Is the handler registered in the Web.Config in your product environment? Is the MIME type set up for your service extension?
Stephen Hewison
20-Apr-15 3:29am
View
On what line are you getting the error? Use the browsers developer tools to find the error. A number of things changed from IE8 to IE11. Without providing the error line we cannot tell you the cause.
Stephen Hewison
2-Apr-15 4:07am
View
Did you get a warning from Apple when you uploaded your build? I've had apps which work with notification from Xcode, but didn't have the correct permissions configured. So wouldn't work from Apple.
Stephen Hewison
25-Mar-15 5:57am
View
If you're looking to using the Paint event on a control. You can call the control.Update method. This will in turn raise the Paint event.
Stephen Hewison
24-Mar-15 9:47am
View
Also does your table have any triggers? Could be an issue in the trigger.
Stephen Hewison
24-Mar-15 9:04am
View
The following are out of order in your SQL:
CheckIn,CheckOut,EmailId,Pincode
@EmailId,@PinCode,@CIn,@COut
Stephen Hewison
24-Mar-15 8:58am
View
Looks like the following is inside your look where the opening tag is outside at the start:
xml.Append("</Main>\n");
Stephen Hewison
24-Mar-15 6:24am
View
That's because you didn't remove the group by. My query doesn't have the group by clause.
Stephen Hewison
24-Mar-15 5:48am
View
then the id is chkExcludeBrand. Use:
$('#chkExcludeBrand').prop('checked', true);
The portion in the first bracket is a CSS query selector which needs to match the elements you're looking to amend.
http://www.w3schools.com/cssref/css_selectors.asp
Stephen Hewison
24-Mar-15 5:46am
View
I see you want to aggregate to a single value. But can you explain how you get an ABC value of LUFT?
SELECT ABC = 'LUFT', ROUND(SUM([GWU Vorschau]),1) AS [GWU VS] FROM Per201408BS WHERE [ABC]='LA' OR [ABC]='LI' OR [ABC]='LS' OR [ABC]='LU' OR [ABC]='LX' OR [ABC]='LY'
Will give you your result. But that assumes a static value for the ABC column
Stephen Hewison
21-Mar-15 10:30am
View
If the databases are on different servers I'd suggest looking at transactional replication. It's a feature of SQL Standard, So not express I'm afraid.
Stephen Hewison
20-Mar-15 20:11pm
View
Yes you can. But you should look at a parameter called trigger level. This will stop infinite recursion.
Stephen Hewison
20-Mar-15 12:04pm
View
All modern source code repositories do this. You get a tree structure with your branches and application structures. You can then compare any/all of the branches. TFS also has an annotation view where it shows you who was the last person to make changes to a piece of code.
I use TFS for managing a team of software developers. It gives me full audit-ability and accountability of code changes within the repository. All linked to a back-log and task management framework and highly integrated with the MS productivity suite.
What more do you need?
Stephen Hewison
20-Mar-15 11:54am
View
Not a very good question. Please provide an example, what have you tried, what problems are you having?
Stephen Hewison
20-Mar-15 10:33am
View
GIT, TFS?
Stephen Hewison
19-Mar-15 10:16am
View
You can create workers in JSFiddle by passing in the script like this:
// makeWorker is a little wrapper for generating web workers from strings
function makeWorker(script) {
var URL = window.URL || window.webkitURL;
var Blob = window.Blob;
var Worker = window.Worker;
if (!URL || !Blob || !Worker || !script) {
return null;
}
var blob = new Blob([script]);
var worker = new Worker(URL.createObjectURL(blob));
return worker;
}
Stephen Hewison
19-Mar-15 5:36am
View
Don't think you can get the client print spool from the server or using javascript. At least not outside a corporate environment. Printing from BI platforms often uses extra software components to print pixel perfect reports. SSRS uses an ActiveX to enable printing. You could write a web deployed click once application. That would allow you to jump outside the browser sandbox.
Stephen Hewison
19-Mar-15 5:34am
View
What are you validating?
Stephen Hewison
18-Mar-15 6:51am
View
Not sure why someone down-voted this. Based on his fiddle this is exactly his problem and both my options would work.
Stephen Hewison
18-Mar-15 6:04am
View
The browser doesn't represent the html in form of a tree. It represents the DOM tree in form of a 2 dimensional rendering.
Stephen Hewison
12-Mar-15 6:41am
View
Try this:
processInfo.UseShellExecute = true;
https://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.useshellexecute%28v=vs.110%29.aspx
ProcessStartInfo processInfo = new ProcessStartInfo();
processInfo.FileName = command;
processInfo.Arguments = parameters;
processInfo.UseShellExecute = true;
Process.Start(processInfo);
Stephen Hewison
11-Mar-15 15:44pm
View
I does sound like an issue with UAC. Are you only getting this issue when debugging in Visual Studio? Is your VS running as administrator? I've had similar issues using the SendKeys feature. You cannot pass instructions from a none administrator process to an administrator process otherwise this would be an exploitable hole in Windows security. Do you get the problem if you run your binary which executes the Process.Start() direction instead of through visual studio?
Stephen Hewison
11-Mar-15 15:16pm
View
You've just answered you own question. Don't load anything into the combo to start. Let the user type the first 2 characters, filter at the DB level and only add the matches to combo once they're a reasonable number. I have to deal with similar type lists. I'd never fill a combo box with that many items. For a list that long you'd want to give the user a lot of screen space to view the list. More than in a combo box. I'd build an interface feature which has a search but allows you to apply pagination to the list of items. Only render 500 or so on a page at anyone time. A user will be more than happy to click next page after scanning that many rows. Also breaking the results down into pages would also help the user maintain the place when reviewing such a long array of items.
Stephen Hewison
11-Mar-15 4:43am
View
One what line do you get the error? con.Open or cmd.Exec. Based on the error I'm guessing it's con.Open in which case you'll have something in your connection string. Other's have seen this by trying to escape quotes using ".
Stephen Hewison
10-Mar-15 16:01pm
View
The following is a presentation from the OWASP group who are the world leading group in internet/website security. Much of the PCIDSS standard is based on their recommendations. This explains a number of techniques for obfuscating javascript.
http://www.slideshare.net/auditmark/owasp-eu-tour-2013-lisbon-pedro-fortuna-protecting-java-script-source-code-using-obfuscation
Stephen Hewison
10-Mar-15 15:57pm
View
To avoid a time lag, each request from the server could issue a queue of next pieces. I would then issue an update to the queue with each move so you'd have, for instance, up to 5 moves to complete a server request before a lag is introduced.
Stephen Hewison
10-Mar-15 15:55pm
View
If the game is tetris. I would issue the type of piece from the server. I would then get the client to report it's end position including any lines believed to be complete. (This verification could be asynchronous assuming all moves are audited before the prize is awarded). I would check on the server to make sure the final position and the lines removed were valid for the current board state. I would also put a limit on the time slippage so a user couldn't take longer to position pieces then should be allowed. Although you may need to allow some leniency here to make the game playable.
Stephen Hewison
9-Oct-14 12:36pm
View
I understand the argument for it. But in a world of multiple service providers integrating into a single solution, to have to individually agree each of the implementation because they're implemented in an iFrame seems excessive. But I guess my real issue is one of our providers is refusing to implement a p3p policy.
Stephen Hewison
9-Oct-14 10:51am
View
Please don't use all capitals. It's the same a shouting. It also makes the text more difficult to read and means you're less likely to get an answer to your question.
Stephen Hewison
9-Oct-14 10:49am
View
I thought that was the case. It's just a bit annoying. The user has an agreement with us, we have agreements with our suppliers which are covered in our T&Cs. Why shouldn't we be able to accept the cookie?
Stephen Hewison
30-Sep-14 5:20am
View
http://bit.ly/1nDLCN6
Stephen Hewison
11-Sep-14 4:33am
View
What have you tried so far, what problems have you run into?
Stephen Hewison
8-Sep-14 10:48am
View
This question asked about getting access to the WSDL. And you have your answer. Give it a go. I don't know QT but I do know web services. Download your WSDL and follow the gSoap initial steps. As you said, the initial step is the WSDL and now you know how to get it. If you get stuck using gSoap then ask another question.
Stephen Hewison
26-Aug-14 3:49am
View
You don't need any web.config in your client. It should have no dependencies on ASP.Net. It should be pure HTML, JS and CSS.
Server side for your Web API, you will need a web.config. But any issues configuration that should be started as a new question.
Stephen Hewison
22-Aug-14 3:54am
View
On windows you can use visual studio and eclipse to produce Windows and Android releases. You will struggle to produce the iOS release without a Mac. If you do not have access to a Mac I'd suggest looking at the PhoneGap Build process as this will do an iOS build in the cloud. But again, you'll still have to subscribe to the Apple developer program to do this. You can also rent Mac access from cloud providers such as:
http://www.macincloud.com/
This has plans from $1 an hour to $20+ a month. But is still considerably cheaper than investing in a Mac, at least whilst you decide if the PhoneGap route is right for you.
Here is the link for PhoneGap Build
https://build.phonegap.com/
Please accept my answer if you feel I've now answered your question.
Stephen Hewison
21-Aug-14 13:12pm
View
Be aware if you have no experience producing mobile applications you've got some learning to do. It took me 2 weeks to set up all the dependencies for my first PhoneGap build on iOS. Another couple of days for Android and another week for WindowsPhone. But now it's done I can produce all three platform builds in a day. PhoneGap is great because it standardises the API across all platforms meaning you only have to design your application once. But it doesn't remove the need to understand the basics on each platform and it will take a while to get used to the different development tools for each of the platforms so be patient and be prepared to spend significant time setting up your development environments.
Stephen Hewison
21-Aug-14 13:01pm
View
With the exception of Apple's enterprise development license you cannot produce an "Install File" to be downloaded onto the phone. The beauty of the mobile platforms is their security and ease of use which comes from all software having to be downloaded from a store. With Android you can install from untrusted sources but not by default. The user has to enable this by agreeing to a bright red "Do not do this" warning message. You can only install software onto a Windows Phone if you have the phone physically connected to the computer. So if you're looking to produce a PhoneGap application to be made commercially available then you have to subscribe to each of the platforms development programs so you can submit to their stores.
Stephen Hewison
21-Aug-14 12:53pm
View
Did you watch the PhoneGap development video?
Stephen Hewison
21-Aug-14 12:52pm
View
You have to compile a platform specific build. The PhoneGap API installed via NodeJS will allow you to create projects for the different platforms. You drop your web files into the folders created by PhoneGap and then run the PhoneGap build command to prepare the project. This then creates project outputs which can be opened and edited before submission. For iOS it creates an XCode project to be opened in XCode on a Mac running OSX. For Android it creates a Java project which can be opened using Eclipse provided as part of the ADT download. For WinPhone this creates an Visual Studio project to be opened in Visual Studio. Each development tool compiles their own builds designed for their own platforms. These can then be submitted to their associated app stores. Although the submission comes at a cost of around £100 per year for Apple and £65 per year for Microsoft. Android is free. You could also use the PhoneGap Build service which does alot of this for you but you still need to subscribe to the platform development programs to be able to submit to the stores.
Stephen Hewison
20-Aug-14 5:54am
View
Just search for this in google:
introduction to win forms development
Stephen Hewison
19-Aug-14 9:57am
View
What's wrong with reflection? Assuming the DLL is a .Net DLL? You only need to find out the names once and then you can use DLLIMPORT
Stephen Hewison
30-Jul-14 4:44am
View
What database are you trying to write to? WebDB, IndexedDB (These are client side databases) or are you looking to write the data server side? So MSSQL?
Stephen Hewison
16-Jun-14 10:34am
View
Creating an "Admin Page" is no different to creating any other page. So your questions isn't a very good one. Please describe your problem in more details. Show what you've tried so far and describe the problems you've run into.
Stephen Hewison
3-Jun-14 8:01am
View
Sorry but that's way out of scope what this forum should answer.
He're a list of Image Recognition API's
http://blog.mashape.com/post/63663156973/list-of-14-image-recognition-apis
Stephen Hewison
3-Jun-14 7:33am
View
My advice would be to start with an empty control. Then move the functionality bit by bit from your broken control to the empty one. Testing each time until it stops working.
Stephen Hewison
3-Jun-14 7:29am
View
What have you tried so far and what problems have you run into?
Stephen Hewison
3-Jun-14 7:22am
View
Are you trying to write code which recognises if an image is a car?
Stephen Hewison
30-May-14 3:54am
View
So what's the problem? What have you tried so far? What problems have you run into?
Stephen Hewison
28-May-14 10:38am
View
Although when working with Pi, 200 digits of precision on not uncommon for precision engineering.
Stephen Hewison
28-May-14 10:27am
View
I know, but it's a theoretical exercise. Plancks constant only goes to 10^-34 so 200 decimals is more than enough for the quantum world.
Stephen Hewison
20-May-14 8:57am
View
The whole purpose of MDI is to dock the child window. But I think, there's an OnMaximize event you can use to override the behaviour and instead set the window position to 0, 0 and the width/height to the container viewport size. This will in effect maximize the window to the parent without actually maximizing the window.
Stephen Hewison
20-May-14 8:51am
View
I think you're worrying too much. Most people are pragmatic. They'll ask two questions about your end product. Does it do what they want and does it do it fast enough? If the answer to both is yes then it doesn't really matter. If you're only doing something, such as raising a click event, once as part of a process then it really doesn't matter. If you're doing something thousands of times in quick succession then performance becomes more important. In which case, sent a up your own bench mark tests. Try each method 1000s of times until you see a difference in performance and then pick the best one.
Stephen Hewison
20-May-14 8:48am
View
I'm not going to go through all your code for you. But there are tools out there to help with optimisation. VS premium and ultimate have profiling tools which will show you what parts of your code take the most amount of time. If you don't have these editions you can demo the AntsProfiler from RedGate. But if you like the tool please do buy it.
Stephen Hewison
20-May-14 8:14am
View
This is a generic error you often get when working with WCF and has nothing to do with the actually problem. I would enable WCF tracing to investigate further. http://stackoverflow.com/questions/4271517/how-to-turn-on-wcf-tracing
Stephen Hewison
20-May-14 8:10am
View
This is swings and roundabouts really. I don't think it makes much difference. I'd choose option 1 because then you could update the value in the client without having to rewrite the event binding.
Stephen Hewison
20-May-14 6:51am
View
I've created HTML Application with TypeScript, Empty C# Web Site and other C# web templates. All of which work and compile TS but also compile .Net. I've tried an empty C# project, but this doesn't handle TS compilation. I've tried a number of others but I can only get TS to compile where there is a web inference with the project type and the project is a .Net project.
Stephen Hewison
20-May-14 6:48am
View
When the application is hosted in IIS it is assigned to an application pool. This controls all the settings used when managing concurrent requests, timeouts e.t.c. The following article looks at "What is an application pool". http://stackoverflow.com/questions/3868612/what-is-an-iis-application-pool
Stephen Hewison
20-May-14 6:08am
View
Is a list of 5000 items a usable feature? Would a search or drill down through categories not be better solution?
Stephen Hewison
20-May-14 6:07am
View
You haven't actually described your problem.
Stephen Hewison
27-Jan-14 4:39am
View
I've told you how to do that. Stop writing the value from the textbox directly into your SQL statement and use parameters instead.
Stephen Hewison
26-Jan-14 4:44am
View
A text box doesn't stop you adding special character. What character can't you add to your text box?
Stephen Hewison
24-Jan-14 9:53am
View
In short, no. But here's a link to the MSDN article for the report viewer, it will be a good start, http://msdn.microsoft.com/en-us/library/ms251671.aspx. There are 100s of tutorials on ReportViewer and it's designer. Try googling the terms provided in the answers you get and you will learn much more than copying someone else snippet of code into your project.
Stephen Hewison
24-Jan-14 9:44am
View
I don't think you can "pop up a word document" from a web page. All you can do is serve the response for the document. What the browser does with that depends on how the browser is configured and what plug ins it has available. You do have a little control as the MIME type set for doc/docx on the server but this is fairly limited. When we need to pop up a formatted document we use the ReportViewer, this can export to Word but also renders a pixel perfect report on the page.
Stephen Hewison
24-Jan-14 9:41am
View
The clue is Object reference not set to an instance of an object. If you debug your code, find the line where the exception happens then check which object is null, you should be able to fix the problem.
Stephen Hewison
24-Jan-14 9:40am
View
It's not designed to have more than one master page. A master page can't have a master page, so you can't nest master pages in that way. I'd suggest your approach is wrong. If you explain the problem you may get a workable solution.
Stephen Hewison
31-Oct-13 8:56am
View
Your child page should be able to cast it's master page to a specific type of master page. This will give you access to the controls within that master page and will allow your child page to programmatically change the behaviour of your master page. You should be able to disable it by setting enabled on the timer to false.
Stephen Hewison
31-Oct-13 8:50am
View
I agree this should be done client side. Normally when server events don't fire it's because you forget to rewire the event when the form is posted back.
Stephen Hewison
31-Oct-13 8:47am
View
You need to find the mechanism that causes the refresh. If you find this we can advise on how to stop it. Without knowing this it will be difficult to help.
Stephen Hewison
31-Oct-13 8:46am
View
What have you tried so far? What problems have you run into?
Stephen Hewison
31-Oct-13 8:36am
View
Thank you pablo! CSSLess isn't populating the filter component of the CSS properly.
Stephen Hewison
29-Oct-13 5:27am
View
Please don't post comments as a solution.
Stephen Hewison
22-Oct-13 5:06am
View
Look at the application pool configuration for your local IIS and for your live server. Check for differences between the configuration.
Stephen Hewison
15-Oct-13 6:13am
View
Sorry but this is a "quick" questions forum. I've shown you the technique used to do this. I'm not going to provide you with a whole application. Give it a go. If you have any problems, then ask another question.
Stephen Hewison
11-Oct-13 6:57am
View
From a security perspective, displaying a real exception messages provides would be hackers with insite into your code and infrastructure. This can create a real risk and should be avoided. As such it is a penetration test failure if you display the messages. I have a sequence which increments with each error. I display this number so I can look up a specific exception when there is a problem.
Stephen Hewison
11-Oct-13 4:11am
View
This isn't a question. Please improve the question and describe what you're trying to do and the problem you have achieving it.
Stephen Hewison
11-Oct-13 3:50am
View
How is it not working? Does it still work intermittently? Does Somee.com support web gardening? Does your application support web gardening?
Stephen Hewison
10-Oct-13 9:41am
View
http://bit.ly/GQORfa
Stephen Hewison
10-Oct-13 8:01am
View
How have you decided this is not a solution? If the direction of the slash is the problem and me asking the question give him his answer, is this not a solution? Surely that's for the person who asked the question to decide?
Stephen Hewison
10-Oct-13 7:06am
View
If you don't have that option for specific project. Select "<new...>" within the Platform drop down. Select Any CPU in the "New Project Platform" pop up. Click ok.
Stephen Hewison
10-Oct-13 7:03am
View
The installer project doesn't have it's own platform. If you right-click the installer project and open the project properties. Under the "build" section there is the "Configuration Manager". Within here you can set the platform for each project as it's built for the installer. Set each of you projects to "Any CPU".
Stephen Hewison
10-Oct-13 4:26am
View
What have you tried so far? What problems have you run into?
Stephen Hewison
10-Oct-13 4:24am
View
You can't remove the output with CSS. You can use styling to hide the bit you don't want. I've just shown you how to do that.
Stephen Hewison
10-Oct-13 4:13am
View
Have you changed the schema from ftp to http in the browser url before you try access your website?
Stephen Hewison
9-Oct-13 3:22am
View
Nothing should be written in the get or set. Visual Studio allows you to define properties like that without having to worry about managing private variables. Although I'll update my answer with a couple of examples.
Stephen Hewison
8-Oct-13 6:51am
View
Are you saying you have two files with exactly the same name and file extension within the same folder? The file system isn't supposed to support that!
Stephen Hewison
8-Oct-13 3:39am
View
You havent really explained your selection criteria. Can you elaborate on "something like"?
Stephen Hewison
8-Oct-13 3:23am
View
I don't think it's possible as not all the browsers will support creating the object type required to access the registry.
Stephen Hewison
25-Sep-13 7:07am
View
That's a very big question. Generally we answer questions about problems. Have a google, try something and come back if you get stuck.
Stephen Hewison
24-Sep-13 14:13pm
View
SA, thanks for your detailed response. I'm trying not to underestimate globalisation requirements. I'm sure we will get some appropriate consultation, just trying to make sure I have all the mechanism required, should they be required for a particular culture. Annoyingly it looks increasingly likely our first international venture will be into Arabic. Would have preferred a nice Latin based European culture but that's life I guess.+5
Stephen Hewison
24-Sep-13 11:24am
View
Yes to human cultures. We have a custom check box nicely suited for iPads which currently displays a tick or a cross. Will these visual cues be meaningless in foreign cultures.
Stephen Hewison
15-Aug-13 15:07pm
View
A little punctuation would help make your question clearer.
Stephen Hewison
15-Aug-13 6:37am
View
The @total variable is the total of the original random numbers. To get the total of the adjusted numbers, look at the last select statement.
Stephen Hewison
15-Aug-13 6:36am
View
select * from #temp 2
Stephen Hewison
15-Aug-13 6:36am
View
Then please accept the solution and place a vote using the stars on the top right.
Stephen Hewison
15-Aug-13 4:57am
View
That's not possible. You max value is 0.3. Mutiply that by 1000 and you get a max total of 300. So your problem as you've described it is impossible to solve.
Stephen Hewison
15-Aug-13 4:56am
View
Not a problem. My day rate is £400. Or alternately, tell us what you've tried so far and what problems you've come up against.
Stephen Hewison
14-Aug-13 11:26am
View
+5... But personally I normally post a LMGTFY link
Stephen Hewison
13-Aug-13 4:05am
View
What have you tried so far? What problems have you encountered?
Stephen Hewison
13-Aug-13 3:39am
View
You need to interrogate the WebResponse object returned by the WebRequest as this will have the relevant HTTP redirect codes and the redirect address. You'll be able to follow this until you find the PDF.
Stephen Hewison
12-Aug-13 9:21am
View
It's not set by the web browser. It's set by the web server. Are you not in control of the server supplying the pdfs?
If you want to do it completely from the client. You could use the WebRequest object to get the file bytes and handle the save in the client instead of using a web browser control.
Stephen Hewison
12-Aug-13 7:29am
View
Can you provide a more detailed example? I don't get the premise of the question. Use the improve question link.
Stephen Hewison
12-Aug-13 7:28am
View
Click the stars on the top right of the solution
Stephen Hewison
7-Aug-13 11:26am
View
Tapas, Thanks for the response. I'm well versed in WCF. I'm a big fan of self hosted WCF n-tier service oriented architectures for enterprise solutions. Unfortunately if that doesn't change the response you're getting then you'll have to run the trace as I've found this is the only way to get to the real error.
Stephen Hewison
6-Aug-13 7:12am
View
And are these visible if you manually type of the address into the browser?
Stephen Hewison
6-Aug-13 6:57am
View
This isn't a question. Please use the improve question link.
Stephen Hewison
6-Aug-13 6:57am
View
Then I'd suggest there's a problem with your other page too.
Stephen Hewison
18-Jul-13 14:23pm
View
It says on the home page. IE is ActiveX. For other browsers they have developed a number of plug-ins.
Stephen Hewison
18-Jul-13 14:20pm
View
If it's the whole report which isn't rendering then it isn't this problem. You have a different problem. Most likely with the configuration of the report viewer control.
Stephen Hewison
5-Jul-13 12:35pm
View
Thanks
Stephen Hewison
5-Jul-13 11:48am
View
You're welcome. In the future please use the "Have a Quextion or Comment" button to reply to a solution as the solution author will then be notified.
Stephen Hewison
5-Jul-13 11:16am
View
That depends on the changes. If none of the API's have changed you and just deploy the new DLL. Otherwise you'll nee to deploy the the components which have dependencies within the BLL DLL.
Stephen Hewison
26-Jun-13 6:07am
View
And I've just shown you how to do that.
Stephen Hewison
20-Jun-13 10:50am
View
Hi, whilst your test is valid it's my mistake as I should of referenced Session and not QueryString in my question.
Stephen Hewison
20-Jun-13 9:29am
View
thanks
Stephen Hewison
20-Jun-13 9:29am
View
Thanks
Stephen Hewison
20-Jun-13 7:00am
View
Thanks
Stephen Hewison
20-Jun-13 4:37am
View
Really? Why the down vote?
Stephen Hewison
19-Jun-13 3:50am
View
When the XmlReader is at the point of any specific XML node from your document. You can access the value for any attribute using the default collection on the xml reader. see the code xr["i"] just replace the "i" with any attribute name. Actually stop, look at the example and work out what it's doing. Then next time you won't have to ask the question.
Stephen Hewison
19-Jun-13 3:41am
View
You change the check against Name to "RootMenu" and the reference to the attribute from "i" to "name"
Stephen Hewison
19-Jun-13 3:17am
View
Can you give an example of a how to create a "system generated column"?
Stephen Hewison
18-Jun-13 6:12am
View
Although that said. If you must do it in .Net it will require you to write a lot of unsafe code plug in to the Win32 API. The following article describes exactly what you're trying to do in a little more detail. http://stackoverflow.com/questions/257768/writing-a-virtual-printer-in-net
Stephen Hewison
18-Jun-13 6:10am
View
Your requirement is to write a virtual printer driver which isn't simple at all. My advice would be to use the tool I showed you to write the file out to a user specific location and then map a network drive to that user as part of your group policy. Alternately you could purchase 1 license per user and install and configure it on each end user machine.
Stephen Hewison
7-Jun-13 11:41am
View
This is a bad question. I've read it several times and you haven't explain how the modifier table relates to the other tables. Also foreign keys aren't used for updating tables. They're used for ensuring referential integrity and improving query performance when selecting data. You need to explain the use case for scenario. Please improve the question.
Stephen Hewison
6-Jun-13 7:07am
View
That is the method. You many have to interrogate the contents of the iframe document instead of your document.
Stephen Hewison
18-Apr-13 15:03pm
View
No, I have some large, slow moving, corporate machines as clients that still run IE6 as part of their workstation image.
Stephen Hewison
18-Dec-12 7:23am
View
That's just a generic top level error. Is there an inner exception?
Stephen Hewison
14-Dec-12 12:23pm
View
Why use a merge sort? Try a quick sort. http://www.cquestions.com/2008/01/c-program-for-quick-sort.html
Although the same site covers merge and other sort algorithms.
Stephen Hewison
14-Dec-12 9:19am
View
There is an often overlooked log for helping with such errors. Take a look at the HTTP Err log. Normally found at: C:\Windows\System32\LogFiles\HTTPERR. Details here: http://support.microsoft.com/kb/820729
Stephen Hewison
5-Nov-12 11:47am
View
Thanks for the response. +5
Stephen Hewison
22-Oct-12 8:28am
View
The following is an article about enabling tracing in WCF. Try this, it should provide with more information about your error. http://stackoverflow.com/questions/9897201/how-do-i-investigate-wcf-giving-400-bad-request-over-get
Stephen Hewison
22-Oct-12 8:08am
View
That error message has nothing to do with the object graph size. That error message is a generic error message presented by the client. It means there's a problem with your service and your client can't communicate with it. You need to take a further look at the configuration of your service.
Stephen Hewison
22-Oct-12 8:06am
View
And what's wrong with this code? What error message/behaviour are you seeing which isn't the desired result?
Stephen Hewison
22-Oct-12 7:58am
View
SPAM!
Stephen Hewison
5-Oct-12 6:53am
View
Please don't post the same question multiple times. Please improve your original question instead.
Original question here:
http://www.codeproject.com/Answers/471182/asp-net-conversion-of-code#answer1
Stephen Hewison
4-Oct-12 3:48am
View
In most browsers pressing F12 will launch the developer tools. You can then use the script section to set a break point in your JS code. You can then step through your JS code to see where it's failing.
Stephen Hewison
2-Oct-12 13:44pm
View
If you have multiple cascading constructors "this" allows you to reference other constructors within the same class as opposed to "base" which allows you reference constructors from the inherited class. So:
public class Foo
{
public Foo()
: this("default text")
{
}
public Foo(string message)
{
//do something with message
}
}
Stephen Hewison
2-Oct-12 13:36pm
View
Just to add a little more info. IOC or Dependency Injection is one of a set of 5 principles called the SOLID principles. By following these principles in your code design you'll produce very clear, well defined and reusable code. http://en.wikipedia.org/wiki/SOLID_(object-oriented_design)
Stephen Hewison
2-Oct-12 13:26pm
View
Hi Sergey, thanks for the info. Prefixing private fields with underscore is acceptable whilst not often done in C#. I prefer it to lower camel case to avoid clashes with method parameters and having to prefix references to private fields with "this". You are right that depending on the situation, internal would be a valid option for the worker. But then you'd be making the assumption the worker is in the same assembly as the form, the OP didn't give enough info to make this assumption and in reference to using IOC, doing so in the same assembly kind of negates the need for IOC. Also the OP wasn't asking for lesson on access modifiers so I assumed it was out of scope of the question. And whilst it's by the by, you voted 4 not 5.
Stephen Hewison
2-Oct-12 11:32am
View
Insert into one table, repeat for second table.
Stephen Hewison
1-Oct-12 14:50pm
View
+5, I've used this to extract data from PDF.
Stephen Hewison
1-Oct-12 14:41pm
View
+5
Stephen Hewison
1-Oct-12 11:39am
View
I assume it's typed correctly in your code as the casing used in the question is wrong? document.getElementById('elId').rows.length would be correct.
Stephen Hewison
1-Oct-12 11:25am
View
lmao
Stephen Hewison
1-Oct-12 11:25am
View
My advice would be to check the configuration of the ones where it renders wrong. Look at things such as the dpi for the theme. You might need to take vertical and horizontal dpi into account.
Stephen Hewison
1-Oct-12 11:21am
View
No I was wrong. Thought (newHeight / 768D) would give an int because newHeight is an int.
Stephen Hewison
1-Oct-12 11:15am
View
Oh wait, I think I see your problem. Solution coming.
Stephen Hewison
1-Oct-12 10:56am
View
Doesn't the picture box have either a stretch or a zoom mode which does this automatically?
Stephen Hewison
1-Oct-12 10:38am
View
Yes, and I hate to get almost philosophical, but don't all events begin with a poll? It's just us spoilt 3rd generation language developers aren't used to having manage it.
Stephen Hewison
1-Oct-12 10:01am
View
Then I apologise. I thought it was a legitimate question. But then that's just me. :-)
Stephen Hewison
1-Oct-12 9:52am
View
Perhaps it's just a command line utility? Don't know why you've voted this down? I quite happily allow a web services to execute console applications. I've got an old FoxPro utility which is launched via a web service call.
Stephen Hewison
28-Sep-12 12:02pm
View
It's a bit of a big question. My advice would be to think about the entities involved. I've worked with time tables and they're not simple systems, especially if you're record registrations too. There are classes, students, class grouping, rooms, teachers, days, lesson slots.
Start with an entity relationship diagram, think about normalisation, if you don't know what normalisation is, read about it. Then start on the code.
Stephen Hewison
28-Sep-12 11:39am
View
Homework!!!
Stephen Hewison
28-Sep-12 11:38am
View
+5
Stephen Hewison
28-Sep-12 8:06am
View
I agree, for now HTML appears to be future for UIs.
Stephen Hewison
28-Sep-12 7:04am
View
Sorry, instead of Min it should of been MinValue. With Intellisence in VS I'd thought someone could of worked that out. And yes, it's minutes not seconds. I've updated the solution.
Stephen Hewison
28-Sep-12 5:51am
View
No problem, if you could show your thanks by accepting the answer it would be much appreciated.
Stephen Hewison
28-Sep-12 4:53am
View
Third party interpreters for Silverlight can be a bit ropey. You have to design you're application to the Runtime. It's similar to trying to write code for .Net and Mono.
Stephen Hewison
28-Sep-12 4:41am
View
It's really not clear what you're asking. Trying using the "Improve question" option and providing more details. Ideally you should provide a really simple example, in code, which illustrates your problem.
Stephen Hewison
28-Sep-12 4:39am
View
There are runtimes for Mac and Linux but not for iOS or Android.
Stephen Hewison
28-Sep-12 4:29am
View
I added lots of comments. Are you using IE? Is the .Net framework in which the application is compiled installed on the machine? Do you have .application registered as a MIME type in the VD in IIS?
Stephen Hewison
28-Sep-12 3:00am
View
In simple terms yes, decoupling the logic from the view is a good idea. Traditionally software application are developed in 3 layers to enable them to be reused. Data access layer (DAL), Business logic layer (BLL) and the User interface layer (UIL). When you progress to building larger systems you'll find this approach useful as often in business systems you have multiple applications/processes need to consume to the same data/logic. If you want some good reading to give you insight into other design practices I'd suggest reading the following... Service Oriented Programming, Aspect Oriented Programming, Domain Driven Design Practices, Test Driven Development Practices, SOLID principles. Also an understanding of practices around inheritance, polymorphism, abstraction, interfaces. Design patterns as well, the more design patterns you understand the more tools you'll have in to tool bag to solve logic problems as they present.
Stephen Hewison
28-Sep-12 2:51am
View
Deleted
Yes an IP address will do.
Stephen Hewison
28-Sep-12 2:51am
View
Yes an IP address will do.
Stephen Hewison
27-Sep-12 10:47am
View
It is, but the way I've written it allows the MixCollection and MixUpdater to become a programming component which can be used by any application or interface. Your approach irreversibly links the classes to your UI. When thinking about your application design you should consider best practices. Take a look at the SOLID principles, if you learn then and follow them you're coding standards will vastly improve. http://en.wikipedia.org/wiki/SOLID_(object-oriented_design)
Stephen Hewison
27-Sep-12 10:36am
View
The logic you apply to which record you get is up to you. Thats the bit you decide for yourself and write in where the comment is in the MixUpdater.
Stephen Hewison
27-Sep-12 10:33am
View
Solution updated :-D
Stephen Hewison
27-Sep-12 10:21am
View
If you've got a collection which is being managed by multiple threads. I'd definitely put the thread safe handling into the collection. Give me a few minutes and I'll try and update with a more complete code sample.
Stephen Hewison
27-Sep-12 7:37am
View
The key to getting a good answer is to provide all the information required to reproduce to the problem, but to do it in a way that requires CodeProject members to look at the least amount of code. So once you've tested your script and proved it works. Try and create the most basic example which illustrates the problem. Then update your question with the code.
Stephen Hewison
27-Sep-12 7:26am
View
You may be asking the wrong question. Like I said, rule out problems with your script. Take a simple page, nest a few divs with known positions and test the script to make sure you're getting the correct values. Beyond that, without seeing the full html and looking at the element you're testing it's not going to be possible to provide you with an answer.
Stephen Hewison
27-Sep-12 7:18am
View
I use my script framework with application using master pages without any problems. I use this script in a drag and drop wysiwyg content designer and it works without any problems. I'd suggest simplifying the problem. Take the script out of your application. Create a test page with just a couple of html elements and test the script. Once you know the script is working, you can rule that out as your problem and look at other things. Also, how do you know the top position is not correct? How is it not correct? What should it be? What value are you getting?
Stephen Hewison
27-Sep-12 6:29am
View
P.s. if you tell someone something is not working. It might be a good idea to explain how it's not working.
Stephen Hewison
27-Sep-12 6:29am
View
The approach is sound. It's just the paragraph delimiter which might be wrong. You need to open you text file up in a hex editor. Look at the data in the file and find the characters which are common to where there are paragraphs and then adjust the code to split the text using that delimiter.
Stephen Hewison
27-Sep-12 6:18am
View
Sorry, not a well formed question. Can you provide a bit more detail?
Stephen Hewison
27-Sep-12 5:34am
View
It's not clear what you're trying to do. Are you looking to host a WCF service in a WPF application? Or have a WPF application consume a WCF service?
Stephen Hewison
27-Sep-12 5:25am
View
With none NAT IP addresses, you should never get an IP switching in anything other than the class D range. That's why network affinity in NLB binds to the class C address. I don't think any approach that would persist someone's state after a class C address switch would be secure. We have clients which use load balanced proxy servers so class C would far into the IP address as I could go in terms of securing the session. But yes, some kind of encryption in the cookie using the class C as the key/salt would help stop session hijacking from outside the users original network. We have to use secure cookies anyway as a non secure session cookie is a penetration test failure.
Stephen Hewison
27-Sep-12 4:36am
View
Yeah, I'm thinking about writing my own. I'm thinking about building a best of both worlds scenario, so build something like the state service which runs on a active/passive cluster behind the NLB cluster, which writes data to SQL but persists state in memory. That way if the active/passive cluster falls over it can rebuild the session state from SQL but for normal operations it uses the servers RAM (I believe it takes approximately 33% longer to load the data from SQL each time). Then use a time limited cookie, instead of a session cookie, which is refreshed with a new expiry with each page cycle and can be accessed by all of the web servers. This would enable a sliding session expiry similar to the sliding expiry of forms authentication. My only concern with this is that does configuring the cookie this way enable someone to hijack another persons session?
Stephen Hewison
27-Sep-12 2:59am
View
Hi Christiaan, thanks for the feedback. I've used both State Service off the web servers and SQL session state. Both methods are sticky to the server. So if I take a node out the NLB, the clients on that server lose their session state. It's because the session cookie is a http only, session cookie. When you switch web servers the cookie can't be accessed and the session is lost.
Show More