15,905,073 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 Mayank Vashishtha (Top 47 by date)
Mayank Vashishtha
25-Aug-15 4:37am
View
What do you want to do with that? Please provide more information.
Mayank Vashishtha
25-Aug-15 4:17am
View
If it is solved. Please Mark it as Solved.
Mayank Vashishtha
25-Aug-15 4:11am
View
Do you want to debug the application or is it IPC?
Mayank Vashishtha
25-Aug-15 4:10am
View
What does ExecuteNonQuery() returns?
Mayank Vashishtha
20-Aug-15 3:32am
View
Why don't you increase the time interval?
Mayank Vashishtha
20-Aug-15 3:25am
View
Does your button "btn_add" text changes when you press it. Cause as I can see you are using only one button. Check that first whether the control ever reaches else part?
Mayank Vashishtha
20-Aug-15 3:23am
View
What do you mean by "Submit the Form"? Are you talking about full post back. If it is so then why don't you go for jquery ajax post?
Mayank Vashishtha
19-Aug-15 8:00am
View
It is saying so because you are trying to pass a string into an integer. If you had a property of "string" type then it would have made sense. otherwise there is no way it will be validated. Cause validation is secondary, parsing is primary action. If this statement is not even able to parse then how can it be validated? So you change the datatype to string.
Mayank Vashishtha
19-Aug-15 3:18am
View
You need to provide more information. Although it's the first line of your code which is making trouble. Have you checked what type of value is there in ht["UserID"]?
Mayank Vashishtha
19-Aug-15 3:04am
View
Please elaborate more. Not understandable.
Mayank Vashishtha
19-Aug-15 3:00am
View
Totally agree with Sergey. You need to provide more details otherwise.
Mayank Vashishtha
16-Sep-14 5:56am
View
Try to follow this:-
Right click on your web project --> Properties --> Web tab --> Then under server section check the value. Is it pointing to External host or something else?
Mayank Vashishtha
16-Sep-14 5:21am
View
Which IDE are you using?
Mayank Vashishtha
30-Aug-14 7:26am
View
Then why you can't change the config file, if it's so easy?
Mayank Vashishtha
29-Aug-14 3:30am
View
Peter, Can you replace the new dll's on server?
Mayank Vashishtha
27-Aug-14 0:22am
View
Lemme also add. :-) Why?
Mayank Vashishtha
26-Aug-14 23:26pm
View
What do you want exactly? To Stop the running process or to pass a value?
Mayank Vashishtha
26-Aug-14 4:31am
View
Are you trying to say that you want to run defragment in background?
Mayank Vashishtha
20-Aug-14 4:49am
View
It depends on you. Better is to use IDisposable then in Dispose() decrement the value. Also don't forget to suppress finalize method.
Mayank Vashishtha
20-Aug-14 3:54am
View
This may be your project issue then. However this method is absolutely fine now. Try cleaning and rebuilding your solution again.
Mayank Vashishtha
20-Aug-14 3:41am
View
See it's not about webservice. It's about simple programming. void means it will not return anything. It's the return type you are using that's why it is not returning any value.
Mayank Vashishtha
20-Aug-14 3:29am
View
Why would you? Your method is of void type which doesn't return any value. change it and return whatever is necessary.
Mayank Vashishtha
20-Aug-14 3:19am
View
Good. Now you can rate my answer. :-)
Mayank Vashishtha
20-Aug-14 3:15am
View
You means to say that now error is resolved but you lies on the same page. Is that so?
Mayank Vashishtha
20-Aug-14 2:56am
View
Nope!
Mayank Vashishtha
20-Aug-14 2:51am
View
Why don't you use Debugger?
Mayank Vashishtha
20-Aug-14 2:47am
View
Yeah So?? What are you asking?
Mayank Vashishtha
20-Aug-14 2:41am
View
What in the world are you trying to do? It's unclear. Use Improve Question widget and make it more clear to understand.
Mayank Vashishtha
20-Aug-14 2:30am
View
OK. So where are you stuck? Kindly elaborate.
Mayank Vashishtha
19-Aug-14 23:46pm
View
What do you mean by Edit Image? What are you tring to do? Clarify more.
Mayank Vashishtha
19-Aug-14 2:55am
View
How are you binding to the gridview. Is it a datatable?
Mayank Vashishtha
18-Aug-14 23:12pm
View
Agreed! Just trying to give a logical reason of problem. :-)
Mayank Vashishtha
18-Aug-14 6:44am
View
See it is the catch. If you look at the code you posted, you are creating an object of frmLogin, it means a new istance will be created having the value of mid as 0 since it is of int type which get initialilzed by 0 by default. If it is a single user enviroment app then create a static class as Manager with a static member as manangerId which can be accessed by all the forms. when manager logs out you can set it to 0 again.
Mayank Vashishtha
13-Aug-14 1:55am
View
OK! And Then?
Mayank Vashishtha
12-Aug-14 8:26am
View
Why dont you use System.DateTime.UtcNow, It will give you time in UTC, then you can convert it into the time zone of the user.
Mayank Vashishtha
11-Aug-14 8:02am
View
This code must work. I've just checked it. Working fine. Try selecting the complete query from ; to DESC. then try and execute it.
Mayank Vashishtha
11-Aug-14 7:41am
View
not clear Rajeev. Can you send me the query which you are using. lemme have a look onto it.
Mayank Vashishtha
11-Aug-14 7:35am
View
and how are you comparing, is it values in a table or a single value?
Mayank Vashishtha
11-Aug-14 6:41am
View
It happens when your inner queries combined with UNION send different columns. Share your table structure with column names, I'll send you the updated query.
Mayank Vashishtha
11-Aug-14 6:32am
View
part of the query. that is the syntax of cte(common table expression).
If it solves your problem, kindly rate it.
Mayank Vashishtha
11-Aug-14 6:29am
View
you means to say that you are storing all values as comma separated, which are actually primary keys of some other table named as "Location"? Is it so?
Mayank Vashishtha
23-Jul-14 7:25am
View
That's what we have Transactions in SQL Server for. Don't we?
Mayank Vashishtha
23-Jul-14 6:11am
View
check my solution. It will work. In case of confusion ask me.
Mayank Vashishtha
23-Jul-14 6:08am
View
Have you checked my solution?
Mayank Vashishtha
23-Jul-14 5:22am
View
Why you want to use just one statement?
Mayank Vashishtha
23-Jul-14 5:13am
View
Your approach is wrong GoneBump. You cannot create a function inside a trigger which is also a kind of stored procedure in sql server. It is never going to get compiled buddy. I agree with Corporal Agarn of having a function already created. Moreover you can try using dynamic sql query instead.
Mayank Vashishtha
15-Aug-13 14:26pm
View
+5 Phantom. :-)
Show More