Click here to Skip to main content
15,897,704 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Panel Positions Pin
Abhishek Sur23-Jul-09 21:28
professionalAbhishek Sur23-Jul-09 21:28 
GeneralRe: Panel Positions Pin
sachees12323-Jul-09 23:06
sachees12323-Jul-09 23:06 
GeneralRe: Panel Positions Pin
Abhishek Sur26-Jul-09 21:42
professionalAbhishek Sur26-Jul-09 21:42 
QuestionExcel like interface in asp.net page? Pin
Tridip Bhattacharjee23-Jul-09 19:35
professionalTridip Bhattacharjee23-Jul-09 19:35 
AnswerRe: Excel like interface in asp.net page? Pin
Abhijit Jana23-Jul-09 19:39
professionalAbhijit Jana23-Jul-09 19:39 
AnswerRe: Excel like interface in asp.net page? Pin
Mike Ellison24-Jul-09 13:20
Mike Ellison24-Jul-09 13:20 
GeneralRe: Excel like interface in asp.net page? Pin
Tridip Bhattacharjee27-Jul-09 19:48
professionalTridip Bhattacharjee27-Jul-09 19:48 
Questionproblem with auto complete and slider in modalpopup control [modified] Pin
ademsandeepreddy23-Jul-09 19:21
ademsandeepreddy23-Jul-09 19:21 
<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Visitor.aspx.cs" Inherits="SMS.Visitor" Title="VisitorForm" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link type="text/css" rel="Stylesheet" href="_assets1/css/panel.css" />
<link type="text/css" rel="Stylesheet" href="_assets1/css/pager.css" />
<link type="text/css" rel="Stylesheet" href="_assets1/css/grid.css" />
<link type="text/css" rel="Stylesheet" href="_assets1/css/filter.css" />
<style type="text/css">
#demo
{
font-size: small;
}
.panel .header .content H2
{
font-size: 12pt;
font-weight: bold;
color: #fff;
padding: 12px 0px 0px 8px;
margin: 0;
float: left;
}
</style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div>

<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>

<div id="processMessage" style="display: none">
<img alt="Loading" src="images/loading.gif" />
content loading...</div>
</ProgressTemplate>
</asp:UpdateProgress>
</div>

<script type="text/javascript">
function pageLoad(sender, args) {
var autoComplete = $find('autoCompleteTotal');
autoComplete.add_populating(function() {
// use the filter as the context key
autoComplete.set_contextKey($get('<%= this.ddlFilterTotal.ClientID %>').value);
});
autoComplete.add_itemSelected(function() {
// force the panel to refresh
__doPostBack('<%= this.updPanelTotal.ClientID %>', '');
});
}
</script>

<asp:UpdatePanel ID="updPanelTotal" runat="server">
<ContentTemplate>
<asp:ObjectDataSource ID="odsTotalStudents" runat="server" SelectMethod="Select"
TypeName="SMS.Visitor" OnSelecting="Selecting">
<SelectParameters>
<asp:Parameter Name="propertyName" Type="String" />
<asp:Parameter Name="propertyValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>

<asp:Panel ID="Panel1" runat="server">
<table width="100%">
<tr>
<td>
Name
</td>
<td>
<asp:TextBox ID="txt_VisitorName" runat="server" MaxLength="50"></asp:TextBox>
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txt_VisitorName"
FilterType="Custom,UppercaseLetters,LowercaseLetters" Enabled="True">
</cc1:FilteredTextBoxExtender>
<asp:RequiredFieldValidator ID="rfv_ConsultedDate" runat="server"
ControlToValidate="txt_VisitorName" Display="None"
ErrorMessage="Enter visitor name" ToolTip="Please enter date"
SetFocusOnError="True"></asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="vce_rfv_ConsultedDate" TargetControlID="rfv_ConsultedDate" HighlightCssClass="validatorCalloutHighlight" runat="server">
</cc1:ValidatorCalloutExtender>

</td>
</tr>
<tr>
<td>
Whoom to meet
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" MaxLength="50"></asp:TextBox>
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="TextBox1"
FilterType="Custom,UppercaseLetters,LowercaseLetters" Enabled="True">
</cc1:FilteredTextBoxExtender>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" Display="None"
ErrorMessage="Enter whom to meet" ToolTip="Please enter date"
SetFocusOnError="True"></asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" TargetControlID="RequiredFieldValidator1" HighlightCssClass="validatorCalloutHighlight" runat="server">
</cc1:ValidatorCalloutExtender>
</td>
</tr>
<tr>
<td>
Room no
</td>
<td>
<asp:TextBox ID="txt_RoomNo" runat="server" MaxLength="50"></asp:TextBox>&nbsp;
<asp:Button ID="btn_Search" runat="server" Text="Search"
onclick="btn_Search_Click" CausesValidation="False" />
</td>
</tr>
<tr>
<td>
Vehicle no
</td>
<td>
<asp:TextBox ID="txt_VehicalNo" runat="server" MaxLength="9"></asp:TextBox>
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="TextBox1"
FilterType="Numbers,Custom,UppercaseLetters,LowercaseLetters" Enabled="True"/>
</td>
</tr>
<tr>
<td>
In-time
</td>
<td>
<asp:TextBox ID="txt_InTime" runat="server" MaxLength="8"></asp:TextBox>
<cc1:MaskedEditExtender ID="txtSecStart_MaskedEditExtender" runat="server" TargetControlID="txt_InTime"
MaskType="Time" AcceptAMPM="true" Mask="99:99" MessageValidatorTip="true">
</cc1:MaskedEditExtender>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="TextBox1" Display="None"
ErrorMessage="Enter visitor name" ToolTip="Please valid date"
SetFocusOnError="True"></asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" TargetControlID="RequiredFieldValidator2" HighlightCssClass="validatorCalloutHighlight" runat="server">
</cc1:ValidatorCalloutExtender>

</td>
</tr>
<tr valign="top">
<td>
Purpose
</td>
<td >
<asp:TextBox ID="txt_Purpose" runat="server" Height="130px"
TextMode="MultiLine" Width="300px"></asp:TextBox>
</td>
</tr>

<tr>
<td align="right">
&nbsp;
</td>
<td align="left">
<asp:Button ID="btnSubmit" runat="server" Text="Submit"
onclick="btnSubmit_Click" />
&nbsp;&nbsp;
<asp:Button ID="btnCancel" runat="server" Text="Cancel"
CausesValidation="False" />
<asp:Button ID="Button1" runat="server" style="display:none" Text="Button" />
<asp:Button ID="Button2" runat="server" style="display:none" Text="Button" />
</td>
</tr>
</table>

</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="Button1"
PopupControlID="Panel2" CancelControlID="Button2" BackgroundCssClass="modalBackground"
DropShadow="true" BehaviorID="mdl">
</cc1:ModalPopupExtender>
<asp:Panel ID="Panel2" runat="server" Style="display: none; background-color: White;
border-width: 2px; border-color: Black; border-style: solid; padding: 20px;">


<table width="100%">
<tr>
<td>

</td>
<td align="right">
<asp:LinkButton ID="LinkButton1" runat="server">Close</asp:LinkButton>
</td>
</tr>
</table>
<div id="dlg" class="panel" style="width: 436px">
<div class="header" style="cursor: default">
<div class="outer">
<div class="inner">
<div class="content">
<h2>
</h2>
<div class="filter">
<asp:DropDownList ID="ddlFilterTotal" runat="server">
<asp:ListItem Text="First Name" Value="firstname" />
<asp:ListItem Text="Last Name" Value="lastname" />
<asp:ListItem Text="Room No" Value="class_section" />
</asp:DropDownList>
<asp:TextBox ID="txtFilter" runat="server" autocomplete="off" OnTextChanged="FilterChanged" />
<cc1:AutoCompleteExtender ID="txtFilter_AutoCompleteExtender" runat="server" DelimiterCharacters=""
Enabled="True" ServicePath="" TargetControlID="txtFilter" ServiceMethod="GetCompletionList"
UseContextKey="true" ContextKey="test" MinimumPrefixLength="1" BehaviorID="autoCompleteTotal"
CompletionListCssClass="autocomplete_list" CompletionListItemCssClass="autocomplete_listItem"
CompletionListHighlightedItemCssClass="autocomplete_highlighted_listitem">
</cc1:AutoCompleteExtender>
<asp:ImageButton ID="btnClear" runat="server" AlternateText="Remove Filter" ImageUrl="~/images/clear.gif"
OnClick="ClearFilter" Height="16px" Width="16px" />
</div>
</div>
</div>
</div>
</div>
<div class="body">
<div class="outer">
<div class="inner">
<div class="content">
<asp:ListView ID="lvCustomers" runat="server" class="grid" DataSourceID="odsTotalStudents"
onitemcommand="lvCustomers_ItemCommand">
<LayoutTemplate>
<table id="customers" runat="server" cellspacing="0" border="0">
<tr>
<th>
<asp:LinkButton ID="btnSortLastName" runat="server" Text="First name" CommandName="Sort"
CommandArgument="lastname" />
</th>
<th>
<asp:LinkButton ID="btnSortFirstName" runat="server" Text="Last name" CommandName="Sort"
CommandArgument="lastname" />
</th>
<th>
<asp:LinkButton ID="btnBlockName" runat="server" Text="Block" CommandName="Sort"
CommandArgument="Block name" />
</th>
<th>
<asp:LinkButton ID="LinkButton2" runat="server" Text="Roomno" CommandName="Sort"
CommandArgument="Room no" />
</th>
<th>

</th>
</tr>
<tr id="itemPlaceholder" runat="server" />
<tr class="pager">
<td colspan="6">
<div class="container">
<asp:DataPager ID="pager" runat="server" PageSize="5">
<Fields>
<asp:TemplatePagerField OnPagerCommand="PagerCommand">
<PagerTemplate>
<div class="command">
<asp:ImageButton ID="btnFirst" runat="server" CommandName="First" ImageUrl="~/images/first.gif"
AlternateText="First Page" ToolTip="First Page" />
<asp:ImageButton ID="btnPrevious" runat="server" CommandName="Previous" ImageUrl="~/images/prev.gif"
AlternateText="Previous Page" ToolTip="Previous Page" />
</div>
<div class="command">
<asp:TextBox ID="txtSlider" runat="server" Text='<%#
Container.TotalRowCount > 0
? Math.Ceiling(((double)(Container.StartRowIndex + Container.MaximumRows) / Container.MaximumRows))
: 0
%>' AutoPostBack="true" OnTextChanged="CurrentPageChanged" Style="visibility: hidden" />
<cc1:SliderExtender ID="slider" BehaviorID="slider" runat="server" TargetControlID="txtSlider"
Orientation="Horizontal" Minimum="1" Maximum='<%# Math.Ceiling((double)Container.TotalRowCount / Container.MaximumRows) %>'
TooltipText='<%# "Page {0} of " + Math.Ceiling ((double)Container.TotalRowCount / Container.MaximumRows).ToString() + " (" + Container.TotalRowCount + " items)" %>' />
</div>
<div class="command">
<asp:ImageButton ID="btnNext" runat="server" CommandName="Next" ImageUrl="~/images/next.gif"
AlternateText="Next Page" ToolTip="Next Page" />
<asp:ImageButton ID="btnLast" runat="server" CommandName="Last" ImageUrl="~/images/last.gif"
AlternateText="Last Page" ToolTip="Last Page" />
</div>
<br />
<div class="info">
Page <b>
<%# Container.TotalRowCount > 0 ? Math.Ceiling(((double)(Container.StartRowIndex + Container.MaximumRows) / Container.MaximumRows)) : 0 %>
</b>of <b>
<%# Math.Ceiling((double)Container.TotalRowCount / Container.MaximumRows)%>
</b>(<%# Container.TotalRowCount %>
items)
</div>
</PagerTemplate>
</asp:TemplatePagerField>
</Fields>
</asp:DataPager>
</div>
</td>
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>

<tr id="row" runat="server" class='<%# Container.DataItemIndex % 2 == 0 ? "row" : "altrow" %>'>
<td>

<asp:Label ID="lbl_FirstName" runat="server" Text='<%# Eval("firstName")%>'></asp:Label>
</td>
<td>
<asp:Label ID="lbl_LastName" runat="server" Text='<%# Eval("lastName")%>'></asp:Label>
</td>
<td>
<asp:Label ID="lbl_BlockName" runat="server" Text='<%# Eval("BlockName")%>'></asp:Label>
</td>
<td>
<asp:Label ID="Label1" runat="server" Text='<%#Eval("RoomName")%>'></asp:Label>
</td>
<td>
<asp:LinkButton ID="lbtn_Select" runat="server" CommandName="Select" CommandArgument='<%# Container.DataItemIndex+1%>'>Select</asp:LinkButton>
</td>
</tr>
</ItemTemplate>
</asp:ListView>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="outer">
<div class="inner">
<div class="content">
</div>
</div>
</div>
</div>
</div>


</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>


when the auto complete is out of modalpopup it wiorks fne but when i put in modalpopup its not working.

and the slider for the listbox also not working when it is out of modalpopup its working can any body trace the error when it is?i am new to dotnet and thanks in advance

hi

modified on Friday, July 24, 2009 2:15 AM

AnswerRe: problem with auto complete and slider in modalpopup control Pin
Abhijit Jana23-Jul-09 19:40
professionalAbhijit Jana23-Jul-09 19:40 
QuestionProble with sending email in asp.net 1.1 Pin
narithchap23-Jul-09 18:18
narithchap23-Jul-09 18:18 
AnswerRe: Proble with sending email in asp.net 1.1 Pin
Christian Graus23-Jul-09 19:31
protectorChristian Graus23-Jul-09 19:31 
GeneralHelp on people posting comments on my website [Moved] Pin
T. Cody23-Jul-09 14:59
T. Cody23-Jul-09 14:59 
GeneralRe: Help on people posting comments on my website Pin
Richard Andrew x6423-Jul-09 15:06
professionalRichard Andrew x6423-Jul-09 15:06 
GeneralRe: Help on people posting comments on my website Pin
T. Cody23-Jul-09 15:09
T. Cody23-Jul-09 15:09 
GeneralRe: Help on people posting comments on my website Pin
Richard Andrew x6423-Jul-09 15:11
professionalRichard Andrew x6423-Jul-09 15:11 
GeneralRe: Help on people posting comments on my website Pin
CaptainSeeSharp23-Jul-09 15:40
CaptainSeeSharp23-Jul-09 15:40 
Questionurgent help needed asp.net C# code error [modified] Pin
solo_gaurav23-Jul-09 10:20
solo_gaurav23-Jul-09 10:20 
AnswerRe: urgent help needed asp.net C# code error Pin
Abhijit Jana23-Jul-09 10:22
professionalAbhijit Jana23-Jul-09 10:22 
AnswerRe: urgent help needed asp.net C# code error Pin
solo_gaurav23-Jul-09 10:53
solo_gaurav23-Jul-09 10:53 
GeneralRe: urgent help needed asp.net C# code error Pin
Abhijit Jana23-Jul-09 10:57
professionalAbhijit Jana23-Jul-09 10:57 
GeneralRe: urgent help needed asp.net C# code error Pin
solo_gaurav23-Jul-09 11:05
solo_gaurav23-Jul-09 11:05 
GeneralRe: urgent help needed asp.net C# code error Pin
Abhijit Jana23-Jul-09 11:26
professionalAbhijit Jana23-Jul-09 11:26 
GeneralRe: urgent help needed asp.net C# code error Pin
PDTUM23-Jul-09 11:36
PDTUM23-Jul-09 11:36 
AnswerRe: urgent help needed asp.net C# code error [modified] Pin
Abhijit Jana23-Jul-09 11:09
professionalAbhijit Jana23-Jul-09 11:09 
GeneralRe: urgent help needed asp.net C# code error Pin
solo_gaurav23-Jul-09 11:15
solo_gaurav23-Jul-09 11:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.