16,010,523 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 .NET 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 george@84 (Top 17 by date)
george@84
24-Feb-23 6:16am
View
This helped me to implement successfully
george@84
27-Jul-17 2:57am
View
But I am using shared datasource connection which is used in all ssrs reports
george@84
1-Mar-16 1:18am
View
How to do this? If I pass , (comma) as decimal separator and . (dot) as thousand separator as parameters, It should display the number with those decimal separator and thousand separator.
george@84
9-Oct-14 0:41am
View
It is working in IE but not in firefox.
george@84
1-Jul-14 7:25am
View
the following is the code
DataSet DS = new DataSet();
DataSet DSUSERLEVEl = new DataSet();
DataSet DSUSERLEVElOUTLET = new DataSet();
DSUSERLEVEl = objLogin.getPSFLogin(txtUserName.Text.Trim(), txtPassword.Text.Trim());
if (DSUSERLEVEl.Tables.Count > 0)
{
Session["PSFusrCode"] = DSUSERLEVEl.Tables[0].Rows[0]["usrCode"].ToString();
Session.Add("Module", Convert.ToString(Session["Module"]));
Session["PSFUserType"] = DSUSERLEVEl.Tables[0].Rows[0]["ulName"].ToString();
Session["PSFUName"] = DSUSERLEVEl.Tables[0].Rows[0]["usrName"].ToString();
Session["PSFOutlet"] = DSUSERLEVEl.Tables[0].Rows[0]["usrOutlet"].ToString();
Response.Redirect("PSFDashBoard.aspx");
}
public DataSet getPSFLogin(string username, string password)
{
return objUserlevel.getPSFLogin(username, password);
}
public DataSet getPSFLogin(string usr, string pwd)
{
List param = new List();
param.Add(new SqlParameter("@USERNAME", usr));
param.Add(new SqlParameter("@PASSWORD", pwd));
return DBFUNCTIONS.FILL_DATASET_FROM_SP("USP_INS_GET_PSF_LOGIN", param);
}
george@84
1-Jul-14 7:22am
View
DataSet DS = new DataSet();
DataSet DSUSERLEVEl = new DataSet();
DataSet DSUSERLEVElOUTLET = new DataSet();
DSUSERLEVEl = objLogin.getPSFLogin(txtUserName.Text.Trim(), txtPassword.Text.Trim());
if (DSUSERLEVEl.Tables.Count > 0)
{
Session["PSFusrCode"] = DSUSERLEVEl.Tables[0].Rows[0]["usrCode"].ToString();
Session.Add("Module", Convert.ToString(Session["Module"]));
Session["PSFUserType"] = DSUSERLEVEl.Tables[0].Rows[0]["ulName"].ToString();
Session["PSFUName"] = DSUSERLEVEl.Tables[0].Rows[0]["usrName"].ToString();
Session["PSFOutlet"] = DSUSERLEVEl.Tables[0].Rows[0]["usrOutlet"].ToString();
Response.Redirect("PSFDashBoard.aspx");
}
public DataSet getPSFLogin(string username, string password)
{
return objUserlevel.getPSFLogin(username, password);
}
public DataSet getPSFLogin(string usr, string pwd)
{
List<sqlparameter> param = new List<sqlparameter>();
param.Add(new SqlParameter("@USERNAME", usr));
param.Add(new SqlParameter("@PASSWORD", pwd));
return DBFUNCTIONS.FILL_DATASET_FROM_SP("USP_INS_GET_PSF_LOGIN", param);
}
george@84
26-Jun-14 13:07pm
View
dear sarvesh kumar gupta,
I haven't used output caching in aspx page
george@84
26-Jun-14 8:32am
View
Dear Friends,
I assigned values to session when login to a page like the following.
Session["PSFusrCode"] = DSUSERLEVEl.Tables[0].Rows[0]["usrCode"].ToString();
Session.Add("Module", Convert.ToString(Session["Module"]));
Session["PSFUserType"] = DSUSERLEVEl.Tables[0].Rows[0]["ulName"].ToString();
Session["PSFUName"] = DSUSERLEVEl.Tables[0].Rows[0]["usrName"].ToString();
Session["PSFOutlet"] = DSUSERLEVEl.Tables[0].Rows[0]["usrOutlet"].ToString();
george@84
18-Feb-14 0:07am
View
Hi astika, I want to set left and top position of formula field dynamically from C# program.
george@84
5-Feb-14 1:33am
View
I havent add any Script to handle backbutton
george@84
31-Jan-14 8:44am
View
Hi Richard, I found that Google chrome and IE 10 supports excel file opening in a proper way.But Mozilla is not supporting it.
george@84
31-Jan-14 5:36am
View
I have downloaded the exported excel file. exported excel sheet is of the type file but it is not the required .xls extension. when double click on the file,it is asking "how do you want to open this file?" .if we select excel ,it is showing a question "The file you are opening is in different format than specified by the file extension.Verify that the file is corrupted and is from a trusted source before opening the file.Do you want to open the file now? " when click on yes, the data in the excel sheet are displaying.
My program is written below
private void ExportDataSetToExcel()
{
try
{
DataTable DT = new DataTable();
FillGrid(hidType.Get("Type").ToString());
if (hidType.Get("Type").ToString() == "2")
{
DT.Columns.Add("
Account Sub Group
");
}
else if (hidType.Get("Type").ToString() == "3")
{
DT.Columns.Add("
Account Group
");
}
DT.Columns.Add("
Account Head
");
DT.Columns.Add("
Debit
");
DT.Columns.Add("
Credit
");
for (int j = 0; j < grdTrialBal.VisibleRowCount; j++)
{
DataRow DR;
DR = DT.NewRow();
if (hidType.Get("Type").ToString() == "2")
{
if ((grdTrialBal.GetRowValues(j, "DispOrder").ToString()) == "0")
{
DR["
Account Sub Group
"] = grdTrialBal.GetRowValues(j, "Sub Group");
}
else
{
DR["
Account Sub Group
"] = "
" +grdTrialBal.GetRowValues(j, "Sub Group")+ "
";
}
}
else if (hidType.Get("Type").ToString() == "3")
{
if ((grdTrialBal.GetRowValues(j, "DispOrder").ToString()) == "0")
{
DR["
Account Group
"] = grdTrialBal.GetRowValues(j, "Sub Group");
}
else
{
DR["
Account Group
"] = "
" + grdTrialBal.GetRowValues(j, "Sub Group") + "
";
}
}
if ((grdTrialBal.GetRowValues(j, "DispOrder").ToString()) == "0")
{
DR["
Account Head
"] = grdTrialBal.GetRowValues(j, "Acc Head");
}
else
{
DR["
Account Head
"] = "
" + grdTrialBal.GetRowValues(j, "Acc Head")+ "
";
}
if (grdTrialBal.GetRowValues(j, "trnAhdDrAmt") != System.DBNull.Value)
{
if ((grdTrialBal.GetRowValues(j, "trnAhdDrAmt").ToString()) != "")
{
Decimal DrAmt =Convert.ToDecimal(grdTrialBal.GetRowValues(j, "trnAhdDrAmt"));
if (DrAmt != 0)
{
if ((grdTrialBal.GetRowValues(j, "DispOrder").ToString()) == "0")
{
DR["
Debit
"] = DrAmt;
}
else
{
DR["
Debit
"] = "
" + DrAmt + "
";
}
}
else
{
DR["
Debit
"] = "";
george@84
31-Jan-14 5:02am
View
Hi Richard. Excel is installed in the system.
george@84
30-Jan-14 9:55am
View
Hi Karthik, I did export to excel 2003 and applyung sum formula using NPOI dll.
Is it possible to display a number with thousand separator and decimal separator in Indian style( 12, 12,34,567.89)in the exported excel
george@84
26-Jan-14 7:50am
View
Karthik, whether we want to save the temp file in server.will it degrade performance?I want export to excel feature in all reports.pls advise me
george@84
24-Jan-14 13:53pm
View
Karthik, Is it posible to export gridview data to excel 2003 (.xls file) .Also the cells should be aligned right and fomulas(sum()) must work.
george@84
17-Jan-14 22:58pm
View
you are right ,Karthik. that is the requirement.Formula should be applied through web application,not desktop application
Show More