15,890,825 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 Supriya Srivastav (Top 75 by date)
Supriya Srivastav
31-May-12 3:27am
View
Unable to get the filename in Gridview1_RowUpdating event.
Supriya Srivastav
29-Feb-12 6:01am
View
Question is not clear.
Supriya Srivastav
10-Feb-12 4:24am
View
Ohe Ya!This brilliance came from your brilliant answer.
Supriya Srivastav
10-Feb-12 3:51am
View
Thank you so much....Espen Harlinn
a 5,from me 2.
Supriya Srivastav
4-Feb-12 0:34am
View
What are you using for modal dialog,Modalpopupextender or something else?
Supriya Srivastav
30-Jan-12 8:03am
View
Right! My +5
Supriya Srivastav
30-Jan-12 0:40am
View
Thanks thatraja.....
Ya, I know about that but never participated yet.
Supriya Srivastav
28-Jan-12 6:04am
View
My 5 too.
Supriya Srivastav
28-Jan-12 6:01am
View
My 5 too.
Supriya Srivastav
27-Jan-12 5:28am
View
Why do you fetch data from database on each pager link click,you fetch data only once and store that in session and on PageIndexChanging event rebind it,what's the issue in that.
Supriya Srivastav
27-Jan-12 3:22am
View
@Member 8459400 Then you can access the data from datatable.
Supriya Srivastav
27-Jan-12 2:41am
View
My +5 too.
Supriya Srivastav
27-Jan-12 1:52am
View
Ya,SA that can be a issue.
Supriya Srivastav
27-Jan-12 0:38am
View
@Espen Harlinn
Thanks.
Supriya Srivastav
25-Jan-12 5:45am
View
No,if the same credentials are used to login,previous loging session should be out,for this you can store some instance id for a user and on relogin increment it.
Supriya Srivastav
25-Jan-12 3:08am
View
My +5.
Supriya Srivastav
25-Jan-12 3:06am
View
Do you want to put string.empty in place of 0(integer datatype) or something else.
Supriya Srivastav
25-Jan-12 2:54am
View
@SAKryukov Thank You.
Supriya Srivastav
25-Jan-12 2:49am
View
@ambarishtv Thanks.
Supriya Srivastav
23-Jan-12 3:25am
View
Are paging links invisible....
Supriya Srivastav
23-Jan-12 3:24am
View
@Tech Code Freak Thanks.......
Supriya Srivastav
23-Jan-12 1:38am
View
Where will you enter values,Are you using Itemtemplates for that
Explain more about your problem.
Supriya Srivastav
23-Jan-12 1:23am
View
No,when passing source of your gridview,it just binds gridview having whatever columns.
Supriya Srivastav
12-Jan-12 3:42am
View
What's the problem?
Supriya Srivastav
11-Jan-12 8:00am
View
Your question is not clear.
Supriya Srivastav
11-Jan-12 7:55am
View
Try this,
<asp:Label ID="lblSNo" runat="server"
Text='<%# (Container.DataItemIndex+1)+Convert.ToInt16(Eval("fld")) %>'>
Where fld is the field in which pass no. of rows.
Supriya Srivastav
11-Jan-12 7:46am
View
k,then pass that required no as a field and modify the code to add that field in place of 1(As it is now).
Supriya Srivastav
11-Jan-12 2:41am
View
What's your requirement,brief us with more explanation.
Supriya Srivastav
11-Jan-12 1:55am
View
@lakshmichawala Welcome dear...
Mark it as answered if your problem is solved.
Supriya Srivastav
11-Jan-12 1:42am
View
Explain more about your exact problem.
Supriya Srivastav
10-Jan-12 8:02am
View
What's your exact problem?
Supriya Srivastav
10-Jan-12 2:12am
View
I have to use js for binding dropdown not server side code.
Supriya Srivastav
10-Jan-12 1:40am
View
I have to get the selected item text and value on server side code.
Supriya Srivastav
10-Jan-12 1:19am
View
I am calling a js funtion which add some items in dropdownlist on "onchange" event of dropdowlist,but these items are not accessible from server side code means it shows ddl.items.count=0.
Supriya Srivastav
9-Jan-12 5:11am
View
Absolutely right,my 5 too.
Supriya Srivastav
7-Jan-12 3:22am
View
What do you want exactly?Explain more...
Supriya Srivastav
7-Jan-12 0:54am
View
Thanks Rajesh...
Supriya Srivastav
6-Jan-12 7:18am
View
Welcome...
Supriya Srivastav
6-Jan-12 6:48am
View
Thanks
Supriya Srivastav
6-Jan-12 6:22am
View
What you want exactly on click of hyperlink,whether to open new page passed with query string.
Supriya Srivastav
6-Jan-12 6:18am
View
Thnx,I don't know where I was wrong,but finally got out of it.
Supriya Srivastav
6-Jan-12 1:08am
View
What do you mean by current rowindex,whether it's selected or any other event occured on which basis you want to get index.
Supriya Srivastav
6-Jan-12 0:23am
View
Elaborate your problem,what you want to do exactly?
Supriya Srivastav
4-Jan-12 5:56am
View
Is there any criteria for seperating datatables,I mean on which basis you want to divide your datatable
Supriya Srivastav
3-Jan-12 7:42am
View
use it,
string cur_Date = DateTime.Now.ToString("MMMM") + "-" + DateTime.Now.ToString("yyyy");
string[] monthNames = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
for (int cnt = 2006; cnt <= 2020; cnt++)
{
for (int mth = 0; mth <= 11; mth++)
{
string item = monthNames[mth] + "-" + cnt.ToString();
ddl_Years.Items.Add(new ListItem(item, item));
}
}
ddl_Years.Items.Insert(0, new ListItem("--Please Select--", "0"));
ddl_Years.SelectedValue = cur_Date;
Supriya Srivastav
3-Jan-12 7:28am
View
Welcome dear,and if it is solved then mark it as solved.......
and for updation,deletion in gridview, just post a new ques. regarding that.
Supriya Srivastav
3-Jan-12 5:16am
View
what do you mean here by "current month-year"
do you want to restrict values not more than current month and year?
Explain?
Supriya Srivastav
3-Jan-12 1:47am
View
If it solved your problem,then mark it as solved.
Thanks.
Supriya Srivastav
3-Jan-12 1:09am
View
absolute value can be calculate by,
decimal val = Math.Abs(Convert.ToDecimal(TextBox1.Text));
Supriya Srivastav
2-Jan-12 6:32am
View
import "System.Web.UI.HtmlControls"
Supriya Srivastav
31-Dec-11 5:05am
View
import namespace "using System.Web.UI.HtmlControls" if not imported yet.
Supriya Srivastav
31-Dec-11 5:03am
View
plz. check the updated code.
Supriya Srivastav
31-Dec-11 2:03am
View
Welcome....
Supriya Srivastav
30-Dec-11 0:49am
View
k,for that you can maintain session and put your datatable in that session variable.
Supriya Srivastav
29-Dec-11 2:14am
View
if it's mandatory to do so on enter key press event,then you just add a single row in gridview and the textbox in which date is entered,just add another row on textchanged event of that textbox.
Supriya Srivastav
29-Dec-11 2:01am
View
How many rows you want in gridview.
Supriya Srivastav
27-Dec-11 7:37am
View
Welcome Dear....
Supriya Srivastav
27-Dec-11 7:02am
View
what's dt here?
Supriya Srivastav
12-Dec-11 8:06am
View
Thnx for ur sol,I tried it but still prob is as it is.
Because my purpose is to print report in half page means two pages of report will be printed in one A4 size page.
Report is running well from code but when try to run from localhost after publishing on IIS default page is changed to full A4 size page.
Supriya Srivastav
12-Dec-11 5:51am
View
k,I try this....
Supriya Srivastav
12-Dec-11 5:45am
View
I checked it from the same and other system too.......
Supriya Srivastav
22-Nov-11 6:22am
View
ohe Sorry,I had to upgrade from 7 to 7.5!!!
Thnx for your solution.
Supriya Srivastav
5-Nov-11 9:49am
View
Page is printed sometimes with chart and sometimes without chart.
Supriya Srivastav
5-Nov-11 9:40am
View
Thnx alot for ur solution,it's working but not in Google Chrome.
Supriya Srivastav
5-Nov-11 8:48am
View
Chart type is Column(3-D)
Supriya Srivastav
11-Aug-11 6:51am
View
Thnx a lot,it solved my proble........
Really I was in great problem due to this,
Thnx..............
Supriya Srivastav
11-Aug-11 2:43am
View
Ya i did that,no exceptions are thrown
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CrystalDecisions.Shared;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.CrystalReports;
public partial class Employee_Reports_Forms_frmPrnt_attendance_Summary : System.Web.UI.Page
{
Common cmnsql = new Common();
ReportDocument RptDoc;
DataDefinition df;
protected void Page_Load(object sender, EventArgs e)
{
}
private void LoadReport()
{
try
{
string Rprt_Name = "~\\FAS_Reports\\" + hid_RprtName.Value;
DataTable dtattend = (DataTable)Session["dtattend"];
RptDoc = new ReportDocument();
RptDoc.Load(Server.MapPath(Rprt_Name));
RptDoc.SetDataSource(dtattend);
df = RptDoc.DataDefinition;
RptDoc.Load(Server.MapPath(Rprt_Name));
CrystalReportViewer1.ReportSource = RptDoc;
CrystalReportViewer1.ID = "DownloadedReport";
Session["RptDoc"]= RptDoc;
}
catch (Exception ex)
{
cmnsql.MsgBox1(ex.Message, this);
}
}
private void Page_Init(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
Session["RptDoc"] = null;
RptDoc = null;
if (Request.QueryString["Title"] != null)
{
hid_RprtTitle.Value = Convert.ToString(Request.QueryString["Title"]);
}
hid_unm.Value = Convert.ToString(Session["UName"]);
hid_RprtName.Value = Convert.ToString(Session["Report_Name"]);
hid_CompCode.Value = Convert.ToString(Session["Comp_Code"]);
hid_MonYr.Value = Convert.ToString(Session["MonYr"]);
if (Session["Val"] != null)
{
hid_Val.Value = Convert.ToString(Session["Val"]);
}
else
{
hid_Val.Value = "";
}
LoadReport();
}
if (Session["RptDoc"] != null)
{
CrystalReportViewer1.ReportSource = (ReportDocument)Session["RptDoc"];
CrystalReportViewer1.DataBind();
}
}
catch (Exception ex)
{
cmnsql.MsgBox1(ex.Message, this);
}
}
}
Supriya Srivastav
11-Aug-11 2:31am
View
Ya I did that,but no effect in behave
now code is like:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CrystalDecisions.Shared;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.CrystalReports;
public partial class Employee_Reports_Forms_frmPrnt_attendance_Summary : System.Web.UI.Page
{
Common cmnsql = new Common();
ReportDocument RptDoc;
DataDefinition df;
protected void Page_Load(object sender, EventArgs e)
{
}
private void LoadReport()
{
try
{
string Rprt_Name = "~\\FAS_Reports\\" + hid_RprtName.Value;
DataTable dtattend = (DataTable)Session["dtattend"];
RptDoc = new ReportDocument();
RptDoc.Load(Server.MapPath(Rprt_Name));
RptDoc.SetDataSource(dtattend);
df = RptDoc.DataDefinition;
RptDoc.Load(Server.MapPath(Rprt_Name));
CrystalReportViewer1.ReportSource = RptDoc;
CrystalReportViewer1.ID = "DownloadedReport";
Session["RptDoc"]= RptDoc;
}
catch (Exception)
{
return;
}
}
private void Page_Init(object sender, EventArgs e)
{
if (!IsPostBack)
{
Session["RptDoc"] = null;
RptDoc = null;
if (Request.QueryString["Title"] != null)
{
hid_RprtTitle.Value = Convert.ToString(Request.QueryString["Title"]);
}
hid_unm.Value = Convert.ToString(Session["UName"]);
hid_RprtName.Value = Convert.ToString(Session["Report_Name"]);
hid_CompCode.Value = Convert.ToString(Session["Comp_Code"]);
hid_MonYr.Value = Convert.ToString(Session["MonYr"]);
if (Session["Val"] != null)
{
hid_Val.Value = Convert.ToString(Session["Val"]);
}
else
{
hid_Val.Value = "";
}
LoadReport();
}
if (Session["RptDoc"] != null)
{
CrystalReportViewer1.ReportSource = (ReportDocument)Session["RptDoc"];
CrystalReportViewer1.DataBind();
}
}
}
Supriya Srivastav
11-Aug-11 2:16am
View
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CrystalDecisions.Shared;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.CrystalReports;
public partial class Employee_Reports_Forms_frmPrnt_attendance_Summary : System.Web.UI.Page
{
Common cmnsql = new Common();
ReportDocument RptDoc;
DataDefinition df;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Session["RptDoc"] = null;
RptDoc = null;
if (Request.QueryString["Title"] != null)
{
hid_RprtTitle.Value = Convert.ToString(Request.QueryString["Title"]);
}
hid_unm.Value = Convert.ToString(Session["UName"]);
hid_RprtName.Value = Convert.ToString(Session["Report_Name"]);
hid_CompCode.Value = Convert.ToString(Session["Comp_Code"]);
hid_MonYr.Value = Convert.ToString(Session["MonYr"]);
if (Session["Val"] != null)
{
hid_Val.Value = Convert.ToString(Session["Val"]);
}
else
{
hid_Val.Value = "";
}
LoadReport();
}
}
private void LoadReport()
{
try
{
string Rprt_Name = "~\\FAS_Reports\\" + hid_RprtName.Value;
DataTable dtattend = (DataTable)Session["dtattend"];
RptDoc = new ReportDocument();
RptDoc.Load(Server.MapPath(Rprt_Name));
RptDoc.SetDataSource(dtattend);
df = RptDoc.DataDefinition;
RptDoc.Load(Server.MapPath(Rprt_Name));
CrystalReportViewer1.ReportSource = RptDoc;
CrystalReportViewer1.ID = "DownloadedReport";
Session["RptDoc"]= RptDoc;
}
catch (Exception)
{
return;
}
}
private void Page_Init(object sender, EventArgs e)
{
if (Session["RptDoc"] != null)
{
CrystalReportViewer1.ReportSource = (ReportDocument)Session["RptDoc"];
CrystalReportViewer1.DataBind();
}
}
}
Supriya Srivastav
11-Aug-11 2:07am
View
Deleted
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CrystalDecisions.Shared;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.CrystalReports;
public partial class Employee_Reports_Forms_frmPrnt_attendance_Summary : System.Web.UI.Page
{
Common cmnsql = new Common();
ReportDocument RptDoc;
DataDefinition df;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Session["RptDoc"] = null;
RptDoc = null;
if (Request.QueryString["Title"] != null)
{
hid_RprtTitle.Value = Convert.ToString(Request.QueryString["Title"]);
}
hid_unm.Value = Convert.ToString(Session["UName"]);
hid_RprtName.Value = Convert.ToString(Session["Report_Name"]);
hid_CompCode.Value = Convert.ToString(Session["Comp_Code"]);
hid_MonYr.Value = Convert.ToString(Session["MonYr"]);
if (Session["Val"] != null)
{
hid_Val.Value = Convert.ToString(Session["Val"]);
}
else
{
hid_Val.Value = "";
}
LoadReport();
}
}
private void LoadReport()
{
try
{
string Rprt_Name = "~\\FAS_Reports\\" + hid_RprtName.Value;
DataTable dtattend = (DataTable)Session["dtattend"];
RptDoc = new ReportDocument();
RptDoc.Load(Server.MapPath(Rprt_Name));
RptDoc.SetDataSource(dtattend);
df = RptDoc.DataDefinition;
RptDoc.Load(Server.MapPath(Rprt_Name));
CrystalReportViewer1.ReportSource = RptDoc;
CrystalReportViewer1.ID = "DownloadedReport";
Session["RptDoc"]= RptDoc;
}
catch (Exception)
{
return;
}
}
private void Page_Init(object sender, EventArgs e)
{
if (Session["RptDoc"] != null)
{
CrystalReportViewer1.ReportSource = (ReportDocument)Session["RptDoc"];
CrystalReportViewer1.DataBind();
}
}
}
Supriya Srivastav
11-Aug-11 2:03am
View
Deleted
Ya my code is here:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CrystalDecisions.Shared;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.CrystalReports;
public partial class Employee_Reports_Forms_frmPrnt_attendance_Summary : System.Web.UI.Page
{
Common cmnsql = new Common();
ReportDocument RptDoc;
DataDefinition df;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Session["RptDoc"] = null;
RptDoc = null;
if (Request.QueryString["Title"] != null)
{
hid_RprtTitle.Value = Convert.ToString(Request.QueryString["Title"]);
}
hid_unm.Value = Convert.ToString(Session["UName"]);
hid_RprtName.Value = Convert.ToString(Session["Report_Name"]);
// hid_RprtTitle.Value = Convert.ToString(Session["Report_Title"]);
hid_CompCode.Value = Convert.ToString(Session["Comp_Code"]);
hid_MonYr.Value = Convert.ToString(Session["MonYr"]);
if (Session["Val"] != null)
{
hid_Val.Value = Convert.ToString(Session["Val"]);
}
else
{
hid_Val.Value = "";
}
CrystalReportViewer1.DisplayGroupTree = false;
LoadReport();
}
}
private void LoadReport()
{
try
{
string Rprt_Name = "~\\FAS_Reports\\" + hid_RprtName.Value;
DataTable dtattend = (DataTable)Session["dtattend"];
RptDoc = new ReportDocument();
RptDoc.Load(Server.MapPath(Rprt_Name));
RptDoc.SetDataSource(dtattend);
df = RptDoc.DataDefinition;
ReportDocument RptDoc1 = new ReportDocument();
RptDoc.Load(Server.MapPath(Rprt_Name));
CrystalReportViewer1.ReportSource = RptDoc;
CrystalReportViewer1.ID = "DownloadedReport";
Session["RptDoc"]= RptDoc;
}
catch (Exception)
{
return;
}
}
private void Page_Init(object sender, EventArgs e)
{
if (Session["RptDoc"] != null)
{
CrystalReportViewer1.ReportSource = (ReportDocument)Session["RptDoc"];
CrystalReportViewer1.DataBind();
}
}
}
Supriya Srivastav
1-Jul-11 5:02am
View
Thanks a lot.......
Supriya Srivastav
1-Jul-11 5:01am
View
Thanks.........
Supriya Srivastav
1-Jul-11 4:30am
View
Actually i want to check whether the control is just passed from login page or from some another because if it's postbacked from login then it has to be redirected to specific page and if redirected from other pages then it has to be redirected to some other.
is it possible to check it without checking the session value specifically!!!
Thnks 4r ur sol.........
Supriya Srivastav
1-Jul-11 4:13am
View
Ya i tried it but it's value is getting null.
Show More