15,915,093 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 Member 10229796 (Top 17 by date)
Member 10229796
12-Feb-15 7:42am
View
if give between '2013-100' and '2013-102'
it display like
2014-1000
2014-1010
2014-1011
2013-1012
2013-1013
2014-1016
2014-1017
2014-1018
2014-1019
Member 10229796
12-Feb-15 7:27am
View
select ES_LIBRARY_ID as ES_BAR_CODE from es_library_user where ES_LIBRARY_ID IS NOT NULL and ES_LIBRARY_ID between '2014-100' and '2014-1029'
Member 10229796
29-Jan-15 10:55am
View
sir this table related library visitors.visitor can visit number time in day.each time visitor visited to library i can maintain data in the table. but i want display to report total visitors uniquely each day
Member 10229796
29-Jan-15 10:04am
View
sir this table related library visitors.visitor can visit number time in day.each time visitor visited to library i can maintain data in the table. but i want display to report total visitors uniquely each day
Member 10229796
29-Jan-15 9:58am
View
sir this is actual query
select lv.ES_DATE,lv.es_user_name,lv.ES_USER_TYPE,d.ES_DEPT_NAME,lv.ES_SYSTEM_NO,lv.ES_IN_TIME from ES_LIBRARY_VISITORS lv
left join ES_DEPARTMENTS d on d.ES_ID=lv.ES_DEPT_ID
where ES_BRANCH_ID=1 and CONVERT(VARCHAR(10), lv.ES_DATE, 111)
between '2013/10/18' and '2013/10/18' and lv.ES_USER_TYPE='Student' and lv.ES_DEPT_ID='3'
order by case lv.ES_USER_TYPE when 'Student' then 1 when 'Employee' then 2 else 3 end,
lv.ES_SYSTEM_NO
Member 10229796
28-Oct-14 1:03am
View
please show your code
Member 10229796
1-Oct-14 2:11am
View
OK i got the solution
DropDownList ddl = (DropDownList)sender;
UserControl uc = (UserControl)ddl.NamingContainer;
Member 10229796
1-Oct-14 2:02am
View
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CommitteMember.ascx.cs"
Inherits="Committees_CommitteMember" %>
<%@ Register Assembly="NumericTextControl" Namespace="MINumericTextBoxControl" TagPrefix="cc1" %>
<table class="tborder" cellspacing="0" cellpadding="0" width="100%" border="0"
id="table">
<thead>
<tr id="trInfo">
<td class="tcat">
<asp:Image ID="Image2" runat="server" SkinID="spacer" Width="5px" Height="21px" meta:resourcekey="Image2Resource1" />
</td>
<td class="tcat" style="width: 100%">
<asp:Label ID="lblInfo" runat="server" Text="Select Catagery" Font-Bold="True"
meta:resourcekey="lblClassResource1">
</td>
</tr>
</thead>
<tbody>
<tr class="row1" id="trBtn">
<td align="right" style="width: 50%" valign="top">
<asp:Label ID="Label2" runat="server" Text="Select Member" Font-Bold="True">
</td>
<td style="width: 50%" align="left" valign="middle">
<asp:RadioButton ID="rbEmp" runat="server" Text="Employee" Font-Bold="true" GroupName="g"
TabIndex="1" AutoPostBack="true" OnCheckedChanged="rbEmp_CheckedChanged" />
<asp:RadioButton ID="rbStdnt" runat="server" Text="Student" Font-Bold="true" GroupName="g"
TabIndex="1" AutoPostBack="true" OnCheckedChanged="rbStd_CheckedChanged" />
<asp:RadioButton ID="rbOthers" runat="server" Text="Others" Font-Bold="true" GroupName="g"
TabIndex="1" AutoPostBack="true" OnCheckedChanged="rbOthers_CheckedChanged" />
</td>
</tr>
<tr>
<td class="contenttableborder" colspan="2">
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr class="row1" id="tremptype" runat="server" visible="false">
<td class="row1">
<asp:Label ID="lblEmployee" runat="server">) Employee Name
</td>
<td class="row1">
<asp:DropDownList ID="ddlEmp" runat="server" >
<asp:ListItem Text="Select" Value="0">
<asp:RequiredFieldValidator ID="rqfEmployeeName" runat="server" ControlToValidate="ddlEmp"
InitialValue="0" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True" ToolTip="Select Employee"
ValidationGroup="rqgroup">
</td>
</tr>
<tr class="row1" id="trDesig" runat="server" visible="false">
<td class="row1">
<asp:Label ID="lblDesig" runat="server" Text="Designation">
</td>
<td class="row1">
<asp:DropDownList ID="ddlDesig" runat="server" >
<asp:ListItem Text="Select" Value="0">
<asp:RequiredFieldValidator ID="rqDesig" runat="server" ControlToValidate="ddlDesig"
InitialValue="0" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True" ToolTip="Select Designation"
>
</td>
</tr>
<tr class="row1" id="trRole" runat="server" visible="false">
<td class="row1">
<asp:Label ID="l
Member 10229796
1-Oct-14 1:35am
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 System.Globalization;
using GlobalizationandLocalization;
using System.Security.Cryptography;
using System.Text;
using System.Data.SqlClient;
using MINumericTextBoxControl;
using eWorld.UI;
using System.IO;
using System.Text.RegularExpressions;
using dpant;
public partial class Committees_CommitteeMembers : System.Web.UI.Page
{
MI.BLL.Committees _objBll=new MI.BLL.Committees();
readonly MI.ENT.Committees _objEnt = new MI.ENT.Committees();
readonly MI.DAL.Committees _objDal = new MI.DAL.Committees();
readonly MI.BLL.Common _objCommon = new MI.BLL.Common();
protected int Permission; protected FullGridPager fullGridPager;
protected int MaxVisible = 0; public string confirm;
int x;
public int NoOfUserControls = 1;
protected void Page_Load(object sender, EventArgs e)
{
try
{
confirm = Resources.Resources.areyousure;
if (Session["UserRoleId"] == null)
{
Response.Redirect(FormsAuthentication.LoginUrl, false);
return;
}
else
{
Permission = _objCommon.CheckAccess(MI.BLL.AccessId.Modules.AccountGroup, Convert.ToInt32(Session["UserRoleId"]));
if (Permission == 0)
{
Response.Redirect("~/NoAccessPage.aspx", false);
return;
}
else
{
if (Page.IsPostBack)
{
if (Request.QueryString["Id"] != null)
{
int i = Convert.ToInt32(Request.QueryString["id"]);
//GetCommitteeName(i);
}
}
if (!IsPostBack)
{
ltlCount.Text = "1";
}
GetCommittee();
AddAndRemoveDynamicControls();
HdfCount.Value = ltlCount.Text.Trim();
int count = Convert.ToInt32(ltlCount.Text.Trim());
}
}
}
catch (Exception ex)
{
tblError.Visible = true;
lblExError.Text = ex.Message.ToString();
_objCommon.WriteError(ex.Message + ex.StackTrace);
}
}
public void GetCommittee()
{
DataSet ds = new DataSet();
ddlCommittee.Items.Clear();
ds = _objDal.GetCommitteeName();
ddlCommittee.DataSource = ds.Tables[0];
ddlCommittee.DataTextField = "MI_COMMITTEE_NAME";
ddlCommittee.DataValueField = "MI_COMMITTEE_ID";
ddlCommittee.DataBind();
ddlCommittee.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select", "0"));
}
//public void GetCommitteeName(int i)
//{
// DataSet ds = new DataSet();
// if (ds.Tables[0].Rows.Count > 0)
// {
// lblCommittee.Text = Convert.ToString(ds.Tables[0].Rows[0][0]);
// }
//}
private void AddAndRemoveDynamicControls()
{
Control c = GetPostBackControl(Page);
if ((c != null))
{
if (c.ID.ToString() == "lnkbtnAdd")
{
ltlCount.Text = Convert.ToString(Convert.ToInt16(ltlCount.Text) + 1);
int val = Convert.ToInt32(HiddenField1.Value) + 1;
HiddenField1.Value = val.ToString();
}
}
if ((c != null))
{
if (c.ID.ToString() == "delbtn")
{
ltlCount.Text = Co
Member 10229796
1-Oct-14 1:29am
View
in user control
Member 10229796
1-Oct-14 1:28am
View
yes
Member 10229796
1-Oct-14 1:01am
View
UserControl uc = (UserControl)cd; in this line i get error like system.web.htmlcontrol.htmlcell to system.web.controls
Member 10229796
30-Sep-14 3:38am
View
i have store the editor content data in database
i gating that data from database and stored into dataset
how to print dataset data
Member 10229796
22-Sep-14 8:53am
View
thanks for your valuable answers.i was rectified the error.
the error was I am not give the folder permissions in the server
Member 10229796
17-Sep-14 6:59am
View
string str;
string strFilePath;
string strFileName;
strFilePath = FileUpload1.FileName;
if (!System.IO.Directory.Exists(Server.MapPath("~/PublicRelations/UploadFiles/")))
{
System.IO.Directory.CreateDirectory(Server.MapPath("~/PublicRelations/UploadFiles/"));
}
string[] strFileSplit = strFilePath.Split('\\');
strFileName = strFileSplit[strFileSplit.Length - 1];
str = strFileName.Substring(0, strFileName.IndexOf("."));
str += "_" + System.DateTime.Now.Day + "_" + System.DateTime.Now.Month + "_" + System.DateTime.Now.Year;
str += "_" + System.DateTime.Now.Hour + "_" + System.DateTime.Now.Minute + "_" + System.DateTime.Now.Second;
str += strFileName.Substring(strFileName.IndexOf("."));
string strImagePath = HttpContext.Current.Server.MapPath("~/PublicRelations/UploadFiles\\" + str);
ViewState["FileName"] = str;
FileUpload1.SaveAs(strImagePath);
Member 10229796
5-Sep-14 8:53am
View
not working excel to Pdf in this article
Member 10229796
5-Sep-14 7:43am
View
its good but i don't want third party source only open source service please give a solution
Show More