15,897,891 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 10584788 (Top 14 by date)
Member 10584788
29-Jan-15 3:01am
View
ok.. :)
Member 10584788
18-Oct-14 4:30am
View
That is ok...i want the exact code which will be called on click of radio button ...and have created the SendEmail as a region in APIManager file in which i had written code below...and i m using three tier architecture of asp.net
#region Send UserPPR Email
private void SendUserPPREmail(string SenderName, string SenderEmail, string ReceiverName, string ReceiverEmail, string UserID, string CustomerID, string PPRTypeID, string CallTypeID, string PPID, string DivisionID, string ProductID, string ModelID, string Comments, string MachineSrNo, string PartComments,string HMR,string ExpWorking,string Category,string PartID,string Quantity,string CCEmails, string Date)
{
ListDictionary replacements = new ListDictionary();
replacements.Add("<%SenderName%>", SenderName);
replacements.Add("<%SenderEmail%>", SenderEmail);
replacements.Add("<%ReceiverName%>", ReceiverName);
replacements.Add("<%UserID%>", UserID);
replacements.Add("<%CustomerID%>", CustomerID);
replacements.Add("<%PPRTypeID%>",PPRTypeID);
replacements.Add("<%CallTypeID%>", CallTypeID);
replacements.Add("<%PPID%>", PPID);
replacements.Add("<%DivisionID%>", DivisionID);
replacements.Add("<%ProductID%>", ProductID);
replacements.Add("<%ModelID%>",ModelID);
replacements.Add("<%Comments%>",Comments);
replacements.Add("<%MachineSrNo%>",MachineSrNo);
replacements.Add("<%PartComments%>",PartComments);
replacements.Add("<%HMR%>",HMR);
replacements.Add("<%ExpWorking%>",ExpWorking);
replacements.Add("<%Category%>",Category);
replacements.Add("<%Part ID%>",PartID);
// replacements.Add("<%%>",);
//replacements.Add("<%RepairStatus%>", RepairStatus);
//replacements.Add("<%Amount%>", Amount == "" ? "N/A" : Amount);
//replacements.Add("<%ReceiptNo%>", ReceiptNo == "" ? "N/A" : ReceiptNo);
replacements.Add("<%Date%>", Date);
EmailManager.SendEmailUsingTemplate(SenderEmail, ReceiverEmail, "User PPR Report", Server.MapPath("EmailTemplates/UserPPREmail.txt"), replacements, ConfigurationManager.AppSettings["SmtpServerName"].ToString(), CCEmails);
}
#endregion
and also created the two extra files as UserPPREmail.txt and UserPPREmail.html in EmailTemplate
UserPPREmail.txt
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
Hello <%ReceiverName%>,<br><br />
Please find below the details Of Parts Details - <%PPRID%><br /><br />
Date - <%Date%><br /><br />
PPR ID - <%PPRID%><br /><br />
User ID - <%UserID%><br /><br />
Customer ID - <%CustomerID%><br /><br />
PPR Type ID- <%PPRTypeID%><br /><br />
Call Type ID - <%CallTypeID%><br /><br />
PP ID - <%PPID%><br /><br />
Division ID - <%DivisionID%><br /><br />
Product ID - <%ProductID%><br /><br />
Model ID - <%ModelID%><br /><br />
Comments - <%Comments%><br /><br />
Machine SrNo - <%MachineSrNo%><br /><br />
Part Comments - <%PartComments%><br /><br />
HMR - <%HMR%><br /><br />
Exp Working-<%ExpWorking%><br /><br />
Category-<%Category%><br /><br />
Part ID-<%PartID%><br /><br />
Thanks,<br />
<%SenderName%><br />
Email - <%SenderEmail%><br />
</body>
</html>
UserPPREmail.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xht
Member 10584788
18-Oct-14 3:44am
View
That is ok...i want the exact code which will be called on click of radio button ...and have created the SendEmail as a region in APIManager file in which i had written code below...and i m using three tier architecture of asp.net
#region Send UserPPR Email
private void SendUserPPREmail(string SenderName, string SenderEmail, string ReceiverName, string ReceiverEmail, string UserID, string CustomerID, string PPRTypeID, string CallTypeID, string PPID, string DivisionID, string ProductID, string ModelID, string Comments, string MachineSrNo, string PartComments,string HMR,string ExpWorking,string Category,string PartID,string Quantity,string CCEmails, string Date)
{
ListDictionary replacements = new ListDictionary();
replacements.Add("<%SenderName%>", SenderName);
replacements.Add("<%SenderEmail%>", SenderEmail);
replacements.Add("<%ReceiverName%>", ReceiverName);
replacements.Add("<%UserID%>", UserID);
replacements.Add("<%CustomerID%>", CustomerID);
replacements.Add("<%PPRTypeID%>",PPRTypeID);
replacements.Add("<%CallTypeID%>", CallTypeID);
replacements.Add("<%PPID%>", PPID);
replacements.Add("<%DivisionID%>", DivisionID);
replacements.Add("<%ProductID%>", ProductID);
replacements.Add("<%ModelID%>",ModelID);
replacements.Add("<%Comments%>",Comments);
replacements.Add("<%MachineSrNo%>",MachineSrNo);
replacements.Add("<%PartComments%>",PartComments);
replacements.Add("<%HMR%>",HMR);
replacements.Add("<%ExpWorking%>",ExpWorking);
replacements.Add("<%Category%>",Category);
replacements.Add("<%Part ID%>",PartID);
// replacements.Add("<%%>",);
//replacements.Add("<%RepairStatus%>", RepairStatus);
//replacements.Add("<%Amount%>", Amount == "" ? "N/A" : Amount);
//replacements.Add("<%ReceiptNo%>", ReceiptNo == "" ? "N/A" : ReceiptNo);
replacements.Add("<%Date%>", Date);
EmailManager.SendEmailUsingTemplate(SenderEmail, ReceiverEmail, "User PPR Report", Server.MapPath("EmailTemplates/UserPPREmail.txt"), replacements, ConfigurationManager.AppSettings["SmtpServerName"].ToString(), CCEmails);
}
#endregion
and also created the two extra files as UserPPREmail.txt and UserPPREmail.html in EmailTemplate
UserPPREmail.txt
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
Hello <%ReceiverName%>,<br><br />
Please find below the details Of Parts Details - <%PPRID%><br /><br />
Date - <%Date%><br /><br />
PPR ID - <%PPRID%><br /><br />
User ID - <%UserID%><br /><br />
Customer ID - <%CustomerID%><br /><br />
PPR Type ID- <%PPRTypeID%><br /><br />
Call Type ID - <%CallTypeID%><br /><br />
PP ID - <%PPID%><br /><br />
Division ID - <%DivisionID%><br /><br />
Product ID - <%ProductID%><br /><br />
Model ID - <%ModelID%><br /><br />
Comments - <%Comments%><br /><br />
Machine SrNo - <%MachineSrNo%><br /><br />
Part Comments - <%PartComments%><br /><br />
HMR - <%HMR%><br /><br />
Exp Working-<%ExpWorking%><br /><br />
Category-<%Category%><br /><br />
Part ID-<%PartID%><br /><br />
Thanks,<br />
<%SenderName%><br />
Email - <%SenderEmail%><br />
</body>
</html>
UserPPREmail.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
Hello <%ReceiverName%>,<br><br />
Please find below the details Of
Member 10584788
1-Apr-14 3:31am
View
hmmm.......:):):)
Member 10584788
1-Apr-14 3:21am
View
thank u so much...........i can't explain in words but again thank u.......it's working fine...
Member 10584788
1-Apr-14 2:15am
View
MasterPage.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class MasterPageSample : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
var menu = Page.Master.FindControl("Menu1") as Menu;
if (Session["abcd"] == null)
{
//menu.Items.Remove(menu.FindItem("Reports"));
//menu.Items.Remove(menu.FindItem("Master"));
}
else if ((Session["abcd"].ToString().Equals("admin")))
{
menu.Items.Remove(menu.FindItem("Project Manager"));
menu.Items.Remove(menu.FindItem("Employee"));
menu.Items.Remove(menu.FindItem("Reports"));
}
}
}
Now i had made changes and i found error as ArgumentNullException at this line
menu.Items.Remove(menu.FindItem("Project Manager"));
what will be the solution...
Member 10584788
14-Mar-14 3:03am
View
Template World
XHTML 1.0 Strict
Fixed Width,
1 Column
Light on Dark
Creative Commons 03 March 2008 Corporate, Media, Portfolio, Services, Webdesign
these are the features of this css
Member 10584788
11-Mar-14 6:13am
View
thanks a lot...........
Member 10584788
11-Mar-14 2:52am
View
this is the simplest change password code.....i had never seen before.....great job!!!!!!!!
Member 10584788
6-Mar-14 0:48am
View
ya u r right........i m wondering about form authentication
Member 10584788
27-Feb-14 23:54pm
View
Anyone please help me out.......how can trigger the sql query on it......
Member 10584788
27-Feb-14 1:41am
View
i had mention code in the solution.please see to it and let me know what will be the solution for this.
Member 10584788
27-Feb-14 1:23am
View
Deleted
Note:
I had set Wrkid as primary key for Work_Master table and In Task_Master table i had set Wrkid and CDate that is current date as composite key.
I want to set Actual End date of Work_Master table as disabled until the task status of the task master gets complete on the particular current date so that the actual end date becomes enabled as final actual end date.
Work_Master.aspx
<pre lang="xml"><%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Work_Master.aspx.cs" Inherits="Work_Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContentPlaceHolder" Runat="Server">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
<title></title>
<style type="text/css">
.style1
{
width: 118%;
height: 686px;
margin-left: 12px;
}
.style2
{
width: 121px;
}
.style3
{
width: 277px;
}
.style4
{
width: 121px;
height: 26px;
}
.style5
{
width: 277px;
height: 26px;
}
</style>
</head>
<body>
<div align="center">
Welcome to the Work Item Master page.........<br />
<br />
<table align="center" class="style1">
<tr>
<td class="style4" align="center">
<asp:Label ID="Label1" runat="server" Text="Project ID" Font-Size="Medium"></asp:Label>
</td>
<td class="style5">
<asp:DropDownList ID="pidll" runat="server"
DataTextField="Pid" DataValueField="Pid" AutoPostBack="True"
onselectedindexchanged="pidll_SelectedIndexChanged" >
<asp:ListItem>Pid</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="style2" align="center">
<asp:Label ID="Label2" runat="server" Text="Work Item Id" Font-Size="Medium"></asp:Label>
</td>
<td class="style3">
<asp:TextBox ID="txtwid" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style2" align="center">
<asp:Label ID="Label3" runat="server" Text="Work Item Type" Font-Size="Medium"></asp:Label>
</td>
<td class="style3">
<asp:DropDownList ID="dll1" runat="server" >
<asp:ListItem>Ticket</asp:ListItem>
<asp:ListItem>Enhancment</asp:ListItem>
<asp:ListItem>Maintanenance</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="style2" align="center">
<asp:Label ID="lblactivity" runat="server" Font-Size="Medium" Text="Activity"></asp:Label>
</td>
<td class="style3">
Member 10584788
27-Feb-14 1:07am
View
Deleted
Work_Master.aspx Design
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Work_Master.aspx.cs" Inherits="Work_Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContentPlaceHolder" Runat="Server">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
<title></title>
<style type="text/css">
.style1
{
width: 118%;
height: 686px;
margin-left: 12px;
}
.style2
{
width: 121px;
}
.style3
{
width: 277px;
}
.style4
{
width: 121px;
height: 26px;
}
.style5
{
width: 277px;
height: 26px;
}
</style>
</head>
<body>
<div align="center">
Welcome to the Work Item Master page.........<br />
<br />
<table align="center" class="style1">
<tr>
<td class="style4" align="center">
<asp:Label ID="Label1" runat="server" Text="Project ID" Font-Size="Medium">
</td>
<td class="style5">
<asp:DropDownList ID="pidll" runat="server"
DataTextField="Pid" DataValueField="Pid" AutoPostBack="True"
onselectedindexchanged="pidll_SelectedIndexChanged" >
<asp:ListItem>Pid
</td>
</tr>
<tr>
<td class="style2" align="center">
<asp:Label ID="Label2" runat="server" Text="Work Item Id" Font-Size="Medium">
</td>
<td class="style3">
<asp:TextBox ID="txtwid" runat="server">
</td>
</tr>
<tr>
<td class="style2" align="center">
<asp:Label ID="Label3" runat="server" Text="Work Item Type" Font-Size="Medium">
</td>
<td class="style3">
<asp:DropDownList ID="dll1" runat="server" >
<asp:ListItem>Ticket
<asp:ListItem>Enhancment
<asp:ListItem>Maintanenance
</td>
</tr>
<tr>
<td class="style2" align="center">
<asp:Label ID="lblactivity" runat="server" Font-Size="Medium" Text="Activity">
</td>
<td class="style3">
<asp:DropDownList ID="dll2" runat="server">
<asp:ListItem>Rework
<asp:ListItem>Development
<asp:ListItem>R&D
<asp:ListItem>Testing
<asp:ListItem>Training
<asp:ListItem>Meeting
</td>
</tr>
<tr>
<td class="style2" align="center">
<asp:Label ID="Label5" runat="server" Text="Actual Start Date"
Font-Size="Medium">
</td>
Show More