TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
manish kedar
NA
229
11.5k
AjaxControlToolKit not working after publishing
Jan 25 2018 5:47 AM
Hello Sir,
I developed web page in asp.net and use ajaxcontroltoolkit and update model. And i cascading the country state and city that all code run in localhost but not working after deploy the website..
This regarding code i attached below...Please Help me....
<%@ Page Title="" Language="C#" MasterPageFile="~/UI/HomePage.master" AutoEventWireup="true" CodeFile="AddVehicle.aspx.cs" Inherits="UI_Transport_AddVehicle" EnableEventValidation="false" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:ScriptManager enablecdn="true" ID="ScriptManager1" runat="server"></asp:ScriptManager>
<!-- wrapper -->
<div class="content-wrapper">
<!-- page-wrapper -->
<section class="content-header">
<!-- page header -->
<h1>Add Vehicle</h1>
<ol class="breadcrumb">
<li><a href="../HomePage.aspx"><i class="fa fa-dashboard"></i>Dashboard</a></li>
<li><a href="#"><i class="fa fa-truck fa-fw"></i>Transport</a></li>
<li class="active"><i class="fa fa-edit"></i>Vehicle</li>
</ol>
<a href="AddRoute.aspx" class="btn text-black text-bold pull-right"><i class="fa fa-share"></i><span>Add Route</span></a>
</section>
<!--end page header -->
<section class="content">
<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server" ClientIDMode="Static">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="txtVehicleNo" />
<asp:AsyncPostBackTrigger ControlID="txtCode" />
<%-- <asp:AsyncPostBackTrigger ControlID="Country" />
<asp:AsyncPostBackTrigger ControlID="State" />--%>
<asp:AsyncPostBackTrigger ControlID="btnVehicleSave" />
</Triggers>
<ContentTemplate>
<div class="row">
<div class="col-lg-12">
<!-- Kitchen Sink -->
<div id="divError" runat="server" class="alert alert-danger" visible="false" clientidmode="Static">
</div>
<div id="divVehicleNoMsg" runat="server" class="alert alert-danger" visible="false" ></div>
<div id="divVehicleCodeMsg" runat="server" class="alert alert-danger" visible="false"></div>
<div id="divSuccess" runat="server" class=" alert alert-success" visible="false" clientidmode="Static">
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<!-- Kitchen Sink -->
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">
<b>Add Vehicles</b>
</div>
</div>
<div class="panel-body">
<div class="row">
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-body">
<div class="form-group" id="divVehicleNo">
<label>Vehicle No. <span class="text-red">*</span></label>
<asp:TextBox ID="txtVehicleNo" class="form-control" runat="server" TabIndex="1"
OnTextChanged="txtVehicleNo_TextChanged" AutoPostBack="True" MaxLength="50" ClientIDMode="Static" autofocus></asp:TextBox>
<div id="msgVehicleNo" runat="server" style="color: red"></div>
<asp:HiddenField ID="hfVehicleNo" runat="server" />
</div>
<div class="form-group" id="divSeats">
<label>No. of Seats<span class="text-red">*</span></label>
<asp:TextBox ID="txtSeats" class="form-control" runat="server" ClientIDMode="Static" TabIndex="2"></asp:TextBox>
</div>
<div class="form-group" id="divCode">
<label>Code<span class="text-red">*</span></label>
<asp:TextBox ID="txtCode" class="form-control" runat="server" OnTextChanged="txtCode_TextChanged" ClientIDMode="Static"
AutoPostBack="true" MaxLength="20" TabIndex="3"></asp:TextBox>
<div id="msgCode" runat="server" style="color: red"></div>
<asp:HiddenField ID="hfCode" runat="server" />
</div>
<div class="form-group" id="divMaxAllow">
<label>Maximum Allowed</label>
<asp:TextBox ID="txtMaximumAllowed" class="form-control" runat="server" TabIndex="4" ClientIDMode="Static"></asp:TextBox>
</div>
<div class="form-group" >
<div class="col-sm-4" id="divtxtdevid">
<label>Mobile Device ID(for TrackWay)<span class="CompulsaryMark">*</span></label>
<asp:TextBox ID="txtDeviceid" class="form-control" ClientIDMode="Static" runat="server" TabIndex="5"></asp:TextBox>
</div>
<div class="col-sm-4" id="divtxtusr">
<label>Username<span class="CompulsaryMark">*</span></label>
<asp:TextBox ID="txtuser" class="form-control" ClientIDMode="Static" runat="server" TabIndex="6"></asp:TextBox>
</div>
<div class="col-sm-4" id="divtxtpwd">
<label>Password<span class="CompulsaryMark">*</span></label>
<asp:TextBox ID="txtpass" class="form-control" ClientIDMode="Static" runat="server" TabIndex="7"></asp:TextBox>
</div>
</div>
</div>
</div>
</div>
<asp:UpdatePanel ID="updatePanel2" runat="server" ClientIDMode="Static" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Country" />
<asp:AsyncPostBackTrigger ControlID="State" />
</Triggers>
<ContentTemplate>
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-body">
<label>Country<span class="text-red">*</span></label>
<div class="form-group" id="CountryDiv">
<asp:DropDownList ID="Country" runat="server" CssClass="form-control" AutoPostBack="true" ClientIDMode="Static"
OnSelectedIndexChanged="Country_SelectedIndexChanged" TabIndex="8">
</asp:DropDownList>
</div>
<label>State<span class="text-red">*</span></label>
<div class="form-group" id="StateDiv">
<asp:DropDownList ID="State" runat="server" CssClass="form-control"
AutoPostBack="true" ClientIDMode="Static" OnSelectedIndexChanged="State_SelectedIndexChanged" TabIndex="9">
</asp:DropDownList>
</div>
<label>City<span class="text-red">*</span></label>
<div class="form-group" id="CityDiv">
<asp:DropDownList ID="City" runat="server" CssClass="form-control" ClientIDMode="Static" TabIndex="10">
</asp:DropDownList>
</div>
<div class="form-group" id="divPhone">
<label>Phone<span class="text-red">*</span></label>
<asp:TextBox ID="txtPhone" class="form-control" runat="server" MaxLength="10"
onkeypress="javascript:return isNumber (event)" ClientIDMode="Static" TabIndex="11"></asp:TextBox>
</div>
</div>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-body">
<div class="form-group" id="divVehicleType">
<label>Vehicle Type <span class="text-red">*</span></label>
<asp:DropDownList ID="ddlVehicleType" runat="server" CssClass="form-control" ClientIDMode="Static" TabIndex="12">
<asp:ListItem Value="0">--Select Vehicle Type--</asp:ListItem>
<asp:ListItem Value="Contract">Contract</asp:ListItem>
<asp:ListItem Value="Ownership">Ownership</asp:ListItem>
</asp:DropDownList>
</div>
<div class="form-group" id="divInsurance">
<label>Insurance No.<span class="text-red">*</span></label>
<asp:TextBox ID="txtInsurance" class="form-control" runat="server" MaxLength="50" ClientIDMode="Static" TabIndex="13"></asp:TextBox>
</div>
<div class="form-group" id="divInsuranceDate">
<label>Insurance Date <span class="text-red">*</span></label>
<asp:TextBox ID="txtInsuranceDate" CssClass="form-control" runat="server" ClientIDMode="Static" TabIndex="124" ></asp:TextBox>
</div>
<div class="form-group" id="divRCBookNo">
<label>R C Book No. <span class="text-red">*</span></label>
<asp:TextBox ID="txtRcBookNo" CssClass="form-control" runat="server" ClientIDMode="Static" TabIndex="15" ></asp:TextBox>
</div>
<div class="form-group" id="divAddress">
<label>Address<span class="text-red">*</span></label>
<asp:TextBox ID="txtAddress" class="form-control" runat="server" MaxLength="100" ClientIDMode="Static" TabIndex="16"></asp:TextBox>
</div>
<div class="form-group" id="divTax">
<label>Tax<span class="text-red">*</span></label>
<asp:TextBox ID="txtTax" class="form-control" runat="server" ClientIDMode="Static" TabIndex="17"></asp:TextBox>
</div>
</div>
</div>
</div>
<asp:Label ID="lblPkVehicleM" runat="server" Visible="False"></asp:Label>
</div>
<div class="form-group">
<div class="tooltip-demo">
<asp:Button ID="btnVehicleSave" runat="server" Text="SAVE" data-toggle="tooltip" ToolTip="Save"
CssClass="btn btn-primary" OnClick="btnSave_Click" ClientIDMode="Static" TabIndex="18" />
<asp:Button ID="btnClear" runat="server" Text="RESET" CssClass="btn btn-danger " TabIndex="19"
data-toggle="tooltip" ToolTip="Clear" OnClick="btnClear_Click"/>
</div>
</div>
</div>
</div>
<!-- End Kitchen Sink -->
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">
<b>Search Vehicle List</b>
</div>
</div>
<div class="panel-body">
<asp:TextBox ID="txtSearchVehiNo" runat="server" AutoPostBack="True"
CssClass="form-control" OnTextChanged="txtSearchVehiNo_TextChanged"></asp:TextBox>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">
<asp:DropDownList ID="ddlExport" runat="server" class="btn-default btn-box-tool pull-right fa fa-hand-o-right" ClientIDMode="Static"
AutoPostBack="true" OnSelectedIndexChanged="drpdwnExport_SelectedIndexChanged">
<asp:ListItem Text="Export List" Value="0" >---Export to File---</asp:ListItem>
<asp:ListItem Text="Export To png" Value="png"></asp:ListItem>
<asp:ListItem Text="Export To Excel" Value="excel"></asp:ListItem>
<asp:ListItem Text="Export To PDF" Value="pdf"></asp:ListItem>
<asp:ListItem Text="Export To CSV" Value="csv"></asp:ListItem>
</asp:DropDownList>
<div class="panel-title">
<b>Vehicle List</b>
</div>
</div>
<div class="panel-body">
<div class="table-responsive">
<asp:GridView ID="gvVehicle" runat="server"
CssClass="table table-striped table-bordered table-hover" PagerStyle-CssClass="pagination"
AllowPaging="True" AllowSorting="True" DataKeyNames="PkVehicle" OnRowDataBound="gvVehicle_RowDataBound"
AutoGenerateColumns="False" PageSize="5" OnRowDeleting="gvVehicle_RowDeleting"
OnSorting="gvVehicle_Sorting" OnRowCommand="gvVehicle_RowCommand" OnPageIndexChanging="gvVehicle_PageIndexChanging">
<Columns>
<asp:TemplateField>
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<div class="tooltip-demo">
<asp:ImageButton ID="imgbtnDelete" CommandName="Delete" Text="Edit" runat="server" ImageUrl="~/Images/deleteimg.gif"
ToolTip="Delete" data-toggle="tooltip" Height="20px" Width="20px" />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Vehicle No.">
<HeaderTemplate>
<asp:LinkButton ID="lnkbtnVehicleNo" runat="server" CommandArgument="VehicleNo" CommandName="Sort" Text="Vehicle No."></asp:LinkButton>
<i class="fa fa-sort"></i>
<br />
</HeaderTemplate>
<ItemTemplate>
<asp:LinkButton ID="lblVehicleNo" runat="server" Text='<%# Eval("VehicleNo") %>' CommandName="Select"
CommandArgument='<%# Eval("PkVehicle") %>' CssClass="text-bold text-blue"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Vehicle Code">
<HeaderTemplate>
<asp:LinkButton ID="lnkbtnVehicleCode" runat="server" CommandArgument="Code" CommandName="Sort" Text="Vehicle Code"></asp:LinkButton>
<i class="fa fa-sort"></i>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblCode" runat="server" Text='<%# Eval("Code") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DeviceID">
<HeaderTemplate>
<asp:LinkButton ID="lnkbtnDevice" runat="server" CommandArgument="Deviceid" CommandName="Sort" Text="Device ID"></asp:LinkButton>
<i class="fa fa-sort"></i>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lbldevice" runat="server" Text='<%# Eval("Deviceid") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Username">
<HeaderTemplate>
<asp:LinkButton ID="lnkbtnuser" runat="server" CommandArgument="username" CommandName="Sort" Text="Username"></asp:LinkButton>
<i class="fa fa-sort"></i>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lbluser" runat="server" Text='<%# Eval("username") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Password">
<HeaderTemplate>
<asp:LinkButton ID="lnkbtnpass" runat="server" CommandArgument="Password" CommandName="Sort" Text="Password"></asp:LinkButton>
<i class="fa fa-sort"></i>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblpass" runat="server" Text='<%# Eval("Password") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="City">
<HeaderTemplate>
<asp:LinkButton ID="lnkbtnCityName" runat="server" CommandArgument="City" CommandName="Sort" Text="City"></asp:LinkButton>
<i class="fa fa-sort"></i>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblCity" runat="server" Text='<%# Eval("City") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Vehicle Type">
<HeaderTemplate>
<asp:LinkButton ID="lnkbtnVehicleType" runat="server" CommandArgument="VehicleType" CommandName="Sort" Text="Vehicle Type"></asp:LinkButton>
<i class="fa fa-sort"></i>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblVehicleType" runat="server" Text='<%# Eval("VehicleType") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Phone No.">
<HeaderTemplate>
<asp:LinkButton ID="lnkbtnPhoneNo" runat="server" CommandArgument="Phone" CommandName="Sort" Text="Phone No."></asp:LinkButton>
<i class="fa fa-sort"></i>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblPhoneNo" runat="server" Text='<%# Eval("Phone") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Vehicle Seats">
<HeaderTemplate>
<asp:LinkButton ID="lnkbtnVehicleSeat" runat="server" CommandArgument="Seats" CommandName="Sort" Text="Vehicle Seats"></asp:LinkButton>
<i class="fa fa-sort"></i>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblSeats" runat="server" Text='<%# Eval("Seats") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Max. Allowed">
<HeaderTemplate>
<asp:LinkButton ID="lnkbtnMaxAllow" runat="server" CommandArgument="MaxAllowed" CommandName="Sort" Text="Max. Allowed"></asp:LinkButton>
<i class="fa fa-sort"></i>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblMaxAllowed" runat="server" Text='<%# Eval("MaxAllowed") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate>
<asp:Label ID="lblEmptyMessage" Text="" runat="server" />
</EmptyDataTemplate>
</asp:GridView>
</div>
</div>
<div class="btn-group">
</div>
</div>
</div>
</div>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List" ForeColor="Red" ShowMessageBox="True" ShowSummary="False" ValidationGroup="VehiValidation" />
</ContentTemplate>
</asp:UpdatePanel>
Reply
Answers (
1
)
Print Pdf from windows service and keep working after logoff
Having a payment system integrated for multiple users