15,913,773 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 Drazen Pupovac (Top 33 by date)
Drazen Pupovac
14-Oct-14 16:22pm
View
There is the link, but wrong path. It should be: http://www.gozindadeh.com/mokaab.rar
Drazen Pupovac
20-Jan-14 17:07pm
View
Can you provide CSS?
What is happening with HTML in order to show green message?
Drazen Pupovac
20-Jan-14 16:48pm
View
I have tried your code and it seams it is working. Only I am getting "Null reference exception" if first search has not been stop before second search (needContinueSearch = false) has bean started.
Can you provide specific search URL which you are using in Navigate method?
There can be an thread issue, but this code is not enough for me to assert it.
Drazen Pupovac
27-Jul-13 14:03pm
View
You can use database profiler to see what is sent to database.
Drazen Pupovac
27-Jul-13 13:56pm
View
Did you check that "UserComment.Text" has a value before insert? Debug it, or hard-code some value to check.
If there is any error paste it, please.
if (Dbid != null) is sufficient. int is value type it can't be null.
If you receive null from database code will be broken in this line: int Dbid = (int)sqldread["Id"];. So, check if sqldread["Id"] is not null, then if pass convert it to int.
Try to use "using" statement instead of sqldread.Dispose(); and conn2.Close();, Close and Dispose will not be executed if there is some exception.
Drazen Pupovac
27-May-12 15:25pm
View
Thank you but I already solved problem.
var documentGroups =
from document in XDocument.Load("input.xml").Descendants("Document")
from productType in document.Element("productTypes").Elements("productType")
group document by (string)productType.Attribute("id");
Drazen Pupovac
22-Mar-12 10:12am
View
I don't know what exactly you think but if you want to change folder attribute, you can do it on this way:
string dirPath = @"C:\Test Folder\Folder2";
if (Directory.Exists(dirPath))
{
DirectoryInfo di = new DirectoryInfo(dirPath);
di.Attributes = FileAttributes.Normal;
}
Drazen Pupovac
3-Mar-12 5:46am
View
Sorry, you can't prevent it 100%.
Only way is to add different role for another users. Then, how to do at? Right click on file (or folder) and properties, then security tab. There you will see all users and groups. Now, for each of them in the top list (except your own login account or Administrator) allow (check) no more then read and read & execute. For Administrator the column Allow should be completely checked.
But, there are some way to get Administrator's password, so if someone wants to delete something, he will do at.
I hope this will solve problems.
Drazen Pupovac
29-Feb-12 14:56pm
View
If you do it with command "dir /ah" it will be possible to see all hidden folders. If you instead of that use command "dir" there will not be hidden folders.
I need more information. Maybe there are another way to do it. You can protect them on another way.
From DOS is possible to see all data, even they are hidden or system folder(or files).
Drazen Pupovac
25-Feb-12 4:12am
View
Problem is in separating attributes.
Drazen Pupovac
24-Feb-12 9:05am
View
From my experience your query is good.
You can improve him like this (but i think this will not change nothing):
select * from patientdetail where (refby=@refby) AND (datep BETWEEN @date1 AND @date2)
my recommendation is to use Management Studio (or some other tool) and execute query directly and you will see what's happening.
Drazen Pupovac
10-Jan-12 5:32am
View
Thanks
Drazen Pupovac
9-Jan-12 17:04pm
View
I agree, thanks for the advice. I improved my solution now (How much is it possible :)).
One question: I read that for private fields have naming convention like _variable. It's that ok?
Drazen Pupovac
7-Jan-12 18:08pm
View
:)
Drazen Pupovac
27-Dec-11 3:05am
View
Sorry, links are corrected
Drazen Pupovac
23-Dec-11 16:50pm
View
Deleted
Thank you
Drazen Pupovac
23-Dec-11 16:49pm
View
Thank you
Drazen Pupovac
23-Dec-11 16:48pm
View
Thank you.
Drazen Pupovac
23-Dec-11 16:47pm
View
Deleted
Thank you
Drazen Pupovac
23-Dec-11 12:50pm
View
Thank you :)
Drazen Pupovac
23-Dec-11 12:50pm
View
Thank you.
Drazen Pupovac
23-Dec-11 12:48pm
View
Thank you.
Drazen Pupovac
23-Dec-11 5:15am
View
What is question exactly?
Drazen Pupovac
23-Dec-11 4:29am
View
Instruction:
Enter number separately with space, like this: 2 3 4
To break loop, enter '.' and press 'enter'
Drazen Pupovac
19-Dec-11 3:33am
View
I send you email. Project is in 7z file. If you don't have software, you can download it from this link:
http://www.filehippo.com/download_7zip_32/
Drazen Pupovac
19-Dec-11 3:18am
View
Problem is in XML file. From some reason he can't read all data.
You can leave me an email and I will send you complete project. I think it will be the easiest way.
Drazen Pupovac
19-Dec-11 2:02am
View
I forgot to add this line:
XmlSerializer serializer = new XmlSerializer(typeof(Datatable));
private void button1_Click(object sender, EventArgs e)
{
FileStream loadStream = new FileStream("sample.xml", FileMode.Open, FileAccess.Read);
XmlSerializer serializer = new XmlSerializer(typeof(Datatable));
Datatable loadedObject = (Datatable)serializer.Deserialize(loadStream);
loadStream.Close();
}
Drazen Pupovac
16-Dec-11 6:09am
View
Do you think on this?
string c = "a" + "b";
Drazen Pupovac
17-Jun-11 5:58am
View
Have you checked the connection?
Drazen Pupovac
16-Jun-11 10:59am
View
Thanks for the answer.
I think it is different for WinForms...
Drazen Pupovac
16-Jun-11 10:57am
View
WinForms
Thanks for the answer.
Drazen Pupovac
16-Jun-11 10:54am
View
Deleted
No comment
Drazen Pupovac
15-Jun-11 8:23am
View
It is compact framework, I don't have AutoSize property. It is not a problem how to change Size, problem is they can not increase radiobutton height. I make that if I put "\r\n" in radiobutton label text, but in that case second label line is black.
With width is ok.
Show More