16,012,468 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 Nethaji chennai (Top 79 by date)
Nethaji chennai
21-Jan-20 3:55am
View
we want send mail (gmail) internally without any third party tool
Nethaji chennai
21-Jan-20 3:55am
View
we want send mail (gmail) internally without any third party tool
Nethaji chennai
13-Jan-20 21:41pm
View
Deleted
we want send mail (gmail) internally without any third party tool
Nethaji chennai
13-Jan-20 21:39pm
View
we want send mail internally without any third party tool .
Nethaji chennai
22-Oct-19 2:02am
View
Below error display
Information about the domain could not be retrieved (1355).
Nethaji chennai
13-Sep-19 2:37am
View
i want set permission like below with properties. but code not work
ActiveDirectoryAccessRule rule = new ActiveDirectoryAccessRule(Sid,
ActiveDirectoryRights.List contents | ActiveDirectoryRights.Read all Properties |
ActiveDirectoryRights.Write all Properties | ActiveDirectoryRights.Read Permissions
ActiveDirectoryRights.Modify permission | ActiveDirectoryRights.Change Password |
ActiveDirectoryRights.Reset Password | ActiveDirectoryRights.Validated write to DNS host Name
| | ActiveDirectoryRights.Validated write to Service Principal Name, AccessControlType.Allow
Nethaji chennai
9-Sep-19 6:09am
View
Please update
Nethaji chennai
4-Sep-19 23:58pm
View
I want give permission to above properties only. but i dont have that format code
Nethaji chennai
3-Sep-19 22:06pm
View
i want like below
using (DirectoryEntry computers = new DirectoryEntry(GrpAccpath, LDAPUser, LDAPPassword))
{
computers.Options.SecurityMasks = System.DirectoryServices.SecurityMasks.Owner | System.DirectoryServices.SecurityMasks.Group |
System.DirectoryServices.SecurityMasks.Dacl | System.DirectoryServices.SecurityMasks.Sacl;
foreach (DirectoryEntry computer in computers.Children)
{
if (computer.Name == "CN=" + ComputerAccountID)
{
for (i = 0; i < strArry.Length; i++)
{
ActiveDirectorySecurity sdc = computer.ObjectSecurity;
// NTAccount Account = new NTAccount("Everyone");
try
{
NTAccount Account = new NTAccount("Domain Admins");
SecurityIdentifier Sid = (SecurityIdentifier)Account.Translate(typeof(SecurityIdentifier));
ActiveDirectoryAccessRule rule = new ActiveDirectoryAccessRule(Sid,
ActiveDirectoryRights.List contents | ActiveDirectoryRights.Read all Properties |
ActiveDirectoryRights.Write all Properties | ActiveDirectoryRights.Read Permissions
ActiveDirectoryRights.Modify permission | ActiveDirectoryRights.Change Password |
ActiveDirectoryRights.Reset Password | ActiveDirectoryRights.Validated write to DNS host Name
| | ActiveDirectoryRights.Validated write to Service Principal Name, AccessControlType.Allow);
if (Enable == true)
sdc.AddAccessRule(rule);
else
sdc.RemoveAccessRule(rule);
computer.CommitChanges();
}
catch (Exception Ex)
{
Logger.LogInfo(" Group Not Found : " + Ex.ToString() + strArry[i]);
}
}
break;
}
Nethaji chennai
3-Sep-19 0:31am
View
Yes, but if add any access rule multiple permission(need and not need options) added in ad. i want exact 9 above . Others not need
Ex: ActiveDirectoryRights.ExtendedRight add
below permission added in AD
1.Change Password
2.Reset Password
3.Allowed to authenticate
4.Receieve etc
but i want only
1.Change Password
2.Reset Password
Nethaji chennai
30-Aug-19 5:20am
View
can you Explain . iam new ActiveDirectoryAccessRule
Nethaji chennai
26-Aug-16 9:56am
View
<input id="chart0Filter0" name="Report Date" type="date">
var id="chart0Filter0";
$('" + id + "').val(format);
is it possible
Nethaji chennai
26-Aug-16 9:30am
View
format =dd-mm-yy;
value =01-08-2016
Nethaji chennai
26-Aug-16 9:25am
View
this method assign value to datefilter;
but date is change in first day of month
Nethaji chennai
26-Aug-16 8:30am
View
then tell me how to assign value to textbox
Nethaji chennai
24-Aug-16 3:43am
View
how
Nethaji chennai
24-Aug-16 2:28am
View
problem solve url is wrong
Nethaji chennai
24-Aug-16 1:11am
View
now also not work display got an error not call webmethod in breakpoint
Nethaji chennai
20-Aug-16 6:26am
View
ok
Nethaji chennai
20-Aug-16 6:05am
View
workiing js fiddle is goood not work in my code
Nethaji chennai
20-Aug-16 5:50am
View
http://jsfiddle.net/SJ7bJ/1098/
Nethaji chennai
19-Aug-16 5:21am
View
welcome
Nethaji chennai
19-Aug-16 5:14am
View
yes
Nethaji chennai
19-Aug-16 5:12am
View
but not work for me . this code will work
Nethaji chennai
19-Aug-16 5:09am
View
iam binding dropdown list with dynamic data and dynamic dropdown id
Nethaji chennai
19-Aug-16 5:04am
View
function dropdownlistbind(userid, chartid, filterid, name, selecttext, dropdownchangeid) {
// window.location = "login.aspx";
var id = "#" + dropdownchangeid;
var obj = {};
obj.userid = userid;
obj.chartid = chartid;
obj.filterid = filterid;
obj.columname = name;
obj.sel = selecttext
$.ajax({
url: "webmethod.aspx/dropdownonchange",
data: JSON.stringify(obj),
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8",
success: function(r) {
//var ddlmachine = $("[id*=chart0Filter2drop1]");
var ddlmachine = $("[id*='" + dropdownchangeid + "']");
ddlmachine.empty().append('<option selected="selected" value="0">Select</option>');
$.each(r.d, function() {
ddlmachine.append($("<option></option>").val(this['Value']).html(this['Text']));
});
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert('Got an Error ');
}
});
}
Nethaji chennai
19-Aug-16 4:57am
View
var id = "#" + dropdownchangeid;
var obj = {};
obj.userid = userid;
obj.chartid = chartid;
obj.filterid = filterid;
obj.columname = name;
obj.sel = selecttext
$.ajax({
url: "webmethod.aspx/dropdownonchange",
data: JSON.stringify(obj),
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8",
success: function(r) {
//var ddlmachine = $("[id*=chart0Filter2drop1]");
var ddlmachine = $("[id*='" + dropdownchangeid + "']");
Nethaji chennai
19-Aug-16 2:05am
View
is not work Karthik
Nethaji chennai
18-Aug-16 3:20am
View
thank you karthik .
Nethaji chennai
16-Aug-16 9:15am
View
thankyou Karthik its work
Nethaji chennai
16-Aug-16 8:49am
View
dropdown list bind empty data.first run filter loop then display alert msg alert display
Nethaji chennai
11-Aug-16 5:57am
View
8 is example. cell value come that format font style. read the question once again
i know little bit eng
Nethaji chennai
11-Aug-16 5:51am
View
Deleted
8 is example. cell value come that format font style. read the question once again
i know little bit eng
Nethaji chennai
11-Aug-16 4:22am
View
_|_|
|_| this is value of 8. i need this value come in this format in grid.
Nethaji chennai
11-Aug-16 4:04am
View
dropdown list also create in runtime depends on the database
Nethaji chennai
11-Aug-16 1:56am
View
gridview font style its comes numbers only depends on the database that font like digital formats
Nethaji chennai
10-Aug-16 9:41am
View
not digital clock. gridview font style like digital clock format
Nethaji chennai
10-Aug-16 0:22am
View
sorry Adam R Harris i dont understand you please explain
Nethaji chennai
10-Aug-16 0:20am
View
$("#titl").val([jsonData.d[i].labeltext]);
titl is label
Nethaji chennai
8-Aug-16 9:46am
View
yes
Nethaji chennai
8-Aug-16 8:23am
View
a value not assigned to textbox
Nethaji chennai
8-Aug-16 7:53am
View
textbox id name
Nethaji chennai
8-Aug-16 7:48am
View
yes i have copy and phaste already done it
Nethaji chennai
6-Aug-16 6:39am
View
its come static value i want column chart value in my database .
Nethaji chennai
5-Aug-16 7:18am
View
now its working fine
Nethaji chennai
5-Aug-16 7:17am
View
thankyou
Nethaji chennai
3-Aug-16 9:26am
View
i got it thanks for help
Nethaji chennai
3-Aug-16 8:43am
View
<asp:DropDownList ID="ddlsec" runat="server" onchange="selesectiondrop(this)">
var liste = document.getElementById('#ddlsec');
var selectedVal = $('#ddlsec').val();
alert(selectedVal);
Nethaji chennai
3-Aug-16 8:42am
View
drodown list bind using ajax
Nethaji chennai
3-Aug-16 8:42am
View
<asp:DropDownList ID="ddlsec" runat="server" onchange="selesectiondrop(this)">
var liste = document.getElementById('#ddlsec');
var selectedVal = $('#ddlsec').val();
alert(selectedVal);
Nethaji chennai
3-Aug-16 7:58am
View
i tried this also not working for me. this value pass to webmethod
Nethaji chennai
3-Aug-16 7:48am
View
[System.Web.Services.WebMethod]
public static List<ListItem> GetpieChartweb()
{
// string s = sectionname;
MasterLogic objMas = new MasterLogic();
Utilities objUtl = new Utilities();
List<ListItem> piechart = new List<ListItem>();
// string reason="";
// int dep;
string qry = " select downtimereason, 100 * sum(downtime) / (select sum(downtime) from downtime) as dep from downtime where downtimereason !='' " +
" group by downtimereason ";
DataTable dt = objMas.GetDataTable(qry);
if (dt == null)
return piechart;
// DataRow dr = dt;
List<datarow> list = dt.AsEnumerable().ToList();
for (int j = 0; j < dt.Rows.Count; j++)
{
piechart.Add(new ListItem
{
Text = list[j].ItemArray[0].ToString(),
Value = list[j].ItemArray[1].ToString()
});
}
//foreach (DataRow dtrow in dt.Rows)
//{
// ListItem = new ListItem();
//}
return piechart;
}
Nethaji chennai
3-Aug-16 5:01am
View
any one tell me how to display piechart(static pie chart working fine)
Nethaji chennai
3-Aug-16 4:37am
View
how to check
Nethaji chennai
3-Aug-16 3:50am
View
alert come after this line(chart.draw(data, options); ) also but pie chart not display please reply me
Nethaji chennai
3-Aug-16 3:46am
View
data is come alert(jsondat.d[i]. text ) but chart not come
Nethaji chennai
3-Aug-16 3:14am
View
alert not come
Nethaji chennai
3-Aug-16 2:36am
View
for (var i = 0; i < len; i++) {
alert(i);// this alert displayed
//data.addRow([jsonData[i].Text, jsonData[i].value]);
data.addRow([jsonData[i].Text, jsonData[i].Value]); // error in this line
//alert([jsonData[i].Text]); this alert not come
}
Nethaji chennai
3-Aug-16 1:21am
View
some changes done after display no data
Nethaji chennai
3-Aug-16 1:14am
View
no error display but design not come
Nethaji chennai
1-Aug-16 0:50am
View
Annual_Sales method not call i set break point
Nethaji chennai
10-May-16 5:51am
View
this also is no working . the id id multiple select list box. other will work like textbox, drop down list but list box is not work can you help me
Nethaji chennai
10-May-16 5:31am
View
its not working for me i want in javascript can any one help me
Nethaji chennai
5-May-16 9:56am
View
thankyou KARTHIK
Nethaji chennai
5-May-16 9:29am
View
if i select main dropdown list item sub option will display that will validate on save function
Nethaji chennai
26-Apr-16 7:19am
View
thankyou
Nethaji chennai
22-Apr-16 8:21am
View
i want bind a dripodown list in javascript using database value
Nethaji chennai
11-Apr-16 2:46am
View
thankyou HobbyProggy .
Nethaji chennai
7-Apr-16 5:52am
View
rolecheck(employee.employee_id);
Nethaji chennai
29-Mar-16 8:25am
View
<script type="text/javascript">
function del() {
var dea = document.getElementById("loginid").value;
document.getElementById('loading').style.visibility = "visible";
if (dea > 0) {
$.ajax({
type: "POST",
url: "http://app2.autobuycrm.com/autobuynew.asmx/Dealer_Delete_UI",
data: "{'dealerid':'" + dea + "'}",
contentType: "application/json;chanrset=utf-8",
dataType: "json",
success: function (msg) {
var re = msg.d;
var n = re.search("failed");
// alert(n);
if (n == -1) {
document.getElementById("inner").innerHTML = "DEALER DELETED";
modal.style.display = "block";
$("#loginid option:selected").remove();
document.getElementById("CheckBox1").checked = false;
document.getElementById("CheckBox2").checked = false;
document.getElementById("CheckBox3").checked = false;
document.getElementById("CheckBox4").checked = false;
var objSel = document.getElementById("loginid");
objSel.options[0] = new Option("SELECT DEALERNAME", "0");
document.getElementById("loginid").value = 0;
document.getElementById("address").value = '';
document.getElementById("name_of_dealership").value = '';
document.getElementById("tinno").value = '';
document.getElementById("city").value = '';
document.getElementById("state").value = '';
document.getElementById("zip").value = '';
document.getElementById("phone").value = '';
document.getElementById("wesite").value = '';
document.getElementById("pri_contact").value = '';
document.getElementById("pr_email").value = '';
document.getElementById("PasswordConfirmTextbox").value = '';
document.getElementById("txtFirstName").value = '';
document.getElementById("txtLastName").value = '';
document.getElementById("PasswordTextbox").value = '';
document.getElementById("userid").value = '';
document.getElementById("dealerid").value = '';
document.getElementById('inner').value = '';
document.getElementById('loading').style.visibility = "hidden";
}
else {
document.getElementById("inner").innerHTML = " CANNOT DELETE SELECTED DEALERNAME";
modal.style.display = "block";
document.getElementById('loading').style.visibility = "hidden";
}
var objSel = document.getElementById("loginid");
objSel.options[0] = new Option("SELECT DEALERNAME", "0");
document.getElementById("loginid").value = 0;
document.getElementById("address").value = '';
document.getElementById("name_of_dealership").value = '';
document.getElementById("tinno").value = '';
document.getElementById("city").value = '';
document.getElementById("state").value = 0;
document.getElementById("zip").value = '';
document.getElementById("phone").value = '';
document.getElementById("wesite").value = '';
document.getElementById("pri_contact").value = '';
document.getElementById("pr_email").value
Nethaji chennai
29-Mar-16 8:12am
View
i delete the dropdown list selected item.delete is successfull but item is displaying in dropdown list . after i page reload the item will removed . i want without page load
Nethaji chennai
29-Mar-16 7:55am
View
tell me any another way
Nethaji chennai
29-Mar-16 7:37am
View
the value removed but another another value deleted previous deleted value come
Nethaji chennai
29-Mar-16 7:37am
View
alert is come 0
Nethaji chennai
29-Mar-16 7:32am
View
public void bind()
{
string connString = ConfigurationManager.ConnectionStrings["autobuyConnectionString"].ToString();
// SqlCommand cmd = new SqlCommand("SELECT * FROM [dealer_userdetails]", new SqlConnection(ConfigurationManager.AppSettings["ConnString"]));
SqlConnection con = new SqlConnection(connString);
con.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandText = "Dealer_user_drpdwn_UI1";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@employee", 1);
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
da.Fill(ds);
loginid.DataSource = ds;
loginid.DataTextField = "username".ToUpper(); ;
loginid.DataValueField = "Dealerid";
loginid.DataBind();
con.Close();
//SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["autobuyConnectionString"].ConnectionString);
//con.Open();
//SqlDataAdapter da = new SqlDataAdapter("Select * from dealer_userdetails order by username" , con);
//DataSet ds = new DataSet();
//DataTable dt = new DataTable();
//da.Fill(dt);
//da.Fill(ds);
//ListItem lst = new ListItem("SELECT DEALERNAME", "0");
//loginid.Items.Insert(loginid.Items.Count - 0, lst);
//if (ds.Tables[0].Rows.Count > 0)
//{
// loginid.Enabled = true;
// for (int i = 0; i < dt.Rows.Count; i++)
// {
// loginid.Enabled = true;
// loginid.Items.Add(dt.Rows[i][6].ToString().ToUpper());
// }
//}
//else
//{
// loginid.Enabled = false;
// // userName.Attributes.Add("disabled", "disabled");
//}
}
Nethaji chennai
10-Feb-16 4:52am
View
anvisnet can you explain briefly
Nethaji chennai
10-Feb-16 4:29am
View
thankyou
Nethaji chennai
10-Feb-16 2:59am
View
iam used this function for only numeric
function onlyNos(e, t) {
try {
if (window.event) {
var charCode = window.event.keyCode;
}
else if (e) {
var charCode = e.which;
}
else { return true; }
if (charCode > 31 && (charCode < 48 || charCode > 57)) {
return false;
}
return true;
}
catch (err) {
alert(err.Description);
}
}
then add dashesh automatically function
function addDashes(f) {
if (f.value.length < 1) {
return false;
}
else {
f.value = f.value.replace(/\D/g, '');
f.value = f.value.slice(0, 3) + "-" + f.value.slice(3, 6) + "-" + f.value.slice(6, 10);
}
}
Regular Expression validator Expression is=^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$
iam also fixed max length is 10
all of above work correctly but if number enter mistake didn't edit so please help me
this my codtitions
conditions
1.first only allowed numeric values only
2.10 numbers only allowed
3.after i want edit also if number is mistake they want allow
4.
Nethaji chennai
10-Feb-16 2:59am
View
Deleted
iam used this function for only numeric
function onlyNos(e, t) {
try {
if (window.event) {
var charCode = window.event.keyCode;
}
else if (e) {
var charCode = e.which;
}
else { return true; }
if (charCode > 31 && (charCode < 48 || charCode > 57)) {
return false;
}
return true;
}
catch (err) {
alert(err.Description);
}
}
then add dashesh automatically function
function addDashes(f) {
if (f.value.length < 1) {
return false;
}
else {
f.value = f.value.replace(/\D/g, '');
f.value = f.value.slice(0, 3) + "-" + f.value.slice(3, 6) + "-" + f.value.slice(6, 10);
}
}
Regular Expression validator Expression is=^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$
iam also fixed max length is 10
all of above work correctly but if number enter mistake didn't edit so please help me
this my codtitions
conditions
1.first only allowed numeric values only
2.10 numbers only allowed
3.after i want edit also if number is mistake they want allow
4.
Show More