Click here to Skip to main content
15,900,359 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Getting postback in update panel Pin
Member 387988123-Feb-09 0:11
Member 387988123-Feb-09 0:11 
GeneralRe: Getting postback in update panel Pin
Abhijit Jana23-Feb-09 0:16
professionalAbhijit Jana23-Feb-09 0:16 
GeneralRe: Getting postback in update panel Pin
Member 387988123-Feb-09 0:31
Member 387988123-Feb-09 0:31 
GeneralRe: Getting postback in update panel Pin
Abhijit Jana23-Feb-09 0:36
professionalAbhijit Jana23-Feb-09 0:36 
GeneralRe: Getting postback in update panel Pin
Member 387988123-Feb-09 0:54
Member 387988123-Feb-09 0:54 
QuestionHow to create links in gridview ? Pin
muhammadafsal22-Feb-09 23:22
muhammadafsal22-Feb-09 23:22 
AnswerRe: How to create links in gridview ? Pin
Anurag Gandhi22-Feb-09 23:28
professionalAnurag Gandhi22-Feb-09 23:28 
QuestionDetails view Insert buttion not working in Update panel Pin
Mr.Himansu22-Feb-09 23:19
Mr.Himansu22-Feb-09 23:19 
<asp:ScriptManager runat="server" ID="ScriptMangaer1">
</asp:ScriptManager>
<div id="MainBody" class="MainBody">
<table>
<tr>
<td>
<table>
<tr>
<td>
<asp:UpdatePanel ID="updtpnlDDL" runat="server">

<ContentTemplate>


<asp:DropDownList ID="ddlCategory" runat="server" AutoPostBack="True" >
</asp:DropDownList>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown1" runat="server"
Category="Category"
TargetControlID="ddlCategory"
PromptText="Category"
LoadingText="Please Wait..."
ServicePath="FindCategory.asmx" ServiceMethod="GetCategoryWithAll">
</ajaxToolkit:CascadingDropDown><br />

<asp:DropDownList ID="ddlSubCategory" runat="server" AutoPostBack="True">
</asp:DropDownList>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown2" runat="server"
Category="SubCategory"
TargetControlID="ddlSubCategory" ParentControlID="ddlCategory"
PromptText="Sub Category"
LoadingText="Please Wait..."
ServicePath="FindCategory.asmx" ServiceMethod="GetSubCategoryWithAll">
</ajaxToolkit:CascadingDropDown>
<asp:Button ID="btngo" runat="server" OnClick="btngo_Click" Text="Go" />
</ContentTemplate> </asp:UpdatePanel>
</td>
<td valign="top">
</td>

</tr>

</table>
</td>
<td>
</td>
</tr>

<tr>
<td>
<asp:UpdatePanel ID="UpdatePanelCat" runat="server" UpdateMode="Conditional">
<ContentTemplate>

<asp:DataList runat="server"
id="dlCategory"
CellPadding="0"
CellSpacing="0"
RepeatDirection="Horizontal"
RepeatColumns="3">
<HeaderTemplate>
<h3>
Category Details
</h3>

</HeaderTemplate>


<ItemTemplate>
<div class="CurrentNews">

<table>
<tr>
<td>
<b> <%#Eval("CatName")%> </b><br />(<%#Eval("CatDescription")%>)

</td>

</tr>
<tr>
<td colspan="1">
<div class="BorderRing">
<img src='../Handler.ashx?Size=S&ImageID=<%# Eval("ImageId") %>' alt='Thumbnail Photo of <%# Eval("ImageId") %>' />

</div>
</td>
</tr>


</table>
</div>
</ItemTemplate>
</asp:DataList>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanelSubCat" runat="server" UpdateMode="Conditional">
<ContentTemplate>

<asp:DataList runat="server"
id="dlSubCategory"
CellPadding="0"
CellSpacing="0"
RepeatDirection="Horizontal"
RepeatColumns="3">
<HeaderTemplate>
<h3>
SubCategory Details
</h3>


</HeaderTemplate>
<ItemTemplate>
<div class="CurrentNews">
<table>
<tr>
<td>
<b> <%#Eval("SubCatName")%> </b><br />(<%#Eval("SubCatDescription")%>)

</td>

</tr>
<tr>
<td colspan="1">
<div class="BorderRing">
<img src='../Handler.ashx?Size=S&ImageID=<%# Eval("ImageId") %>' alt='Thumbnail Photo of <%# Eval("ImageId") %>' />

</div>
</td>
</tr>

</table>
</div>
</ItemTemplate>
</asp:DataList>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td>
</td>
</tr>
</table>

<table>
<tr>
<td>
<asp:LinkButton ID="lnkCategory" runat="server">Add New Category</asp:LinkButton><br />
<asp:LinkButton ID="lnkSubCategory" runat="server">Add New Sub Category</asp:LinkButton>
</td>
</tr>

</table>



<ajaxToolkit:ModalPopupExtender ID="ModalPopUpforCategory"
runat="server"
BackgroundCssClass="modalBackground"
DropShadow="true"
PopupControlID="pnlCategory"
TargetControlID="lnkCategory"
CancelControlID="btnClose" >
</ajaxToolkit:ModalPopupExtender>
<asp:Panel id="pnlCategory" runat="server" style="display:none" cssclass="modalPopup">
<asp:UpdatePanel runat="server" ID="updatePanelCategory" UpdateMode="conditional">
<ContentTemplate>
<asp:DetailsView ID="dvCategory"
runat="server"
AutoGenerateRows="False"
AllowPaging="True"
DataKeyNames="CatCode"
CssClass="dvTextAlign">
<Fields>
<asp:TemplateField HeaderText="Category Code">
<EditItemTemplate>
<asp:TextBox ID="txtCatCode" runat="server" Text='<%# Bind("CatCode") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="txtCatCode" runat="server" ></asp:TextBox>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="lblCatCode" runat="server" Text='<%# Bind("CatCode") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Category Name">
<EditItemTemplate>
<asp:TextBox ID="txtCatName" runat="server" Text='<%# Bind("CatName") %>'></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Category Name is Necessary" ControlToValidate="txtCatName" Display="None"></asp:RequiredFieldValidator>
<ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="RequiredFieldValidator1" HighlightCssClass="ValidCheck" >
</ajaxToolkit:ValidatorCalloutExtender>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="txtCatName" runat="server" Text='<%# Bind("CatName") %>'></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Category Name is Necessary" ControlToValidate="txtCatName" Display="None"></asp:RequiredFieldValidator>
<ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="RequiredFieldValidator1" HighlightCssClass="ValidCheck" >
</ajaxToolkit:ValidatorCalloutExtender>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="lblCatName" runat="server" Text='<%# Bind("CatName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<custom:longtext DataField="CatDescription" HeaderText="Category Description" Height="100px" Width="250px" />
<asp:TemplateField HeaderText="Hot Category">
<EditItemTemplate>
<asp:DropDownList ID="ddlCategory" runat="server">
<asp:ListItem Selected="True" Value="N">Normal</asp:ListItem>
<asp:ListItem Value="H">Hot</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<InsertItemTemplate>
<asp:DropDownList ID="ddlCategory" runat="server">
<asp:ListItem Selected="True" Value="N">Normal</asp:ListItem>
<asp:ListItem Value="H">Hot</asp:ListItem>
</asp:DropDownList>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="lblHotCategory" runat="server" Text='<%# Bind("HotCategory") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Photo">
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0" class="photo-frame">
<tr>

</tr>
<tr>

<td><img src='../Handler.ashx?Size=S&ImageId=<%# Eval("ImageId") %>' class="photo_198" style="border:2px solid white;width:50px;" alt='Thumbnail of Photo Number <%# Eval("CatName") %>' /></td>

</tr>

</table>
</ItemTemplate>
<EditItemTemplate>
<asp:FileUpload ID="fUpPhoto" runat="server"/>
</EditItemTemplate>
<InsertItemTemplate>
<asp:FileUpload ID="fUpPhoto" runat="server"/>
</InsertItemTemplate>
</asp:TemplateField>

<asp:TemplateField HeaderText="">
<EditItemTemplate>
<asp:Label ID="lblError" runat="server" Text=""></asp:Label>
</EditItemTemplate>
<InsertItemTemplate>
<asp:Label ID="lblError" runat="server" Text=""></asp:Label>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="lblError" runat="server" Text=""></asp:Label>
</ItemTemplate>
</asp:TemplateField>

<asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowInsertButton="True" />
</Fields>
</asp:DetailsView>
</ContentTemplate>
</asp:UpdatePanel>
<div style="text-align: right; width: 100%; margin-top: 5px;">
<asp:Button ID="btnClose" runat="server" Text="Close" Width="50px" CausesValidation="False" />
</div>
</asp:Panel>
<ajaxToolkit:ModalPopupExtender ID="ModalPopupForSubCategory"
runat="server"
BackgroundCssClass="modalBackground"
DropShadow="true"
PopupControlID="pnlSubCategory"
TargetControlID="lnkSubCategory"
CancelControlID="btnClose" >
</ajaxToolkit:ModalPopupExtender>
<asp:Panel id="pnlSubCategory" runat="server" style="display:none" cssclass="modalPopup">
<asp:UpdatePanel runat="server" ID="updatePanelSubCategory" UpdateMode="conditional">
<ContentTemplate>
<asp:DetailsView ID="dvSubCategory"
runat="server"
AutoGenerateRows="False"
AllowPaging="True"
DataKeyNames="SubCatCode"
CssClass="dvTextAlign">
<Fields>
<asp:TemplateField>
<EditItemTemplate>
<asp:DropDownList ID="ddlCategory" runat="server">
</asp:DropDownList>
</EditItemTemplate>
<InsertItemTemplate>
<asp:DropDownList ID="ddlCategory" runat="server">
</asp:DropDownList>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="lblCategory" runat="server" Text='<%# Bind("CatName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="SubCategory Code">
<EditItemTemplate>
<asp:TextBox ID="txtSubCatCode" runat="server" Text='<%# Bind("SubCatCode") %>' ></asp:TextBox>&nbsp;
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="txtSubCatCode" runat="server" Text='<%# Bind("SubCatCode") %>' ></asp:TextBox>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="lblSubCatCode" runat="server" Text='<%# Bind("SubCatCode") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="SubCategory Name">
<EditItemTemplate>
<asp:TextBox ID="txtSubCatName" runat="server" Text='<%# Bind("SubCatName") %>'></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="SubCategory Name is Necessary" ControlToValidate="txtSubCatName" Display="None"></asp:RequiredFieldValidator>
<ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="RequiredFieldValidator1" HighlightCssClass="ValidCheck" >
</ajaxToolkit:ValidatorCalloutExtender>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="txtSubCatName" runat="server" Text='<%# Bind("SubCatName") %>'></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="SubCategory Name is Necessary" ControlToValidate="txtSubCatName" Display="None"></asp:RequiredFieldValidator>
<ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="RequiredFieldValidator1" HighlightCssClass="ValidCheck" >
</ajaxToolkit:ValidatorCalloutExtender>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="lblSubCatName" runat="server" Text='<%# Bind("SubCatName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<custom:longtext DataField="SubCatDescription" HeaderText="SubCategory Description" />
<asp:TemplateField HeaderText="Photo">
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0" class="photo-frame">

<tr>

<td><img src='../Handler.ashx?Size=S&ImageId=<%# Eval("ImageId") %>' class="photo_198" style="border:2px solid white;width:50px;" alt='Thumbnail of Photo Number <%# Eval("SubCatName") %>' /></td>

</tr>

</table>
</ItemTemplate>
<EditItemTemplate>
<asp:FileUpload ID="fUpPhoto" runat="server"/>
</EditItemTemplate>
<InsertItemTemplate>
<asp:FileUpload ID="fUpPhoto" runat="server"/>
</InsertItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<EditItemTemplate>
<asp:Label ID="lblError" runat="server" Text=""></asp:Label>
</EditItemTemplate>
<InsertItemTemplate>
<asp:Label ID="lblError" runat="server" Text=""></asp:Label>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="lblError" runat="server" Text=""></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowInsertButton="True" />
</Fields>
</asp:DetailsView>
</ContentTemplate>
</asp:UpdatePanel>
<div style="text-align: right; width: 100%; margin-top: 5px;">
<asp:Button ID="Button1" runat="server" Text="Close" Width="50px" CausesValidation="False" />
</div>
</asp:Panel>
</div>
AnswerRe: Details view Insert buttion not working in Update panel Pin
Mr.Himansu24-Feb-09 1:59
Mr.Himansu24-Feb-09 1:59 
QuestionProblem in opening an uploaded site developed on ASP.NET Pin
heyitsgaurav22-Feb-09 23:12
heyitsgaurav22-Feb-09 23:12 
AnswerRe: Problem in opening an uploaded site developed on ASP.NET Pin
Anurag Gandhi22-Feb-09 23:25
professionalAnurag Gandhi22-Feb-09 23:25 
GeneralRe: Problem in opening an uploaded site developed on ASP.NET Pin
heyitsgaurav23-Feb-09 0:28
heyitsgaurav23-Feb-09 0:28 
QuestionCreate mp3 output using sapi 5.1 in web applications(c#). Pin
vsmarimuthu22-Feb-09 23:04
vsmarimuthu22-Feb-09 23:04 
Questiondata tranfer in ASP.net(visual studio 2003,C#) Pin
Arpita2722-Feb-09 22:20
Arpita2722-Feb-09 22:20 
AnswerRe: data tranfer in ASP.net(visual studio 2003,C#) [modified] Pin
Greg Chelstowski22-Feb-09 22:38
Greg Chelstowski22-Feb-09 22:38 
GeneralRe: data tranfer in ASP.net(visual studio 2003,C#) Pin
Anurag Gandhi22-Feb-09 23:34
professionalAnurag Gandhi22-Feb-09 23:34 
GeneralRe: data tranfer in ASP.net(visual studio 2003,C#) Pin
Greg Chelstowski23-Feb-09 1:04
Greg Chelstowski23-Feb-09 1:04 
GeneralRe: data tranfer in ASP.net(visual studio 2003,C#) Pin
Anurag Gandhi23-Feb-09 1:11
professionalAnurag Gandhi23-Feb-09 1:11 
AnswerRe: data tranfer in ASP.net(visual studio 2003,C#) Pin
Sneha Bisht23-Feb-09 2:57
Sneha Bisht23-Feb-09 2:57 
AnswerRe: data tranfer in ASP.net(visual studio 2003,C#) Pin
Arpita2723-Feb-09 20:06
Arpita2723-Feb-09 20:06 
GeneralRe: data tranfer in ASP.net(visual studio 2003,C#) Pin
Greg Chelstowski23-Feb-09 21:25
Greg Chelstowski23-Feb-09 21:25 
QuestionHow to make a context menu to JQGrid ? Pin
Denver Thomas22-Feb-09 22:07
Denver Thomas22-Feb-09 22:07 
AnswerRe: How to make a context menu to JQGrid ? Pin
lobbychmd22-Feb-09 22:44
lobbychmd22-Feb-09 22:44 
QuestionCreating a ASP.NET web site in a team for the first time Pin
Clifweb22-Feb-09 21:56
Clifweb22-Feb-09 21:56 
AnswerRe: Creating a ASP.NET web site in a team for the first time Pin
Christian Graus22-Feb-09 22:06
protectorChristian Graus22-Feb-09 22:06 

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.