15,904,652 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 Alipour Fard (Top 74 by date)
Reza Alipour Fard
6-Aug-15 4:10am
View
do you think set right-to-left in excel export of report in crystal report in not possible?
Reza Alipour Fard
6-Aug-15 3:12am
View
I can make preview of the report to Right-to-Left, I want to make export excel of that report to Right-to-left.
Please see question again, i updated it.
Reza Alipour Fard
6-Aug-15 2:56am
View
I know how I must ask a question. I don't need to read your suggested links.
Reza Alipour Fard
2-Jun-14 10:17am
View
Please check Xp_Cmdshell status in your SQL Server.
Reza Alipour Fard
19-Apr-14 3:38am
View
I get bellow error:
"3:92Uncaught TypeError: Cannot call method 'ajax' of undefined "
Reza Alipour Fard
19-Apr-14 3:17am
View
I checked it, It didn't work correctly.
Reza Alipour Fard
19-Apr-14 3:16am
View
It doesn't work correctly. I have an error.
Please tell me full information about this problem.
Reza Alipour Fard
18-Apr-14 12:39pm
View
OK, I will check it and tell you tomorrow.
Reza Alipour Fard
18-Apr-14 11:42am
View
public JsonResult Like(long id)
{
Entities entity = new Entities();
Note note = entity.Notes.SingleOrDefault(a => a.ID == id);
string user = Request.UserHostAddress;
bool exist = false;
foreach (NoteUserAddress item in entity.NoteUserAddresses.Where(a => a.NoteID == id))
if (item.UserAddress == user)
exist = true;
if (exist == false)
{
note.LikeCount++;
entity.SaveChanges();
}
return Json(new { LikeCount = note.LikeCount });
}
Reza Alipour Fard
18-Apr-14 11:38am
View
My html syntax:
<input type="button" class="Note-Like-Image" önclick="like(@item.ID)"/>
Reza Alipour Fard
18-Apr-14 11:37am
View
<script type="application/javascript">
function like(id) {
$.ajax({
url: "/Note/Like",
type: 'Get',
dataType: "json",
cache: false,
data: { commentId: id},
success: function (data) {
alert(data.LikeCount)
},
error: function () {
alert("error");
}
});
};
</script>
Reza Alipour Fard
18-Apr-14 11:36am
View
I get bellow error:
"3:92Uncaught TypeError: Cannot call method 'ajax' of undefined "
Reza Alipour Fard
18-Apr-14 11:34am
View
How are your Sampath. sorry first time I couldn't remember you.
You are one of my friends in Linked In.
I tried to use this format of ajax request many times today, but I get bellow error all the time:
"3:92Uncaught TypeError: Cannot call method 'ajax' of undefined ", pLEASE HELP ME.
Reza Alipour Fard
18-Apr-14 11:22am
View
Thank you for your attention.
Your java script has some syntax error.
Please check it.
Thanks a lot.
Reza Alipour Fard
18-Apr-14 11:12am
View
I want to only a number. I think using partial view for this problem isn't good solution.
I want send an ajax request to controller and get result and use that in view.
Reza Alipour Fard
21-Feb-14 14:13pm
View
Please see my solution, I used from bellow query. for example:
DECLARE @cmd VARCHAR(255)
SET @cmd = 'bcp "Select * From TestTable" queryout "C:\TestFile.xlsx" -U sa -P 123 -c'
Exec xp_cmdshell @cmd
Reza Alipour Fard
19-Nov-13 9:59am
View
Thanks, I tried but it doesn't work correctly.
Can you give a sample of how you can use it?
Reza Alipour Fard
4-Aug-13 0:53am
View
Is your field in database null able?
What is your error or message or result?
Reza Alipour Fard
30-Jul-13 14:02pm
View
good luck. I was surprised when I saw your comment.
Reza Alipour Fard
30-Jul-13 2:24am
View
I am sorry for you. Do you sure you are a developer? The first of all you should test my algorithms after than give a comment.
If you enter 1764 as input number result is 42.
If you enter 100 as input number result is 10.
If you enter 4900 as input number result is 70.
If you enter 2500 as input number result is 50.
Now, You say my algorithm return a prime number or number of square root???
I check a i is prime number because square root number is consist of a series of prime number.
MY ALGORITHMS IS FINE SQUARE ROOT NUMBER NO PRIME NUMBER.
Are you understood??
Reza Alipour Fard
23-Jul-13 13:40pm
View
For solving this problem you should set AutoPostBack="true" in your checkbox.
But this is not related to Java Script!!!
Reza Alipour Fard
22-Jul-13 1:17am
View
If you want use from Javascript for this, your solution has not any improvement in loading your page. Because all of your data must be loaded after that your javascript can show your data by paging. Therefore I suggest to you if you want improve load page threfore don't use from JS.
Reza Alipour Fard
17-Jul-13 7:00am
View
Reason for my vote of 1 \n It's not article.
Reza Alipour Fard
16-Jul-13 5:56am
View
I can't understand your value in your table. I think it's better you show some row data as sample data.
Reza Alipour Fard
16-Jul-13 2:03am
View
I vote 5 out of 5. Your solution is very short and correct. Thanks
Reza Alipour Fard
16-Jul-13 1:38am
View
you data is in one column or two columns?
1900 t8 is a column or
1900 is a column and t8 is a column?
Reza Alipour Fard
15-Jul-13 23:13pm
View
I update my answer. I add a best way for do this action. Please check my answer.
Reza Alipour Fard
15-Jul-13 15:16pm
View
You must show your database structure for that 2 tables. I think you need only a group by and count vote. Please present your tables structure.
Reza Alipour Fard
15-Jul-13 13:43pm
View
Welcome, I wish you will be success in your life.
Reza Alipour Fard
14-Jul-13 14:42pm
View
Do you must save data in database as sorted data?
For Example if you have bellow records in DB
ID Name Date
-----------------------------
1 Test1 2012-01-01
2 Test2 2013-01-01
And now you want add a recod in 2012-06-30, you table value must be:
ID Name Date
-----------------------------
1 Test1 2012-01-01
2 NewTest 2012-06-30
3 Test2 2013-01-01
Your hint is it?
Reza Alipour Fard
14-Jul-13 14:20pm
View
Please present you code for define ConnectionString.
You run this app on different computer from Visual Studio Computer?
Reza Alipour Fard
14-Jul-13 14:16pm
View
Whats your problem?
Reza Alipour Fard
14-Jul-13 14:09pm
View
Hi, I can help you but you must start to write this program and if you have any error you can tell me and I will help you.
If you want I write hole of your program, I tell you sorry.
Reza Alipour Fard
14-Jul-13 14:06pm
View
Welcome, I hope you will be success in your life. Best Regards
Reza Alipour Fard
14-Jul-13 5:53am
View
You are right
Reza Alipour Fard
14-Jul-13 4:52am
View
Welcome, I hope you will be success in your life. Best Regrads
Reza Alipour Fard
14-Jul-13 4:36am
View
You must use '(' before select and ')' in enf of select.
Please attention bellow query:
UPDATE TempTable
WHERE ColumnID = (Select Top 1 ColumnID
From TempTable
Where Column1='1' AND Column2='2')
SET Column3 = '1'
Reza Alipour Fard
14-Jul-13 4:26am
View
Use Solution 1
Reza Alipour Fard
14-Jul-13 3:54am
View
See solution 2.
Reza Alipour Fard
14-Jul-13 3:53am
View
Please wait a minute....
What is your SQL server version??? tell me your version until I give solution compatible with your version.
DATEFROMPARTS is a function in SQL server 2012.
Rate 1 out of 5!!! :-(
Reza Alipour Fard
14-Jul-13 3:36am
View
I have a suggestion for you: Add unique identify column as ID to all tables. This help you to easily write query for your purpose. If my answer it's OK for you please give rate 5 (out of 5) to my answer. Best regards
Reza Alipour Fard
8-Jul-13 9:52am
View
I download and install 2007 Office System Driver: Data Connectivity Components and Microsoft Access Database Engine 2010 Redistributable (32Bit). But I have bellow Error:
Msg 7438, Level 16, State 1, Line 2
The 32-bit OLE DB provider "Microsoft.Jet.OLEDB.4.0" cannot be loaded in-process on a 64-bit SQL Server.
My Computer OS: 64 Bit
My SQL:64 Bit
My Office: 32 Bit
Reza Alipour Fard
8-Jul-13 7:00am
View
Last problem has been solved.
But I have a new error.
Msg 7438, Level 16, State 1, Line 1
The 32-bit OLE DB provider "Microsoft.ACE.OLEDB.12.0" cannot be loaded in-process on a 64-bit SQL Server.
My SQL Server is 64-bit.
Reza Alipour Fard
8-Jul-13 6:33am
View
I have erro:
Msg 7302, Level 16, State 1, Line 1
Cannot create an instance of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".
Reza Alipour Fard
8-Jul-13 6:06am
View
Please attend to my problem after that give me a clear sample.
Reza Alipour Fard
8-Jul-13 6:05am
View
I use from all of the introduced ways, but all of them is not work correctly.
Reza Alipour Fard
4-May-13 23:59pm
View
I edit it. Thanks a lot.
Reza Alipour Fard
4-May-13 23:25pm
View
Your code is OK, But have a little problem: In first load page will show all news and after 3 second your code will work correctly.
Reza Alipour Fard
3-May-13 12:21pm
View
news was fetched from DB therefore I can fetched that in Java script. If you can do this please give me more information how I can use from a variable in java script that was fetched from data base?
Reza Alipour Fard
3-May-13 8:29am
View
I remove 2 news of 3 news therefore exist one news and page will be show that news.
I want change this news after some second without user action.
Reza Alipour Fard
3-May-13 1:43am
View
My complete question has in:
http://www.codeproject.com/Questions/586961/Showplusonlyplusoneplustext-news-plusatplussameplu
Reza Alipour Fard
3-May-13 1:42am
View
I have some text as news. I want show only one of them at the time.
Therefore I must show one of them to user and after some second without do any action by user My page must change that news by others.
Please help my for doing this action.
Reza Alipour Fard
12-Apr-13 6:09am
View
If your table name has in your DB, you must be create your script in your application and execute it.
for doing this action you must be replace your table name instead of YourTableName after that execute Try and Catch parts.
Reza Alipour Fard
22-Feb-13 6:38am
View
If you have code, please put it here. Your question is not complete, it has ambiguity.
Reza Alipour Fard
18-Feb-13 14:11pm
View
I have a web service, that every one can call it and send data by this web service. I generate a username and password for some people that have permission to call this WS and send data to me.
Therefore I need get this user and pass when every one want request WS(Create session) I can detect it.
Reza Alipour Fard
18-Feb-13 5:13am
View
Thank you for your attention,
I read that link but it doesn't work correctly.
I don't know where I can use from your code!!!
Please present more information.
Reza Alipour Fard
18-Feb-13 4:42am
View
Welcome,
If my answer it's Ok for you please select my answer as "Accept Solution" and "Vote 5".
Best Regards
Reza Alipour Fard
16-Feb-13 0:13am
View
Hi, Your question has ambiguity. what mean of CDatabase, CString, ...
Please complete information of your question.
Reza Alipour Fard
27-Jan-13 3:22am
View
thank you
Reza Alipour Fard
27-Jan-13 3:21am
View
thank you for attention
Reza Alipour Fard
27-Jan-13 3:21am
View
I need to a method for getting data from specific web service. in some rows some columns may be null.
Reza Alipour Fard
20-Jan-13 6:54am
View
Please attention to question comments!!!
I know it, My problem is complex than your solution.
Reza Alipour Fard
20-Jan-13 6:52am
View
Thank your consideration,
I know my task when finished.
I call 3 methods in form constructor for do tasks, therefore i know when tasks was finished.
But i can't use Close in constructor because in this situation after finish task immediately form will be closed. and if i use from thread.sleep before close in constructor therefore form doesn't display while finished sleep time.
I want display form immediately after finished that form close after 10 second.
Reza Alipour Fard
20-Jan-13 5:23am
View
Thanks A lot, Where is I can call Close method?
I don't want to call this method in constructor of form.
Reza Alipour Fard
20-Jan-13 4:31am
View
Thank you for your attention, But my problem is:
<pre>
static class Program
{
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
MainForm mainForm = new MainForm();
Application.Run(mainForm);
mainForm.Close();
}
}
</pre>
I need exit from mainform after finish task.
this app execute every hours and system admin must see this result, But some times may be admin doesn't exist front of server. therefore i need close app automatically.
Reza Alipour Fard
11-Jan-13 3:21am
View
Do you need to check structure of entered text as e-mail address?
Or you need validate the entered text as e-mail address?
Please give more information.
Reza Alipour Fard
11-Jan-13 3:19am
View
your question has ambiguity.
you need update copies column? or delete some rows?
Do you need to group by table by MasterAccessionNo?
Please give more information.
Reza Alipour Fard
5-Jan-13 15:53pm
View
Thank you for attention
Reza Alipour Fard
5-Jan-13 15:30pm
View
I think you is popular. Therefore I present a class for management connecting to sql and get data.
Reza Alipour Fard
5-Jan-13 15:07pm
View
You're welcome. It is my pleasure. Best Wish for you.
Reza Alipour Fard
4-Jan-13 4:39am
View
You must check text in your text box before convert it to int.
If structure of entering text is not valid for convert to int you can clear this text and focus on this before exit from this text box.
You have not any problem in this code, Your problem is related to text structure.
Reza Alipour Fard
3-Jan-13 17:00pm
View
I test your code.
It's correct and perfect.
Reza Alipour Fard
3-Jan-13 13:34pm
View
I present a solution and for more detail I said if need to more help clarification.
Why you get Down voted???
I think you have wrong in this action.
However, Thank you for your attention.
Reza Alipour Fard
1-Jan-13 16:26pm
View
your opinion is correct, I know it.
But I think this question has ambiguity,
for example:
1- only one time setup by one user in one computer
2- only one time setup by every user in one computer
3- only one time setup by one user in every computer
4- only one time setup by every user in every computer
for each state I have best suggest but I don't know which state is goal of this question.
Show More