15,902,938 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 pykos (Top 26 by date)
pykos
4-May-16 4:52am
View
"According to your description, it's not "repeated", its just creating as many instances as some items. But even if you do that, imagine how much mess it could be." Exactly my problem. I dont want it to open as many windows as there are items. I would like it to do this in a controlled maner so that a new form is opened only when one is finished. But this is a little out of my league as far as WPF goes. Should I use events, or something else? Thx
pykos
25-Apr-16 12:59pm
View
Well Im sorry if it came out that way... So let me try to explain a bit. I have created an outlook addin for adding email's to our DMS. In the begining it was ment to save 1 email at once (and that works great), but now requirements have changed and the program needs to save multiple items in one go. What I now need to do is toredisplay the document form for every email that user selects (I use user controls and switch them around in MainVM, there are only 3 different forms). Im trying to use mvvm as much as possible and I haven't been able to find a usefull solution on the internet (to be honest I dont know what to ask google :)). Im not asking for a compleate solution im asking about how to tackle this. Or how wolud you guys try to do this... Thx, B
pykos
25-Feb-15 2:19am
View
Yep this works... is there a cleaner/better way to achive the same result?
pykos
24-Feb-15 14:58pm
View
So how do I solve this problem? I do need this result as I dont think that this imposible to achive? Multiple statements and UNION between them?
pykos
24-Feb-15 14:50pm
View
Or does not return the result that I want. If there is an or in the query I get all the atendees that were in atlest 1 event. What I want is to get only the atendees that were in two or more events (the user of the app selects wich evnt he wants to filter atendees by)... Im building this query dynamicaly and there are other fields and filters that user can apply.
Shuld I be using a UNION operator and split the query so that there are no AND operators in the WHERE clause?
pykos
21-Apr-14 10:28am
View
This is an intranet app, so I only logged in domain users can use it. If I understand it right IIS_IUSRS uses the current machine name, not the current logged on user. The requirements are, that all files reside on a disk, and evry file has special permissions assigned to it (once a file is uploaded, a method fires that assigns correct permissions, based on the user that uploaded the file, this works as expected).
I want to know if there is a way to tell IIS that it shuld access the maped virtual directory where all the files are stored as the current logged on user, if the user does not have correct permissions he is denied access, else the file is opened.
Right now I have IIS set up to connect to remote folder as application user and only windows authentication is allowed, but I can still access files that I uploaded with other users.
TY B
pykos
27-Mar-14 2:48am
View
Well the problem with this approach is that I allredy map my view model to entity model in another project, and I feel that mapping evrything again is a bit redundant...
pykos
7-Jan-14 7:45am
View
This will be a webforms/mvc (havent decided yet) app that will run on the local intranet, and the document will reside on a shared disk, where users will have write permissions. After the user selects a document template, the file will be written on the shared disk, then the user will fill out the document and save it. After that the user will fill out the rest of the form and submit it. After submisson the app will remove all permissions on the document the user created, and rewrite them for this user and all others who need to be able to read this document. I assume that after all of this is done, the user will only have read permissions for this particular document, or am I wrong?
pykos
7-Jan-14 7:39am
View
Deleted
This will be a webforms/mvc (havent decided yet) app that will run on the local intranet, and the document will reside on a shared disk, where users will have write permissions. After the user selects a document template, the file will be written on the shared disk, then the user will fill out the document and save it. After that the user will fill out the rest of the form and submit it. After submisson the app will remove all permissions on the document the user created, and rewrite them for this user and all others who need to be able to read this document. I assume that after all of this is done, the user will only have read permissions for this particular document, or am I wrong?
pykos
7-Jan-14 7:23am
View
Thanks but I tested out my solution and it wokrs great... To add user rights to 200k documents takes about 20min wich is a great improvement over what we have now... thanks anyway
pykos
6-Jan-14 8:20am
View
Could you elaborate on that?
pykos
6-Jan-14 8:02am
View
Thank you for your answer, but if I understand Microsoft right this gives the application that is using this file, permissions for reading and/or writing to this file. How ever I want to add the user that is using this application permissions to read or write.
For example, when I go to file properties->security the user should be listed there with only read permission. The problem is, when the users find out how to access these files (ie. they type the file path to the explorer) they must be denied access if they are not listed under the security tab.
I dont know maybe I'm looking at this all wrong...
pykos
8-May-13 3:15am
View
Are you shure your query returns elements? Does it throw any exceptions?
Maybe you can try with this...
site.WebApplication.FormDigestSettings.Enabled = false;
site.AllowUnsafeUpdates = true;
///code here;
site.WebApplication.FormDigestSettings.Enabled = true;
site.AllowUnsafeUpdates = false;
pykos
30-Nov-12 8:13am
View
errors? use a try catch block an see what happens, I cant help you with "it doesnt work" :). I assume "http://wingtip" is the whole site collection, is your list on a sub site like "http://wingtip/subsite" I think this is the problem. Try the url first and then report what happened.
BTW kurac1? Baljkakan? :)
B
pykos
20-Nov-12 6:51am
View
I have tried it this way but all the records get added in the test database, no matter if I set the conn string to point on the other database
#if (DEBUG)
adapter.Connection.ConnectionString = "Provider=SQLOLEDB;Data Source=******;Persist Security Info=True;Password=********;User ID=*******;Initial Catalog=DatabaseTest";
#else
adapter.Connection.ConnectionString = "Provider=SQLOLEDB;Data Source=******;Persist Security Info=True;Password=********;User ID=*******;Initial Catalog=DatabaseProduction";
#endif
I changed the mode to release.
pykos
3-Oct-12 7:43am
View
any ideas how?
pykos
1-Oct-12 15:32pm
View
I seem to have gotten a bit further, now the exception is thrown in the win mobile emulator,is there a way to copy it out of there? Becouse I dont seem to be able to?
pykos
1-Oct-12 15:18pm
View
Im sorry but I think we're making a big deal out of nothing... I tried to create a connection with db manualy and it fails, wich in term means that all the subsequent adapters that use the seame connection string to connect to DB fail...
So again could there be anything wrong with the connection string i posted a few posts back or am I missing something else...
thanks for helping
pykos
1-Oct-12 13:56pm
View
IsShiloh '((System.Data.SqlClient.SqlConnection)(((System.ComponentModel.Component)(this.Adapter.SelectCommand.Connection)).Events.parent)).IsShiloh' threw an exception of type 'System.NullReferenceException' bool {System.NullReferenceException} this is the connection server version from quick watch error "Invalid operation. The connection is closed."
pykos
1-Oct-12 13:48pm
View
Deleted
+ IsShiloh '((System.Data.SqlClient.SqlConnection)(((System.ComponentModel.Component)(this.Adapter.SelectCommand.Connection)).Events.parent)).IsShiloh' threw an exception of type 'System.NullReferenceException' bool {System.NullReferenceException}
this is the connection server version from quick watch error
"Invalid operation. The connection is closed."
pykos
1-Oct-12 13:12pm
View
hmm, I dont think I understand you...What do you mean with "find out wich sql"? Im using VS 2008 with sql server express 2008. As I said sql queries return data in the appropriate manner if im using win forms app. It just doesnt work with win mobile...
here is the conn string:
"Data Source=xxx.xx.xx.xxx\\sqlexpress;Initial Catalog=Library;Integrated Security=SSPI;User ID=sa;Password=xxxxxx;" is this in correct format?
thank you for helping :)
pykos
1-Oct-12 12:46pm
View
Well there really is not that much to it, I have a dataset where I set up my data adapters to return data(stored procedures) and I have a simple form, all that it does is it displays customerinfo, and when I call
KnjiznicaDS.CustomerDataTable stranka = customerAdapter.GetDataByCustomerId(Convert.ToInt32(txtIdStranke.Text));
the program chrashes with the above error. I set up the conn string the dataset.designer.cs file... maybe this is the problem...oh and inner exception says "could not evaluate expression"
thanx for the answer...
pykos
2-Sep-12 6:45am
View
Thanks this resolved my problem, and for anyone else who might have this problem, just right clic on the table adapter that you need to update and click view code, and paste the code provided in the link...and also watch out if you have another insert method(the default one for example) becouse than the parameter in adapter.GetReturnValue(2) changes also, in my case to "2"...cheers
pykos
12-Jul-12 6:18am
View
could you be more specific? I dont know what you mean exactly...
pykos
11-Jul-12 4:41am
View
Sorry I mixed the order, the question is how to use "->" this kind of character in enumerator?
pykos
10-Jul-12 7:09am
View
doc.SelectSingleNode("//root//firstchild//childOfFirstChild...").InnerText = "something";
Show More