15,900,907 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 peer mohammed.A (Top 13 by date)
peer mohammed.A
7-Dec-18 7:33am
View
Ill share my Controller and View below
1.My method in Controller is
if (list.AddFlg == 1)
{
ViewBag.CompAddFlg = true;
}
else
{
ViewBag.CompAddFlg = false;
}
2.My View is
button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal" id="btnAddComp" value="Reset"
@{ if (ViewBag.CompAddFlg != true)
{ @:disabled="disabled"
}
}
onclick="clearTextBox();">
Add New Company
peer mohammed.A
7-Dec-18 7:30am
View
Deleted
Ill share my Controller and View below
1.My method in Controller is
public ActionResult List(Company br)
{
try
{
StringBuilder sb = new StringBuilder();
var result = compobj.GetCompany();
if (result == null || result.Value == null)
return Json(new { data = "" }, JsonRequestBehavior.AllowGet);
//Get Role for assinging rights
int roleid = Convert.ToInt16(Session["RoleId"]);
if (roleid != null)
{
var roleoj = roleobj.GetRolebyId(roleid);
var res = roleoj.Value;
foreach (var list in res.RoleDetList)
{
if (list.AddFlg == 1)
{
ViewBag.CompAddFlg = true;
}
else
{
ViewBag.CompAddFlg = false;
}
if (list.MenuId == MenuNumber.MenuCompany && (list.EditFlg == 0 && list.DelFlg == 0))
{
foreach (Company complist in result.Value)
{
sb.AppendFormat("['{0}','{1}','{2}','{3}','{4}','<a id=\" {0} \" onclick=\"return getbyID({0})\" data-toggle=\"modal\" data-target=\".bs-example-modal-sm\" data-id=\"{0}\"><button type=\"button\" class=\"btnSelect btn btn_round btn-warning\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Edit\" disabled=\"disabled\" style=\"width: 20px;padding: 0px;height: 20px;border-radius:10px;\"> <i class=\"fa fa-pencil-square-o\"> <a id=\" {0} \" onclick=\"return Delete({0})\" data-toggle=\"modal\" data-target=\".bs-example-modal-sm\" data-id=\"{0}\"><button type=\"button\" class=\"btnSelect btn btn_round btn-danger\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Delete\" disabled=\"disabled\" style=\"width: 20px;padding: 0px;height: 20px;border-radius:10px;\"> <i class=\"fa fa-times\"> '],", complist.CompanyId, complist.CompanyName, (complist.Address1 + " , " + complist.Address2 + " , " + complist.Address3), (complist.CityName == "0" ? string.Empty : complist.CityName), complist.IsActive);
}
}
else if (list.MenuId == MenuNumber.MenuCompany && (list.EditFlg == 0 && list.DelFlg == 1))
{
foreach (Company complist in result.Value)
{
sb.AppendFormat("['{0}','{1}','{2}','{3}','{4}','<a id=\" {0} \" onclick=\"return getbyID({0})\" data-toggle=\"modal\" data-target=\".bs-example-modal-sm\" data-id=\"{0}\"><button type=\"button\" class=\"btnSelect btn btn_round btn-warning\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Edit\" disabled=\"disabled\" style=\"width: 20px;padding: 0px;height: 20px;border-radius:10px;\"> <i class=\"fa fa-pencil-square-o\"> <a id=\" {0} \" onclick=\"return Delete({0})\" data-toggle=\"modal\" data-target=\".bs-example-modal-sm\" data-id=\"{0}\"><button type=\"button\" class=\"btnSelect btn btn_round btn-danger\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Delete\" style=\"width: 20px;padding: 0px;height: 20px;border-radius:10px;\"> <i class=\"fa fa-times\"> '],", complist.CompanyId, complist.CompanyName, (complist.Address1 + " , " + complist.Address2 + " , " + complist.Address3), (complist.CityName == "0" ? string.Empty : complist.CityName), complist.IsActive);
}
}
else if (list.MenuId == MenuNumber.MenuCompany && (list.EditFlg == 1 && list.DelFl
peer mohammed.A
7-Dec-18 7:28am
View
Yes i tried,but it not enable the button...
peer mohammed.A
3-Feb-18 1:23am
View
Deleted
---deleted---
peer mohammed.A
31-Aug-17 1:23am
View
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@ViewBag.Title
<!-- Bootstrap -->
<!-- Font Awesome -->
<!-- NProgress -->
<!-- Custom Theme Style -->
Axon Infosoft
<!-- menu profile quick info -->
@*
Welcome,
John Doe
*@
<!-- /menu profile quick info -->
<!-- sidebar menu -->
@*
General
*@
Master
Home
Company
@*
Employee
*@
@*@Html.ActionLink("Employee", "Index","Home")*@
@Html.ActionLink("Company Unit", "CompanyUnitIndex", "CompanyUnit")
@Html.ActionLink("Work Division", "WorkDivision", "WorkDivision")
@Html.ActionLink("Store", "StoreUnit", "StoreUnit")
@Html.ActionLink("Store Section", "StoreSection", "StoreSection")
@Html.ActionLink("Department", "DepartmentIndex", "Department")
Interactors
@Html.ActionLink("Agent", "Index", "Agent")
@Html.ActionLink("Buyer", "BuyerIndex", "Buyer")
@Html.ActionLink("Consignee", "ConsigneeIndex", "Consignee")
@Html.ActionLink("Supplier", "SupplierIndex", "Supplier")
@Html.ActionLink("Courier", "CourierIndex", "Courier")
@Html.ActionLink("Bank", "BankIndex", "Bank")
Item
@Html.ActionLink("Item Group", "ItemGroupIndex", "
peer mohammed.A
31-Aug-17 1:22am
View
i have changed all things based on your suggesstion, even though DatePicker not viewed..please check with my below code
peer mohammed.A
18-Jul-17 3:22am
View
Deleted
and my Supplier.cshtml page...
@model AxonApparels.Models.Supplier
@{
ViewBag.Title = "Supplier";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<!-- page content -->
@*
Department
Go!
*@
Supplier
@*
Settings 1
Settings 2
*@
@*
Departments Record
*@
Add New Supplier
ID
Supplier Name
Address
City
Status
Action
@*
×
*@
×
Add Supplier
ID
peer mohammed.A
3-Nov-15 1:25am
View
The below is the error message,
There was no endpoint listening at http://localhost:3697/RequestForFilling.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
And the InnerException shows(The remote server returned an error: (404) Not Found.)
peer mohammed.A
20-Jun-14 7:04am
View
actually i have two div in same page, first one is below div
<div class="login_section">
<table width="100%" cellpadding="">
<tr>
<td> Username <span class="star">*</span>
<%--<input type="text" runat="server" id="txtname" name="txtname1" class="validate[required]" ></td>--%><%--input_box2--%>
<input type="text" class="validate[required]" runat="server" name="pgUsername" id="txtusername" ></td><%--input_box2--%>
<td> Password <span class="star">*</span>
<%--<input type="text" runat="server" id="txtpass" name="txtpass1" class="validate[required]" >--%>
<input type="text" runat="server" id="txtpassword" class="validate[required]" name="pgPassword" >
</td>
</tr>
<tr>
<td>
<input type="submit" class="sub_btn" id="btnlogin" önserverclick="fnhome_page" runat="server" value="Login">
Forgetpassword
</td>
<td></td>
</tr>
</table>
</div>
And below is the second one
<div class="Register_section">
<table width="100%" cellpadding="">
<tr>
<td> Username <span class="star">*</span>
<%--<input type="text" class="input_box2" >--%>
<input type="text" runat="server" name="reguser" id="txtreguser" ><%--class="validate[required]"--%>
</td>
<td> Email <span class="star">*</span>
<%--<input type="text" class="input_box2" >--%>
<input type="text" runat="server" name="regemail" id="txtregemail" ><%--class="validate[required]"--%>
</td>
</tr>
<tr>
<td> Password <span class="star">*</span>
<%--<input type="text" class="input_box2" >--%>
<input type="text" runat="server" name="regpassword" id="txtregpass" > <%--class="validate[required]"--%>
</td>
<td> Re-enter Password <span class="star">*</span>
<%--<input type="text" class="input_box2" >--%>
<input type="text" runat="server" name="regconfpassword" id="txtregconfpass"><%--class="validate[required]"--%>
</td>
</tr>
<tr>
<td ><input type="submit" runat="server" önserverclick="fnregisteruser" class="sub_btn" value="Register">
</td>
<td></td>
</tr>
</table>
</div>
Now i come to my points, each div contain certain textboxes with button
My requirement is if am clicking the button of first div means it should check only that div textboxes are empty, no need to check another div, but as per my above coding validate all textboxes of 1st & 2nd div.
I think u got my point.
peer mohammed.A
20-Jun-14 5:30am
View
Can you explain how to call this jquery in which control we want to check ?
peer mohammed.A
6-Jan-14 23:32pm
View
Dear Marc Gabrie,
Thanks for your reply, I have query in this, as per the above solution each and every time i have to convert the crystal report file into text format for taking print out, is it so ?
Thanks in advance
peer mohammed.A
12-Dec-13 23:14pm
View
No actually its a Sign Out option, so that i kept in onclick event...
If i call this function in onmousemove it will come out if user move mouse on this by mistake , so for i kept....
But i found another option for this...I have changed this as link button and now its work fine...
Thank you so much for your support :)
peer mohammed.A
12-Dec-13 6:00am
View
Yes am sure that no callers to fnassignvalues except onclick event...
Show More