Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all 5678 articles
Browse latest View live

[Q] How to Update User Control Data inside modal popup without closing the popup ?

$
0
0

Hi can anyone tell me how can i search and Update my User control using textChenged event on a Modal popup without closing the Popup ?

I have this Dynamic User control that containts TextBox and GridView

The Master page ImageButton supplies the GridView Datasource and the shows the User Control which displays the data

Protected Sub imgBtn2_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles imgBtn2.Click
	Dim MyController As Control = LoadControl("~/UserControl/MyUserControl.ascx")

	Dim gv As New GridView
	gv = CType(UCBranch.FindControl("gvBranch"), GridView)
	gv.DataSource = MyDatatable
	gv.DataBind()
	LoadUserContrl.Controls.Add(MyController)
	MPEUC.Show()
End Sub

This is my MyUserControl.ascx

GridView

<div class="GVData"><asp:GridView ID="gvBranch" runat="server" AutoGenerateColumns="False" EnableViewState="false" ><Columns/><asp:BoundField DataField="BLoc" HeaderText="Location"/><asp:BoundField DataField="Bname" HeaderText="Name"/></Columns/></asp:GridView/></div/>

my TextBox for searching

<asp:UpdatePanel ID="UpdateP1" runat="server" UpdateMode="Conditional"><Triggers/><asp:AsyncPostBackTrigger ControlID="txtSearch" EventName="TextChanged" //></Triggers/><ContentTemplate><asp:TextBox ID="txtSearch" runat="server" EnableViewState="true" OnTextChanged="txtSearchBCode_TextChanged"/></asp:TextBox/></ContentTemplate/></asp:UpdatePanel>





htmlEditorExtender not loading the toolbar

$
0
0

Hi,

I am trying to use the html editor extender or the editor ajax controls but I am  failing at both.

If I use editor, I just get a dot on the page.

If I use a text box with the html extender, I don't see any toolbar which tels me somthing is wrong.

Here is my code below.

<asp:TextBox runat="server"
ID="txtBox1"
TextMode="MultiLine"
Columns="50"
Rows="10"
Text="Hello <b>world!</b>" />
<asp:HtmlEditorExtender
ID="htmlEditorExtender1"
TargetControlID="txtBox1"
OnClientChange="onContentsChange"
runat="server" EnableSanitization="False">
<Toolbar>
<asp:Bold />
<asp:Copy />
</Toolbar>
</asp:HtmlEditorExtender>

AJAX Calendar Extender Control NOT working

$
0
0

I am trying to build a Web Application using Visual Studio 2005 and C# 2005. I need to accept a date in a particular textbox. I tried to use AJAX Calendar Extender for the purpose. I have added AJAX Script Manager and CalendarExtender controls to the webpage and set the TargetControlId of CalendarExtender to the proper textbox id. But when I display the webpage (using Debug -> Start Without Debugging) and click inside the textbox nothing happens. I even tried to add an image control to the form and set the PopupButtonId of the CalendarExtender to the image, but even then I am unable to display the calendar control. What am I doing wrong??

Adding space between buttons in ajax HTML editor

$
0
0

Hi 

I am customizing the ajax HTML editor by creating a new class and inherit the class with Editor. But the buttons which is added are stick to each other and there is no space between them. Is there any way to add a space between the buttons.

Regards

Karang

Toolkit, ScriptManager and Master Page

$
0
0

Our asp.net site uses master pages on most all pages in the website.  I want to make ajaxtoolkit available on all pages that use the master page and only use UpdatePanel on some of those pages.  Which control do I use and where should they be placed?  On some pages I am getting "Unknown server tag 'asp:CalendarExtender'" message.  Thanks.

Display Modalpopupextender

$
0
0

I display Modal for login form, in this form have Create new user. I want when click Create new user, it display second modalform and close the first login modal form, i use Hide ans Show function but it not work. How can i do that?

thanks,

ModalPopupExtender not working if using Dynamic Populate, TK version 4.1.7.1213 Dec 14 2013 for ASP.NET 4.0

$
0
0

My project fails miserably with the Dec 14 2013 (4.1.7.1213) Toolkit. I have traced one problem with ModalPopupExtender. It works if there are no Dynamic Population operations, but will not work with them. The MPE used to work fine for me, and now it does not: Here's some sample code below.

Symptoms: Clicking the PopButton produces a javascript error

"Line: 2
Error: Object doesn't support this action"

If I remove the 4 "Dynamic..." properties, the popup works, but of course won't get any of the dynamic content.

I notice that the Sample Website example has no mention of these dynamic properties, and does not document this functionality. Was it taken out?

I haven't tied using the DynamicPopulateExtender to do the job, but I keep thinking that my previously functioning modal popups should still work, and that maybe there is a bug in this recent version of the AjaxControlToolkit.

<!-- my button to pen the modal popup: -->

<asp:ButtonID="PopButton"runat="server"Text="Pop if you Click Me Button" />

   

<!-- The popup panel markup: -->

<asp:PanelID="TestPopPanel"runat="server">Wow!<br/>

 <asp:ButtonID="CloseMeButton"runat="server"Text="Go Away"/>

 <asp:PanelID="ControlPanelDynamicContent"runat="server"></asp:Panel></asp:Panel>

 <!-- end popup panel markup -->  

<!-- The ModalPopupExtender markup: -->

<AjaxTK:ModalPopupExtenderID="ModalPopupExtTest"runat="server"

PopupControlID="TestPopPanel"

TargetControlID="PopButton" 

CancelControlID="CloseMeButton"

 BackgroundCssClass="modalBackground"

 DropShadow="true" 

Drag="false"

RepositionMode="RepositionOnWindowResizeAndScroll"

CacheDynamicResults="false"

DynamicServiceMethod="ControlPopContents" 

DynamicContextKey="2" 

DynamicControlID="ControlPanelDynamicContent"

DynamicServicePath="~/Forms/controlopts.asmx"

Enabled="true"

  ></AjaxTK:ModalPopupExtender>

The webservice checks out independently.

Any thoughts anybody?

Bob

AjaxControlToolkit CalendarExtender control not working

$
0
0

Dear All,
 
I am using CalendarExtender in my project.But It is not working. I have added latest AjaxToolKit.dll.
 
there is a ToolkitScriptManager in master page.
 

<cc1:ToolkitScriptManager ID="ScriptManager" runat="server"></cc1:ToolkitScriptManager>

 
and dll registerd in web.config like this:
 

<add assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagPrefix="cc1" />

 
Here is code spinet:
 

<asp:TextBox ID="txtdtofRegi" runat="server" CssClass="input_text"></asp:TextBox><cc1:CalendarExtender ID="CalendarExtender1" EnabledOnClient="true" runat="server"
                                                                TargetControlID="txtdtofRegi" PopupButtonID="txtdtofRegi" Format="MMMM d, yyyy"></cc1:CalendarExtender>

 

also I downloaded sample project of controltoolkit. but its controls also not working.
when I clicked for calendarExtender in textbox it not show calendar.
 
I have tried in Mozilla Firefox 5.0 and IE 6
 
I am not getting problem. please and please help me..Cry
 
Thanks..


Modal Popup Extender and an Update Panel - "Cancel" Button problem

$
0
0

This should be a quick "yes" answer - I am in the process of creating a very simple test, but I thought I'd ask on here too (also, so other people might be able to find the answer, if they have the same problem).

I have created a modalpopupextender that opens up a panel containing an update panel.  I have a cancel button that is tied into the MPE's [CancelControlID] property and this closes the popup when I click it. However, if I perform a partial postback within the update panel, the cancel button no longer works.  I have found an example online that seems to imply that the cancel button (and I'm guessing, by association) and the OK button should be outside the update panel.  Does the partial postback break the buttons' client script bindings, and thus should they always be placed outside the update panel?

BalloonPopupExtender within TabContainer Problem

$
0
0

Hi

I was wondering if anybody had come across a problem when you implement a BalloonPopupExtender on a TextBox which is within a TabPanel of a TabContainer?

I seem to get a problem where you get an empty Balloon appearing on page load?

Anybody else had thsi problem?

Many thanks in advance

How to use ajax ballonpopup extender with panel in asp.net?

$
0
0

Hi all,

Hope doing well,

sir i am using ajax ballonpopup extender when i click on panel it is showing the ballon popup extender. in panel i used css class cursor pointer so when i click on this panel ballon popup is showing and this panel i used under one div tag in that i used display none

this panel i am showing when user click on gridview checkbox that time. when page is loading that time this panel is visible false.

and when user click on gridview checkbox that time it's showing. for this i used one jquery but that time when i click on this panel it's

going to an unknown page and one message box is poping "invalid argument".

but if i remove display:none from div tag so it's working fine.

i am not getting why it's happening.

thanks

TabContainer control not displaying on page [as a popup]

$
0
0

Hi,

I'm using  TabContainer control in my page (asp.net 4.0) and i want to open (MyPopup.aspx) popup page from button click of another page (MainForm.aspx)

See the following code of both the pages.

Problem:

Tabcontainer is not displaying while clicking on button. Only blank page is displaying.

NOTE: If I run directly popup then it is displaying tab control, but when i'm trying to openMyPopup.aspx as a popup, then it is not displaying TabContainer control.

Code:-

---------MyPopup.aspx

.........<ajax:ToolkitScriptManager ID="scriptmanager1" runat="server" ScriptMode="Release"></ajax:ToolkitScriptManager><div style="width: 40%"><ajax:TabContainer ID="TabContainer1" runat="server" Visible="true" CssClass="fancy fancy-green"><ajax:TabPanel ID="tbpnluser" runat="server"><HeaderTemplate>
                        New User</HeaderTemplate><ContentTemplate><asp:Panel ID="UserReg" runat="server"><table align="center"><tr><td></td><td align="right"></td><td align="center"><b>Registration Form</b></td></tr></table></asp:Panel></ContentTemplate></ajax:TabPanel></ajax:TabContainer></div>

------ MainForm.aspx

$('#btnsearch').click(function () {

              ..........      
                      var URL = String.format("MyPopup.aspx?SearchCriteria={0}&NavigatedFromModule={1}", $('#txtSerachCriteria').val(), encodeURI(module))                    
                        var divSearchResult = $('#divSearchResult');
                        divSearchResult.dialog({ autoOpen: false });
                        divSearchResult.dialog({ 'width': '900', 'height': 'auto' });

                        divSearchResult.load(URL);

                        var divSearchResult = $('#divSearchResult');
                        divSearchResult.dialog('open');$('.ui-dialog-content').css({ 'width': '95%', 'margin': '0 auto', 'height': 'auto', 'max-height': '400px', 'overflow-y': 'auto', 'padding-bottom': '10px' });$('.ui-dialog-titlebar-close span.ui-button-text').text('X').css({ 'cursor': 'pointer' });$('.ui-dialog-titlebar-close').css({ 'cursor': 'pointer', 'height': '33px', 'overflow': 'hidden' });$('.ui-dialog-title').text('SEARCH QUEUE').addClass('popupHeading').attr('style', 'float:left');$('.ui-dialog-titlebar').after().append('<div class="clear"></div>')$('.ui-dialog').css({ 'position': 'absolute', 'min-width': '900px' });$('.ui-dialog').position({
                            my: "center",
                            at: "center",
                            of: window

Thanks in advance.

onblur in Accordion

$
0
0

Hi,

Is it possible to fire onblur/Leave on Accordion Pane leave

Accordion panel is not working on page..?

$
0
0

hello,


i write following  code for accordion panel but its not open on page .....


<asp:Accordion ID="Accordion1" runat="server"
        BorderColor="Black" RequireOpenedPane ="false" SelectedIndex ="-1"
        HeaderCssClass="acco_header"
        style="margin-left: 151px; top: 387px; left: 47px; position: absolute; height: 175px; margin-top: 0px;"
        Width="322px" >
   
    <Panes>
        <asp:AccordionPane ID="AccordionPane1" runat="server" HeaderCssClass ="acco_header" ContentCssClass="acco_content" Width="100" Height="28" BorderColor="Black">
        <Header>
            Forgot Password
        </Header>
        <Content>
        
            <h4>E-mail:</h4><asp:TextBox ID="text1" runat ="server" Width="150" Height="25"></asp:TextBox><br /><br />
            <asp:Button ID="Button3" runat ="server" Text ="Submit" OnClick = "Button3_Click" BackColor="#FFDB70"/>
       </Content>
        </asp:AccordionPane>
            </Panes>
      </asp:Accordion>
      
   so how to solve this problem..


Thanks, 
     

Unhandled exception error

$
0
0

Hi there, I'm pretty new to using ASP and been going through a few bugs that have cropped up whilst migrating a site over to a new host. This error has got me a little bit and im not sure what I need to do to fix it. I'll provide as much information as possible but if I am missing anything, please tell me as I need to get this fixed asap:

Basically, I'm trying to fix the booking form at this link: http://cardiffstagweekend.co.uk/stag-booking.aspx If you could test it, you'll be able to see the full error description but I'll provide some of it below anyway: 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Webs\PlayAway\cardiffstagweekend.co.uk\www\emails\config.xml'.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

I am struggling to find where I need to change the path as it shows above to a new one so that this error stops appearing, any help will be much appreciated. 


AsyncFileUpload getting Unresponsive Script on FireFox 22.0

$
0
0

On FireFox 21.0 it works fine.
Last night, version 22.0 was released, and now all pages with a AsyncFileUpload control gets the "Unresponsive Script" popup.
I'm trying to recompile with the new June release, but having a hard time getting the new events/properties of the control to show up in the IDE (like StoreToAzure, and UploadStart event)
I have customers complaining about the our site while using FireFox.
If I can't get this to work, I guess I'll have to rewrite the pages and use another File Upload.

If you go to the Sample Site: http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AsyncFileUpload/AsyncFileUpload.aspx using FireFox version 22.0, it gets the Unresonsive Script error, too.

Does anyone have any ideas??

-Scott

Auto Complete Error in textbox

$
0
0

I have one textbox with asp:AutoCompleteExtender. In Firefox, textbox show with autocomplete box. but i want to type a character in textbox then autocomplete box open. but it displayed when i dont type anything in textbox. I spoiled my web page design. How to avoid this autocomplete textbox when i dont type anything in textbox. how to solve it?

Modal 'Progress Bar' on Page Load

$
0
0

I'm looking for an example of how to implement some sort of modal popup that states 'Loading' or displays a gif when my pages load.

I have about a dozen pages all inherited from a master page.  I'd like to do it from the master page load but don't mind coding it in each page as well.

Most of the examples I can find are all called from button clicks but my site is menu driven...

Appreciate any response.

I need examples in VB.net not C.

Thanks

Reorder list not working in Chrome

$
0
0

.net 4.5,  latest december version of the ajax toolkit.  Works fine in IE,  but in chrome it just drags but does do anything.  In Chrome also,  the css styles dont match those in IE (which works)

any clues?

</asp:Panel><div class="reorderListDemo"><asp:ReorderList ID="ReorderListAuthors" runat="server"
                    DataKeyField="AuthorsID"
                    DataSourceID="SqlDataSourceAuthors"
                    PostBackOnReorder="True"
                    CssClass="ReorderImages"
                    AllowReorder="true"
                    CallbackCssStyle="callbackStyle"
                    SortOrderField="sort"
                    DataMember="DefaultView"
                  ClientIDMode="AutoID"><ItemTemplate><div class="itemArea"><asp:Label ID="Label8" runat="server" Text='<%# Eval("name")%>'></asp:Label></div></ItemTemplate><DragHandleTemplate><div class="dragHandle"></div></DragHandleTemplate><ReorderTemplate><asp:Panel ID="Panel2" runat="server" CssClass="reorderCue" /></ReorderTemplate></asp:ReorderList></div>
<asp:SqlDataSource ID="SqlDataSourceAuthors" runat="server" ConnectionString="<%$ ConnectionStrings:COMConferenceConnectionString %>" SelectCommand="SELECT AuthorsID, FirstName + ' ' + LastName AS Name, Department FROM Authors WHERE (PosterID = @posterID) ORDER BY Sort" 
                UpdateCommand="UPDATE Authors SET Sort =@sort where (AuthorsID=@authorsid)"><SelectParameters><asp:Parameter Name="posterID" /></SelectParameters><UpdateParameters><asp:Parameter Name="sort" /><asp:Parameter Name="authorsid" /></UpdateParameters></asp:SqlDataSource>



Ajax controlls (CalendarExtender & ComboBox) not working after deploying

$
0
0

My computer: Windows 7 with VS 2010 Pro installed & AjaxControlToolkit 4.1.7.1005 installed.

Destination: Windows 2008 R2.

 The controlls work fine on my local box.  But when I deploy them, they don't work at all. I get the following when I run it (once it does come up):

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC EA 2; InfoPath.3; MS-RTC LM 8)
Timestamp: Tue, 24 Dec 2013 00:36:46 UTC


Message: Object doesn't support this action
Line: 2
Char: 44750
Code: 0
URI: http://thirdpartyorderentry/ScriptResource.axd?d=1-9x5UbSbEDSHOTL1CMF_jUgvGYRDU5eDU75xU4plAwG7zDtYpoa4azgEka-TPR-ucTbNUbprnKo80WX91U0u-t8KPlD5RG7H5iRkDEEwdQbY3tyGXzkiRd2rM0S8Qyo0&t=153abac5

My web.config:

<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>Not connecting directly to any databases.
</connectionStrings>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<clear />
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear />
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
</providers>
</roleManager>
<pages>
<controls>
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
</controls>
</pages>
</system.web>
<system.webServer>
<handlers>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler,
System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</handlers>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="MuscleAndFitnessSoap" />
</basicHttpBinding>
</bindings>
<client>
  I use web services, but I don't think they're relevant to this.
</client>
</system.serviceModel>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="AjaxMin" publicKeyToken="21ef50ce11b5d80f" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.3.5068.16458" newVersion="5.3.5068.16458" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

My aspx page:

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
CodeBehind="EnterOrder.aspx.cs" Inherits="ThirdPartyOrderEntry.DataEntry.EnterOrder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<link href="../Styles/StyleSheet.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="http://thirdpartyorderentry/OrderEntryWebService/MuscleAndFitness.asmx" />
</Services>
</ajaxToolkit:ToolkitScriptManager>
<%--<asp:DropDownList ID="ddlItems" runat="server" />--%>
<div class="row">
<%--<div class="label"><asp:Label ID="lblCustKey" runat="server">Customer Key:</asp:Label></div><div class="value"><asp:TextBox ID="txtCustKey" runat="server" /></div>--%>
<div class="label">
<asp:Label ID="lblCustName" runat="server">Customer Name:</asp:Label></div>
<div class="value">
<asp:TextBox ID="txtCustName" runat="server" ValidationGroup="Validation1" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ValidationGroup="Validation1" ControlToValidate="txtCustName" ForeColor="Red" />
</div>
<div class="label">
<asp:Label ID="lblPromiseDate" Text="Promise Date:" runat="server" />
</div>
<div class="value">
<asp:TextBox ID="txtPromiseDate" runat="server"></asp:TextBox>
<ajaxToolkit:CalendarExtender TargetControlID="txtPromiseDate" ID="CalPromiseDate" runat="server"/>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator7" runat="server" ErrorMessage="*" ValidationGroup="Validation1" ControlToValidate="txtPromiseDate" ForeColor="Red"></asp:RequiredFieldValidator>
</div>
<div class="label">
<asp:Label ID="lblRequestedDate" Text="Requested Date:" runat="server" />
</div>
<div class="value">
<asp:TextBox ID="txtRequestDate" runat="server"></asp:TextBox>
<ajaxToolkit:CalendarExtender TargetControlID="txtRequestDate" ID="CalendarExtender1" runat="server"/>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator8" runat="server" ErrorMessage="*" ValidationGroup="Validation1" ControlToValidate="txtRequestDate" ForeColor="Red"></asp:RequiredFieldValidator>
</div>

<%--<div class="label">
<asp:Label ID="lblContact" runat="server">Contact:</asp:Label></div>
<div class="value">
<asp:TextBox ID="txtContact" runat="server" /></div>--%>
</div>
<div class="row">
<div class="label">
<asp:Label ID="lblAddr" runat="server">Address:</asp:Label></div>
<div class="value">
<asp:TextBox ID="txtAddress1" runat="server" ValidationGroup="Validation1"/><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ValidationGroup="Validation1" ControlToValidate="txtAddress1" ForeColor="Red" /><br />
<asp:TextBox ID="txtAddress2" runat="server" />
<%--<asp:TextBox ID="txtAddress" runat="server" Height="75" TextMode="MultiLine" Width="150" />--%></div>
<div class="label">
<asp:Label ID="lblCity" runat="server">City:</asp:Label>
</div>
<div class="value">
<asp:TextBox id="txtCity" runat="server" ValidationGroup="Validation1"/><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ValidationGroup="Validation1" ControlToValidate="txtCity" ForeColor="Red" />
</div>
<%--<div class="label"><asp:Label ID="lblShipVia" runat="server">ShipVia:</asp:Label></div><div class="value"><asp:TextBox ID="txtShipVia" runat="server" /></div>--%>
<div class="label">
<asp:Label ID="lblState" runat="server">State:</asp:Label>
</div>
<div class="value">
<asp:DropDownList ID="ddlState" runat="server">
<asp:ListItem Text="--Select a State--" Value="" Selected="True" />
You probably don't want to see a list of states.
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" ValidationGroup="Validation1" ControlToValidate="ddlState" ForeColor="Red" InitialValue="0" />
</div>
<div class="label">
<asp:Label ID="lblError" runat="server" /></div>
<div class="label">
<asp:Button ID="btnStartOrder" runat="server" Text="Begin Order"
ValidationGroup="Validation1" onclick="btnStartOrder_Click" />
</div>
</div>
<div class="row">
<div class="label">&nbsp;</div>
<div class="value">
<asp:TextBox ID="txtAddress3" runat="server" />
</div>
<div class="label">
<asp:Label ID="lblZip" Text="Zip/Postal Code:" runat="server" />
</div>
<div class="value">
<asp:TextBox ID="txtZip" runat="server" ValidationGroup="Validation1"/><asp:RequiredFieldValidator
ID="RequiredFieldValidator5" runat="server" ErrorMessage="*" ValidationGroup="Validation1" ControlToValidate="txtZip" ForeColor="Red"></asp:RequiredFieldValidator>
</div>
<div class="label">
<asp:Label ID="lblPONum" Text="PO#:" runat="server" /><asp:Label ID="lblCustID" runat="server" />
</div>
<div class="value">
<asp:TextBox ID="txtPONum" runat="server" ValidationGroup="Validation1" MaxLength="15"/><asp:RequiredFieldValidator
ID="RequiredFieldValidator6" runat="server" ErrorMessage="*" ValidationGroup="Validation1" ControlToValidate="txtPONum" ForeColor="Red"></asp:RequiredFieldValidator>
</div>
<div class="label">
<asp:Label ID="lblSalesPersonLabel" runat="server">Salesperson:</asp:Label>
</div>
<div class="value">
<asp:Label ID="lblSalesPerson" runat="server" />
</div>
</div>
<div class="row">
<div class="label">&nbsp;</div>
<div class="value">
<asp:TextBox ID="txtAddress4" runat="server" />
</div>
<div class="label">Comments:</div>
<div class="value">
<asp:TextBox ID="txtComments" runat="server" Columns="50" />
</div>
</div>
<asp:HiddenField ID="hfOrderID" runat="server" />
<asp:GridView
ID="gvOrder"
runat="server"
Width="100%"
AutoGenerateColumns="false"
AutoGenerateSelectButton="false"
ShowFooter="true"
OnRowDataBound="gvOrder_OnRowDataBound"
OnRowCommand ="gvOrder_OnRowCommand"
OnRowDeleting="gvOrder_OnRowDeleting"
OnRowEditing="gvOrder_OnRowEditing"
OnRowCancelingEdit="gvOrder_OnRowCancelingEdit"
OnRowUpdating="gvOrder_OnRowUpdating"
DataKeyNames="RowKey">
<Columns>
<asp:CommandField CausesValidation="true" ShowEditButton="true" ShowDeleteButton="true"
ShowCancelButton="true" />
<asp:TemplateField HeaderText="Item">
<ItemTemplate>
<asp:Label ID="lblItemID" runat="server" Text='<% #Bind("ItemID") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:HiddenField ID="hfItemID" runat="server" Value='<% #Bind("ItemID") %>' />
<ajaxToolkit:ComboBox ID="ddlItem" runat="server" AutoCompleteMode="SuggestAppend" AutoPostBack="false" CausesValidation="false" />
<%--<asp:DropDownList ID="ddlItem" runat="server" AutoPostBack="false" CausesValidation="false" />--%>
</EditItemTemplate>
<FooterTemplate>
<ajaxToolkit:ComboBox ID="ddlItem" runat="server" AutoCompleteMode="SuggestAppend" AutoPostBack="false" CausesValidation="false" />
<%--<asp:DropDownList ID="ddlItem" runat="server" AutoPostBack="false" CausesValidation="false" />--%>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Description">
<ItemTemplate>
<asp:Label ID="lblDescription" runat="server" Text='<% #Bind("ShortDesc") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:Label ID="lblDescription" runat="server" Text='<% #Bind("ShortDesc") %>' />
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Qty">
<ItemTemplate>
<asp:Label ID="lblQty" runat="server" Text='<% #Bind("Qty") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtQty" runat="server" Text='<% #Bind("Qty") %>' />
<asp:RequiredFieldValidator ControlToValidate="txtQty" Enabled="false" ValidationGroup="Line" ErrorMessage="*" ForeColor="Red" runat="server" />
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtQty" runat="server" Text='<% #Bind("Qty") %>' />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Qty on Hand">
<ItemTemplate>
<asp:Label ID="lblQOH" runat="server" Text='<% #Bind("QOH") %>' />
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField HeaderText="Description" DataField="ShortDesc" ReadOnly="true" />--%>

<asp:TemplateField>
<FooterTemplate>
<asp:Button Text="Add" runat="server" CommandName="add" />
</FooterTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Button Text="Complete and Ship" runat="server" OnClientClick="return confirm('Are you sure you want to submit and process this order?');" OnClick="btnSubmit_Click" ID="btnSubmit" Visible="false" />
</div>
</asp:Content>

Viewing all 5678 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>