15,891,513 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 Reza Ahmadi (Top 136 by date)
Reza Ahmadi
17-Jul-15 4:29am
View
That's not an appropriate question and this is not a solution at all for that question. You'd better add a comment than a solution there.
Reza Ahmadi
7-Sep-13 5:51am
View
have you tried replacing "onclick" with "onmouseover" ?
Reza Ahmadi
28-Jun-13 6:39am
View
Reason for my vote of 5 \n good article
Reza Ahmadi
27-Jun-13 12:02pm
View
Reason for my vote of 5 \n good article
Reza Ahmadi
15-May-13 9:33am
View
Reason for my vote of 5 \n nice article, thanks!
Reza Ahmadi
13-Nov-12 10:29am
View
Reason for my vote of 5
I like you article. It is compact and informative!
Reza Ahmadi
16-Oct-12 7:39am
View
That was really great!!!
Reza Ahmadi
7-Aug-12 2:33am
View
I'm a little bit confused! Could you please explain it in some more details?
Reza Ahmadi
8-Jul-12 6:51am
View
What is the reason for that vote???
Reza Ahmadi
8-Jul-12 2:41am
View
I tried a simple code which is like your code, but it works fine, I think you need to fix the part which hides your table, the reaming codes are OK.
Reza Ahmadi
12-Jun-12 10:51am
View
Your welcome!
Reza Ahmadi
12-Jun-12 8:39am
View
here you can find the advantages of LINQ (in the end of the article):
http://www.codeproject.com/Articles/22000/LINQ-to-SQL
Reza Ahmadi
12-Jun-12 7:01am
View
Khahesh
Reza Ahmadi
12-Jun-12 6:38am
View
bebin man nemidonam chera mikhi emkane click bezari baraye in control. Vali age mosseri, ye class jadid besaz ke az WebBrowser ers bebare, ye event jadid ham toosh bezar. In classo bayad to ye projeye Class Library gharar bedi. bad az Dll toolid shode estefade koni ta betoni controle jadidi ke sakhti(ba oon classe jadidet sakhtish) rooye form hat estefade koni.
Age kam C# kar kardi bayad aval dar morede "How to define a new event in a class" ya moshabehe in estefade koni ta befahmi che jori mishe ye event be ye class ezafe kard.
vali bazam pishnahade man be shoma ine ke varede in kar nashi va avval Webbrowser ro be khobi yad begiri, niazmandito dobare besanji, va age didi bazam lazeme beri soraghe kari ke bala goftam.
moafagh bashi
Reza Ahmadi
Reza Ahmadi
12-Jun-12 6:10am
View
If you are sure you need an on-click event on that control, you must create a new class, inherit from WebBrowser and then define an extra event, On-Click, in the new class. Then, you can use your new custom control to handle onclick event handler.
Cheers
Reza Ahmadi
12-Jun-12 6:07am
View
Your question is not clear. Describe more and clarify your exact issue.
Reza Ahmadi
11-Jun-12 15:29pm
View
Your question is not clear. Do you mean advantages of Sql over LINQ to Sql?
Reza Ahmadi
11-Jun-12 11:33am
View
Thanks Javed! I am happy you find it useful.
Reza Ahmadi
10-Jun-12 23:51pm
View
Well, thanks. I will inform you if I find a better way
Reza Ahmadi
10-Jun-12 23:50pm
View
Deleted
Well, thanks. I will inform you if I find a better way.
Reza Ahmadi
6-Jun-12 12:53pm
View
my 5, but I think your answer is partially true as there are Master of Game Design degrees in some universities. However, a good IT engineering might be a must. For more information you may visit Masterportal.eu
Cheers
Reza Ahmadi
13-May-12 3:25am
View
my 5!
Reza Ahmadi
2-May-12 8:37am
View
My 5!
Reza Ahmadi
2-May-12 8:35am
View
No actually! we programmers sometimes(!) are lazy! I reported the bug to it's programmers. Thanks any way
Cheers
Reza Ahmadi
2-May-12 0:56am
View
Could you please post the link, I did not find it
Reza Ahmadi
29-Apr-12 10:16am
View
Reason for my vote of 5
My 5 !
Reza Ahmadi
29-Apr-12 10:14am
View
Reason for my vote of 5
My 5!,Using that way we have the amazing speed of DbDataReader and the power of LINQ as a friendly tools, That was nice.
Reza Ahmadi
27-Apr-12 9:34am
View
In your TemplateField, select your control, and just define an event handler as you do in a normal situation
Reza Ahmadi
26-Apr-12 5:20am
View
5!
Reza Ahmadi
25-Apr-12 10:45am
View
If it was the case it was very simple just plus 1 to a variable. I think everyone knows how to add to a variable!
Reza Ahmadi
25-Apr-12 10:19am
View
How they've been implemented? how products shown on the form? I mean they are checkboxes/listbox/in a grid? just more info in needed.
Reza Ahmadi
25-Apr-12 9:09am
View
my 5!
Reza Ahmadi
25-Apr-12 8:51am
View
You need to attach some of your code here
Reza Ahmadi
25-Apr-12 4:31am
View
What was the reason for that vote??
Reza Ahmadi
25-Apr-12 2:30am
View
It seems it does not have that propery!! That exists just in Button, and LinkButton controls in the MSDN
Reza Ahmadi
25-Apr-12 2:10am
View
OK, Your welcome! But I don't know why OnClientClick does not work in your form
Reza Ahmadi
25-Apr-12 2:05am
View
One more thing, have you removed '<%# Eval("idProduct") %>' which was in your function as I moved them in the <asp:Image tag?
Reza Ahmadi
25-Apr-12 1:59am
View
Then debug your function, try to watch what is being send in the 'redirect' function
Reza Ahmadi
24-Apr-12 15:46pm
View
5!
Reza Ahmadi
24-Apr-12 9:36am
View
5!
Reza Ahmadi
24-Apr-12 3:36am
View
My 5!
Reza Ahmadi
23-Apr-12 11:53am
View
Good pointer, 5!
Reza Ahmadi
23-Apr-12 5:57am
View
5!
Reza Ahmadi
23-Apr-12 5:56am
View
5!
Reza Ahmadi
23-Apr-12 5:13am
View
5!
Reza Ahmadi
23-Apr-12 4:57am
View
What is 'watin'?
Reza Ahmadi
22-Apr-12 10:16am
View
Good advice!, my 5!
Reza Ahmadi
21-Apr-12 7:01am
View
Yes my fault, I just changed the solution, Thanks any way.
Reza Ahmadi
21-Apr-12 6:15am
View
Thanks!
Reza Ahmadi
21-Apr-12 5:53am
View
5!
Reza Ahmadi
20-Apr-12 8:31am
View
Nice recommendation! ( though I could not vote as did not make your suggestion as a solution!)
Reza Ahmadi
20-Apr-12 7:54am
View
Reason for my vote of 4
nice
Reza Ahmadi
20-Apr-12 3:42am
View
Another way might be using interface for a wide range of types in order to make them usable in your method. I think I got your point but it does not seem to be possible in C# compiler.
Cheers
Reza Ahmadi
20-Apr-12 3:37am
View
Then you need to use Reflection, or something like that.
Reza Ahmadi
20-Apr-12 3:19am
View
Hi,
It depends on your implementation. You need to attach your code here
Reza Ahmadi
20-Apr-12 1:07am
View
OK,I got it and thank you for your clarification.I agree with your opinion.
Cheers
Reza Ahmadi
19-Apr-12 12:14pm
View
Thanks, I just read your comments. I think your are right as it seems to be upper intermediate. However, I did not get your point about OP? Reza
Reza Ahmadi
19-Apr-12 12:13pm
View
Deleted
Thanks, I just read your comments. I think your are right as it seems to be upper intermediate. However, I did not get your point about OP?
Reza
Reza Ahmadi
19-Apr-12 7:54am
View
Here is a simple description in addition to sample, try this out:
http://msdn.microsoft.com/en-us/library/system.collections.icomparer.aspx
Cheers
Reza Ahmadi
19-Apr-12 7:18am
View
Thanks Uday!
Reza Ahmadi
19-Apr-12 7:18am
View
Deleted
Thanks Uday!
Reza Ahmadi
19-Apr-12 7:16am
View
5!
Reza Ahmadi
19-Apr-12 0:04am
View
You need to mention win-application in your question. Take a look at this post: http://www.codeproject.com/Articles/19182/Datagridview-with-filtering-capability
Reza Ahmadi
18-Apr-12 13:15pm
View
In this link search the 'limitation' key word:
http://www.codeproject.com/Articles/15656/Advanced-FileSystemWatcher
I hope it helps
Reza Ahmadi
18-Apr-12 12:39pm
View
You need to mention win-application in your question. Take a look at this post:
http://www.codeproject.com/Articles/19182/Datagridview-with-filtering-capability
Reza Ahmadi
18-Apr-12 11:10am
View
Deleted
Nice help, 5!
Reza Ahmadi
18-Apr-12 7:18am
View
I mean you need to save a record per every request in a table like 'Inbox' ( in the table you need to have necessary fields like: requester, groupAdminId, ...), then, when an admin signs in, you will display his/her corresponding messages according to Inbox table.
Reza Ahmadi
18-Apr-12 6:10am
View
That is an answer or a question? Please give some more information.
Reza Ahmadi
18-Apr-12 2:40am
View
5!
Reza Ahmadi
18-Apr-12 2:29am
View
5!
Reza Ahmadi
18-Apr-12 2:04am
View
Your welcome!
Reza Ahmadi
17-Apr-12 10:43am
View
Replace this line:
SqlConnection connection = new SqlConnection("YOUR CONNECTION STRING HERE");
With this one:
string connectionStr = ConfigurationManager.ConnectionStrings["YourConnectionNameInConfigFile"].ConnectionString;
SqlConnection connection = new SqlConnection(connectionStr);
Reza Ahmadi
17-Apr-12 1:21am
View
Thanks VJ!
Reza Ahmadi
15-Apr-12 7:01am
View
Good advice!
Reza Ahmadi
15-Apr-12 2:36am
View
I think the above code will work fine in a web-application as it doesn't have a special win-based code. What do you mean by "a random selection"?
Reza Ahmadi
14-Apr-12 14:28pm
View
Your welcome! I hope it helps,
Cheers
Reza Ahmadi
14-Apr-12 10:16am
View
I do not know the detail of your implementation to enable/disable buttons but Your question was to get rid of "Cannot convert type string to bool" error, which above code works fine.
Reza Ahmadi
14-Apr-12 6:54am
View
Thanks!
Reza Ahmadi
14-Apr-12 6:54am
View
Thanks VJ!
Reza Ahmadi
14-Apr-12 6:41am
View
Please attach your code here
Reza Ahmadi
13-Apr-12 12:19pm
View
Thanks
Reza Ahmadi
13-Apr-12 7:23am
View
Thanks
Reza Ahmadi
13-Apr-12 3:17am
View
I've tested the above code, it works fine
Reza Ahmadi
12-Apr-12 14:13pm
View
Your welcome
Reza Ahmadi
12-Apr-12 7:36am
View
What about SeparatorTemplate, have you set it? You need to show your code to help understanding your problem better.
Reza Ahmadi
12-Apr-12 7:15am
View
What is your problem exactly. It seems every thing is fine??
Reza Ahmadi
11-Apr-12 13:39pm
View
Thanks!
Reza Ahmadi
11-Apr-12 13:02pm
View
Could you please tell me what was the reason for that vote?(2)
Reza Ahmadi
11-Apr-12 4:58am
View
You need to reconsider your RoleProvider section of the web.config or machine.config
Reza Ahmadi
11-Apr-12 3:14am
View
Actually your question is not very clear. However, if you want to keep more than one copy you can use Dictionary<string,list<object>>. 'string' is your key which is used to find a particular List<object> which can be bound to a destination grid.]
Cheers
Reza Ahmadi
10-Apr-12 0:03am
View
Your welcome!
Reza Ahmadi
9-Apr-12 11:14am
View
There are some more posts which sounds related to your question in the CodeProject, take a look at this one.
http://www.codeproject.com/Questions/107228/how-to-implement-yahoo-messenger-chat-app-in-C
I hope it helps
Reza Ahmadi
9-Apr-12 10:57am
View
Reason for my vote of 5
Thanks, nice list!
Reza Ahmadi
9-Apr-12 10:56am
View
Reason for my vote of 5
Nice tip!
Reza Ahmadi
9-Apr-12 7:19am
View
What about your Authentication tag. Can you show it in your web.config?
Reza Ahmadi
9-Apr-12 3:01am
View
I really thank you for your vote! and please tell me what was the reason for that vote
Reza Ahmadi
8-Apr-12 23:35pm
View
Thanks
Reza Ahmadi
8-Apr-12 23:31pm
View
Thanks
Reza Ahmadi
8-Apr-12 23:30pm
View
Your welcome!
Reza Ahmadi
8-Apr-12 15:02pm
View
What is the datasource type which you have used for the Grid?
Reza Ahmadi
8-Apr-12 14:55pm
View
Try to use string.Format to create your statement easier with fewer mistakes. One more thing, if it is possible try to run your query in the Db first.
Reza Ahmadi
8-Apr-12 14:45pm
View
Thanks a lot Monjurul!
Reza Ahmadi
8-Apr-12 13:26pm
View
I could not understand. You want to redirect admin to a particular page after logging in or you want to have a particular login page for the admin?
Reza Ahmadi
8-Apr-12 12:33pm
View
DateTime.Parse can be used to convert a date string to date.
Reza Ahmadi
8-Apr-12 11:04am
View
I could not understand yet, could you get the value of the Text property in your code behind? and if so, have you debugged to realize what is exactly in your labels' Text property?
Reza Ahmadi
8-Apr-12 5:40am
View
Well, first of all take a look at web-services here, it is a nice and easy article:
http://www.codeproject.com/Articles/863/Your-first-C-Web-Service
Actually am not sure if there are web-sites which offer your particular need. You need to surf the net to find something, if any.
And sorry, I think you need to write in English here(According to rules) despite the fact that your English proficiency may be poor.
I hope it helps
Reza Ahmadi
8-Apr-12 5:30am
View
You need to explain it more
Reza Ahmadi
8-Apr-12 5:23am
View
Thank you for your vote! What was the reason for that vote? My solution does not work or it is not related to your problem? Which one?
Reza Ahmadi
8-Apr-12 4:09am
View
That is OK. I will help you if I can and I am from Iran.
Reza Ahmadi
7-Apr-12 15:12pm
View
Do you want to change the default icon of the exe file after you build your application?
Reza Ahmadi
7-Apr-12 10:46am
View
Your welcome!
Reza Ahmadi
7-Apr-12 10:44am
View
Hi,
Take a look at this page which exactly address your question:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.sqldatasource.filterexpression.aspx
Reza Ahmadi
7-Apr-12 6:34am
View
Hi,
My point is to define an empty grid as your destination grid. Then, according to selected rows(I presume you can find record keys from the selected rows) you filter your main data source. Then, you will bind the new filtered data to the destination grid.
I hope it will help,
Cheers.
Reza Ahmadi
7-Apr-12 5:12am
View
Deleted
5!
Reza Ahmadi
7-Apr-12 1:45am
View
Thank you for vote!
Reza Ahmadi
6-Apr-12 23:50pm
View
The name of your HyperLink control. Try to debug your application to watch all existing controls in the e.Row
Reza Ahmadi
6-Apr-12 8:19am
View
Add some of your code here and explain your question more
Reza Ahmadi
6-Apr-12 5:21am
View
Thanks Monjurul!
Reza Ahmadi
6-Apr-12 2:45am
View
I think you need to add some of your asp.net tags(in master page and one of content pages) here to make it more clear
Reza Ahmadi
5-Apr-12 14:58pm
View
Saeed, it does not make any sense actually. I kindly ask you to try to describe your problem more clearly.
Reza Ahmadi
5-Apr-12 13:18pm
View
Yes you need to cast it:
((HyperLink)e.Row.FindControl("HyperLindName")).NavigateUrl = "~/Default.aspx"
My main point is that you need to set the HyperLink in the RowCreated handler.
Reza Ahmadi
5-Apr-12 11:42am
View
Could you please give some more detail about your question as it is not very obvious.
Reza Ahmadi
5-Apr-12 11:41am
View
Could you please give some more details. It is not very obvious.
Reza Ahmadi
5-Apr-12 8:50am
View
I was offline and did not see your post
Reza Ahmadi
5-Apr-12 5:58am
View
Thanks!
Reza Ahmadi
5-Apr-12 4:43am
View
It is not very clear. Do you mean you need to get files from a directory and it's sub directories and then display in a GridView?
Reza Ahmadi
4-Apr-12 8:47am
View
Then you can do it in your Setup Application or Custom Installer
Reza Ahmadi
4-Apr-12 5:26am
View
One possibility is your bandwidth. If you use a faster connection probably it will be fixed
Reza Ahmadi
4-Apr-12 4:10am
View
Reason for my vote of 5
That is a quite useful tip! Thanks
Reza Ahmadi
4-Apr-12 3:30am
View
What was the reason for that vote?
Reza Ahmadi
4-Apr-12 3:23am
View
Nice!
Reza Ahmadi
3-Apr-12 13:35pm
View
Sorry I can't as I don't have VS available right now and at work I'm very busy. I hope my solution can help you.
Reza Ahmadi
2-Apr-12 14:59pm
View
Using ConfigurationManager.ConnectionStrings["key"].ConnectionString is not type safe as you are using "key" which is a string. In order to make it type safe you must write this code:
const string ConnectionKey = "key";
ConfigurationManager.ConnectionStrings[ConnectionKey].ConnectionString
the above code is better than the first one. However, using Resources in test applications are better as they are simpler and more user friendly.
Reza Ahmadi
2-Apr-12 13:54pm
View
As I said it is not very common. It depends on your project. If it is a test or internal project, your ConnectionString will not need to be changed repeatedly so you can put it in the Resources. What is more, Resources are Strong Types so you will not get exception in case of a syntax error.
Reza Ahmadi
2-Apr-12 10:32am
View
Deleted
Yes exactly, you need to swap the Key and the value as the result is of KeyValuePair<string,int> which is one of the items in your Dictionary:
object obj = objdic.Where(item => item.Value == 2).First().Value;
Reza Ahmadi
2-Apr-12 10:22am
View
Your Welcome!
Show More