15,902,114 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 preetpal kapoor (Top 16 by date)
preetpal kapoor
18-Sep-14 8:35am
View
As far as I know the global.asax file is created for each project but I need to implements a single solution for all the applications. In case of global.asax file I have to create this file in each applications and then I have to re-deploy applications on all the environements.
preetpal kapoor
17-Apr-14 10:17am
View
protected void btnOk_Click(object sender, EventArgs e)
{
string command = @"dbo.app_test";
GridView1.Visible = true;
SqlConnection con1 = connection_build();
SqlCommand cmd = new SqlCommand(command, con1);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@appname",SqlDbType.VarChar).Value=appname_values();
cmd.Parameters.Add("@UserID", SqlDbType.VarChar).Value = userid_values();
SqlDataAdapter da = new SqlDataAdapter(cmd);
con1.Close();
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected string userid_values()
{
string userid = "";
int cnt = ddluserid.GetSelectedIndices().Count();
for (int i = 1; i <= cnt; i++)
{
if (ddluserid.Items[i].Selected)
{
if (i == cnt)
{
userid += ddluserid.Items[i].Text ;
}
else
userid += ddluserid.Items[i].Text + ",";
//if (i == cnt)
//{
// userid += "'" + ddluserid.Items[i].Text + "'";
//}
//else
// userid += "'" + ddluserid.Items[i].Text + "',";
}
}
return userid;
}
protected string appname_values()
{
string appname="";
int cnt = ddlappname.GetSelectedIndices().Count();
for (int i = 1; i <= cnt;i++ )
{
if(ddlappname.Items[i].Selected)
{
if (i == cnt)
{
appname += ddlappname.Items[i].Text ;
}
else
appname += ddlappname.Items[i].Text + ",";
//appname += "'" + ddlappname.Items[i].Text + "'";
//if (i == cnt)
//{
// appname += "'" + ddlappname.Items[i].Text + "'";
//}
//else
// appname += "'" + ddlappname.Items[i].Text + "',";
}
}
return appname;
}
Above is the code given .. Please help me out with the problem
preetpal kapoor
14-Oct-13 2:38am
View
ISNULL is required to track if there is any NULL values and I have converted all the NULL values to 'NULL' (i.e. a string value).. It was the requirement :)
preetpal kapoor
11-Oct-13 10:31am
View
I used coalesce , but the query was giving some error when I ran it in the SSRS report. And I cnt remove IN becz the variables are having list of data into it.
preetpal kapoor
11-Oct-13 10:11am
View
ISNULL function is used on left side in the query ... u mean that I should use it on right side???..
Also I cnt use '=' as there are list of values in variables.
preetpal kapoor
11-Oct-13 9:18am
View
Also the distinct data in the variable(like custname,city,state .. etc. more) is quite large amount (more tahn 10000)..
preetpal kapoor
11-Oct-13 9:16am
View
I have created a NONclustered index..
create index in_report opn report_table (Identificationdate,
Custname,City,state,LOB,prod,Subprod ,contentID,AlertID
) include (
address
,street
,phone
,pincode
,delivered_counts
,undelivered_counts
,SMS
)
This index helped me to shorten the time to 8 min. But need to short it more...
preetpal kapoor
11-Oct-13 7:29am
View
if I simply write select * from report_table; it takes 50 to 60 sec to return the full result set.
preetpal kapoor
11-Oct-13 7:13am
View
What kind of problem can be there in Database ? can you please elaborate.
preetpal kapoor
24-Jul-13 7:06am
View
Even I tried the code which you send me but it didn't work.. and about my attitute it was you who started first with a rude tone. So good luck to you and i dont require your sh!t advice....
preetpal kapoor
24-Jul-13 6:43am
View
Hi Buddy!!!
I know the requirement and that code is doing the same thing which I have already done and shared . If you have something different which can work then reply otherwise shut your mouth.
preetpal kapoor
22-Jul-13 10:29am
View
The code is using mgunzip.exe which I can't use as per the client requirement. Could you please provide any other way to do this as this is not a big problem for me. Thanks in advance.
preetpal kapoor
22-Jul-13 7:26am
View
By Doing Dc.CopyTo(outFile); Only 256 kb of data is getting decompressed. I want the full file to get decomposed.
preetpal kapoor
2-Feb-13 11:51am
View
Hi Pallavi,
Thanks for your reply but i am getting same output by making the changes referred by you.
preetpal kapoor
2-Feb-13 7:07am
View
I tried your way but getting same result.... Dn't knw what to do??
preetpal kapoor
18-Apr-11 9:01am
View
Hi sorry to say but you have not got my question .
I told that when a login then he can see his own phone number in the grid view .
i dont have to use any drop down there
Show More