15,891,136 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 Sarvesh Kumar Gupta (Top 49 by date)
Sarvesh Kumar Gupta
29-Aug-17 5:01am
View
There is no need to share the code because it is some setting issue.
First enter URL in address bar then it change in below url. I want setting which can have same as above.
Sarvesh Kumar Gupta
16-Jul-14 6:02am
View
It's Wrong
function passVariable() {
strStartDate = document.getElementById("from_date").value;
strEndDate = document.getElementById("to_date").value;
alert(strStartDate);
alert(strEndDate);
//alert(googleURL);
googleURL = 'https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A76546294&dimensions='+'ga%3Asource&metrics=ga%3Ausers&sort=-ga%3Ausers&start-date=' + strStartDate + '&end-date=' + strEndDate + '&max-results=10';
document.write(googleURL);
}
call this function at any event
Sarvesh Kumar Gupta
16-Jul-14 5:01am
View
In javascript, first find control start date and end date. then find value and put in url.
Please give your full JS code
Sarvesh Kumar Gupta
15-Jul-14 8:35am
View
if (Select Count(*) from table) > 0
Begin
if (Select Count(*) from table group by Circleid) > 4
return 1
else
return 0
End
else if
return 0
Sarvesh Kumar Gupta
15-Jul-14 8:03am
View
Please do some pressure on mind and use of it and think over it. Please use google, you have to read sql.
if (Select Count(*) from table) > 0
return 1
else if
return 0
Sarvesh Kumar Gupta
15-Jul-14 7:48am
View
You are doing wrong
write in below way:
if not exist(your condition here)
begin
-- Write your query
End
else if(your condition 2nd)
begin
-- Your query
end
else
begin
--your query
end
Sarvesh Kumar Gupta
15-Jul-14 7:40am
View
what is coming in dt, please debug
Sarvesh Kumar Gupta
15-Jul-14 6:20am
View
txtcategory.Text = dt.Rows[i]["category"].ToString();
Sarvesh Kumar Gupta
15-Jul-14 6:00am
View
oh, mistake
DataTable Dtable = new DataTable();
Dtable = dt.Clone(); // Use this synatx
Sarvesh Kumar Gupta
15-Jul-14 5:45am
View
What error, you are getting
Sarvesh Kumar Gupta
15-Jul-14 5:27am
View
then you write
dr1["category"] = dr["category"].ToString();
dr1["invoice"] = dr["invoice"].ToString();
and so on for each field
Sarvesh Kumar Gupta
15-Jul-14 5:14am
View
Please write your column name here, because I have given only example. If you have some more question you can ask me.
Sarvesh Kumar Gupta
15-Jul-14 5:13am
View
Who have downvoted this, please put some comment before doing.
Sarvesh Kumar Gupta
15-Jul-14 5:12am
View
Who have downvoted this, please put some comment before doing.
Sarvesh Kumar Gupta
15-Jul-14 2:49am
View
use this
https://demos.devexpress.com/ASPxNavigationAndLayoutDemos/Splitter/ClientSideFunctionality.aspx
Sarvesh Kumar Gupta
15-Jul-14 1:46am
View
Then add datareader to View State, and when you have to work on that put in datareader again from ViewState using casting.
Sarvesh Kumar Gupta
10-Jul-14 6:14am
View
why you are using [0] in update and delete
Sarvesh Kumar Gupta
8-Jul-14 8:57am
View
Have you add AutoPostBack=True in aspx page Tag of DDL.
Sarvesh Kumar Gupta
8-Jul-14 8:08am
View
Why you r using Order By, when you r fetching records only for ABC.
Sarvesh Kumar Gupta
8-Jul-14 8:08am
View
Why you r using Order By, when you r fetching records only for ABC.
Sarvesh Kumar Gupta
8-Jul-14 8:07am
View
Why you r using Order By, when you r fetching records only for ABC.
Sarvesh Kumar Gupta
8-Jul-14 4:51am
View
Please give the reason who has downvoted my answer.
Sarvesh Kumar Gupta
3-Jul-14 6:57am
View
Please elaborate your question, what you want? are you required web templates for home page or website designing.
Sarvesh Kumar Gupta
3-Jul-14 6:27am
View
Are you using express edition?
Sarvesh Kumar Gupta
3-Jul-14 1:00am
View
It will be fail when I give Start date like as 21 March and end date like 11 june then also returns 2. This is wrong.
You have to create one UDF in sql for getting exact value. First find days then calculate the months.
Sarvesh Kumar Gupta
30-Jun-14 2:40am
View
Please give detail about your code, which you have written for enable or disable.
Sarvesh Kumar Gupta
26-Jun-14 3:28am
View
You have checked my link, it's working or not. I have used this code and working fine. If you have any confusion or doubt then you can ask me.
Sarvesh Kumar Gupta
15-Mar-12 13:35pm
View
if it solve your problem then vote it.
Sarvesh Kumar Gupta
15-Mar-12 13:32pm
View
it is user defined, you can send 1 for Add, 2 for edit, 3 for delete and so on.
there is @ActivityType parameter is urgent and other parameters are optional.
Sarvesh Kumar Gupta
24-Feb-12 20:56pm
View
ganeshan is right, we use same thing.
Sarvesh Kumar Gupta
24-Feb-12 4:26am
View
Pls describe your problem in detail. More clear
Sarvesh Kumar Gupta
24-Feb-12 1:46am
View
Pls describe your problem, what you want and what is code using
Sarvesh Kumar Gupta
24-Feb-12 1:40am
View
There is no need of Combo1.DataBind(); in desktop applications.
Sarvesh Kumar Gupta
24-Feb-12 1:38am
View
in desktop application, combo not have DataTextField and DataValueField
Sarvesh Kumar Gupta
24-Feb-12 1:37am
View
You ar using windows or web
Sarvesh Kumar Gupta
24-Feb-12 0:17am
View
Please set Response.Write("Step1") at each stage of code. and run this. at which stage, error is coming you will know. then describe what error comes.
Sarvesh Kumar Gupta
24-Feb-12 0:12am
View
not same name, give diffrent group name for each question radio buttons.
Sarvesh Kumar Gupta
23-Feb-12 1:02am
View
Hi,call js function and calling ajax function it return result set to call back function, ajax function is used to be insert data in DB and in return it will give success or not output.
You can also use ajaxpro.dll for this.
Sarvesh Kumar Gupta
23-Feb-12 0:42am
View
OK, Sorry for that, i not checked. very very sorry
Sarvesh Kumar Gupta
22-Feb-12 22:10pm
View
not 0, should be less from getdate()
Sarvesh Kumar Gupta
22-Feb-12 22:09pm
View
When you login into web site on 3rd march then you write count 2 but should be 3. Record 1, 3, 4. i m right?
Sarvesh Kumar Gupta
22-Feb-12 12:53pm
View
There is alphanumeric field so you can't use this.
Sarvesh Kumar Gupta
22-Feb-12 12:51pm
View
hi you also use above process, if any issue then you can tell me.
Sarvesh Kumar Gupta
22-Feb-12 7:26am
View
do group by with Date Created and Order_type both
Sarvesh Kumar Gupta
22-Feb-12 4:22am
View
MY 5
Sarvesh Kumar Gupta
22-Feb-12 2:06am
View
Please describe your problem, what you want to do?
Sarvesh Kumar Gupta
22-Feb-12 0:32am
View
My 5, for your Hard Work and giving useful info.
Sarvesh Kumar Gupta
21-Feb-12 23:51pm
View
Thi link is very good, and all info is in detail. Thanks O.Griff
Sarvesh Kumar Gupta
21-Feb-12 11:50am
View
I wrote below code
for (int i = 0; i < gridView.Columns.Count; i++) //GridView is id of gridview
{
dset.Tables[0].Columns.Add(gridView.Columns[i].HeaderText);
}
in this code place dset.Tables[1].
You get your answer
Show More