Click here to Skip to main content
15,891,607 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionwhat is the purpose of cookies in ASP.net Pin
Muhammad Tufail 197929-Jun-09 21:25
Muhammad Tufail 197929-Jun-09 21:25 
AnswerRe: what is the purpose of cookies in ASP.net Pin
Abhijit Jana29-Jun-09 21:40
professionalAbhijit Jana29-Jun-09 21:40 
GeneralRe: what is the purpose of cookies in ASP.net Pin
javedk0929-Jun-09 23:12
javedk0929-Jun-09 23:12 
GeneralRe: what is the purpose of cookies in ASP.net Pin
J4amieC29-Jun-09 23:20
J4amieC29-Jun-09 23:20 
AnswerRe: what is the purpose of cookies in ASP.net Pin
himanshu256129-Jun-09 21:41
himanshu256129-Jun-09 21:41 
AnswerRe: what is the purpose of cookies in ASP.net Pin
Manas Bhardwaj29-Jun-09 21:57
professionalManas Bhardwaj29-Jun-09 21:57 
GeneralRe: what is the purpose of cookies in ASP.net Pin
J4amieC29-Jun-09 23:21
J4amieC29-Jun-09 23:21 
QuestionAjaxControlToolkit.AnimationExtender Pin
Mr.Himansu29-Jun-09 20:51
Mr.Himansu29-Jun-09 20:51 
Rose | [Rose] I am trying to use an AnimationExtender to send blurb message in a details View. But failed to re enable the blurb button. Any type of help is appreciated Here is my code

Protected Sub dlSearch_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles dlSearch.ItemDataBound
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
Dim itm As DataListItem = e.Item

Dim ani As AjaxControlToolkit.AnimationExtender = CType(itm.FindControl("OpenAnimation"), AjaxControlToolkit.AnimationExtender)
ani.TargetControlID = "btnInfo"
'ani.OnClick.Children(0).Properties("AnimationTarget") = ani.FindControl("btnInfo").ClientID
Dim str22 As String = ani.OnClick.Children(0).Properties("AnimationTarget")
ani.OnClick.Children(1).Properties("Script") = "Cover($get('" + ani.FindControl("btnInfo").ClientID + "'), $get('flyout'));"


Dim anic As AjaxControlToolkit.AnimationExtender = CType(itm.FindControl("CloseAnimation"), AjaxControlToolkit.AnimationExtender)
anic.TargetControlID = "btnClose"
Dim str As String = anic.OnClick.Children(7).Properties("AnimationTarget")



End If
End Sub
-----------------------------------------------------------
<asp:DataList ID="dlSearch" runat="server" DataKeyField="ProfileId">
<HeaderTemplate>
<asp:CheckBox ID="checkMain" runat="server" Text="Check All" onclick="checkunchkall(this);" />
<%-- <input id="checkMain" type="checkbox" runat="server" Text="Check All" onclick="checkunchkall(this);" />--%>

</HeaderTemplate>
<ItemTemplate>
<table>
<tr>
<td Width="130">
<%-- <input id="chkAll" type="checkbox" Text="Select this Profile" runat="server" />--%>
<asp:CheckBox ID="chkAll" runat="server" Text="Select this Profile" />

</td>
<td align="right" colspan="2">
<asp:HyperLink ID="HyperLink1" Text="View Similar Profile" runat="server"></asp:HyperLink>
<asp:Button ID="btnInfo" runat="server" OnClientClick="return false;" Text="Send Blurb"/>
<ajaxToolkit:AnimationExtender id="OpenAnimation" runat="server" TargetControlID="btnInfo">
<Animations>
<OnClick>
<Sequence>
<%-- Disable the button so it can't be clicked again --%>
<EnableAction AnimationTarget="btnInfo" Enabled="false" />

<%-- Position the wire frame on top of the button and show it --%>
<ScriptAction Script="" />
<StyleAction AnimationTarget="flyout" Attribute="display" Value="block"/>

<%-- Move the wire frame from the button's bounds to the info panel's bounds --%>
<Parallel AnimationTarget="flyout" Duration=".3" Fps="25">
<Move Horizontal="-280" Vertical="10" />
<Resize Width="260" Height="100" />
<Color PropertyKey="backgroundColor" StartValue="#AAAAAA" EndValue="#FFFFFF" />
</Parallel>

<%-- Move the info panel on top of the wire frame, fade it in, and hide the frame --%>
<ScriptAction Script="Cover($get('flyout'), $get('info'), true);" />
<StyleAction AnimationTarget="info" Attribute="display" Value="block"/>
<FadeIn AnimationTarget="info" Duration=".2"/>
<StyleAction AnimationTarget="flyout" Attribute="display" Value="none"/>

<%-- Flash the text/border red and fade in the "close" button --%>
<Parallel AnimationTarget="info" Duration=".5">
<Color PropertyKey="color" StartValue="#666666" EndValue="#FF0000" />
<Color PropertyKey="borderColor" StartValue="#666666" EndValue="#FF0000" />
</Parallel>
<Parallel AnimationTarget="info" Duration=".5">
<Color PropertyKey="color" StartValue="#FF0000" EndValue="#666666" />
<Color PropertyKey="borderColor" StartValue="#FF0000" EndValue="#666666" />
<FadeIn AnimationTarget="btnCloseParent" MaximumOpacity=".9" />
</Parallel>
</Sequence>
</OnClick>
</Animations>
</ajaxToolkit:AnimationExtender>
<ajaxToolkit:AnimationExtender id="CloseAnimation" runat="server" TargetControlID="btnClose">
<Animations>
<OnClick>
<Sequence AnimationTarget="info">
<%-- Shrink the info panel out of view --%>
<StyleAction Attribute="overflow" Value="hidden"/>
<Parallel Duration=".3" Fps="15">
<Scale ScaleFactor="0.05" Center="true" ScaleFont="true" FontUnit="px" />
<FadeOut />
</Parallel>

<%-- Reset the sample so it can be played again --%>
<StyleAction Attribute="display" Value="none"/>
<StyleAction Attribute="width" Value="250px"/>
<StyleAction Attribute="height" Value=""/>
<StyleAction Attribute="fontSize" Value="12px"/>
<OpacityAction AnimationTarget="btnCloseParent" Opacity="0" />

<%-- Enable the button so it can be played again
<Condition ConditionScript="$get('btnInfo') != null"></Condition>--%>

<EnableAction AnimationTarget="btnInfo" Enabled="true" />
</Sequence>
</OnClick>
<OnMouseOver>
<Color Duration=".2" PropertyKey="color" StartValue="#FFFFFF" EndValue="#FF0000" />
</OnMouseOver>
<OnMouseOut>
<Color Duration=".2" PropertyKey="color" StartValue="#FF0000" EndValue="#FFFFFF" />
</OnMouseOut>
</Animations>
</ajaxToolkit:AnimationExtender>
<!-- "Wire frame" div used to transition from the button to the info panel -->
<div id="flyout" style="display: none; overflow: hidden; z-index: 2; background-color: #FFFFFF; border: solid 1px #D0D0D0;"></div>

<!-- Info panel to be displayed as a flyout when the button is clicked -->
<div id="info" style="display: none; width: 250px; z-index: 2; opacity: 0; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0); font-size: 12px; border: solid 1px #CCCCCC; background-color:#ffffff ; padding: 5px;">
<div id="btnCloseParent" style="float: right; opacity: 0; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);">
<asp:LinkButton id="btnClose" runat="server" OnClientClick="return false;" Text="X" ToolTip="Close"
Style="background-color: #666666; color: #FFFFFF; text-align: center; font-weight: bold; text-decoration: none; border: outset thin #FFFFFF; padding: 5px;" />
</div>
<div >
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:Table runat="Server" ID="tblblurb">
<asp:TableRow>
<asp:TableCell>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</asp:TableCell>
<asp:TableCell>
<asp:Button ID="Button1" runat="server" Text="Button" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>


</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
</Triggers>
</asp:UpdatePanel>



</div>
</div>
</td>
</tr>
<tr>
<td >
<asp:UpdatePanel ID="UpdatePanel1" runat="server">

<ContentTemplate>
<asp:GridView ID="gvImages" runat="server" AllowPaging="True" onclick="" AutoGenerateColumns="False" OnPageIndexChanging="gvImages_PageIndexChanging" PageSize="1" GridLines="None" ShowHeader="False">
<Columns>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>

<img src='../Handler.ashx?Size=S&ImageID=<%# Eval("ImageId") %>' style="cursor:hand"
onclick="javascript:PopOpen('<%#Eval("ImageId")%>');" alt='Thumbnail Photo of <%# Eval("ImageId") %>' />
</ItemTemplate>

</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>

</asp:UpdatePanel>


</td>
<td style="text-align:justify; vertical-align:top">
<%-- tblProfile.ProfileName, tblProfile.ProfileId, tblProfile.Age, tblProfile.Gender, tblProfile.MaritalStatus, tblHeight.HeightInch, tblHeight.HeightCm,
tblWeight.WeightKg, tblWeight.WeightLbs, tblEducationCategory.EducationName, tblProfile.StateName, tblCaste.CasteName,
tblReligion.ReligionName
--%>



<asp:Table runat="server" id="tblProfileDetails" width="400" >
<asp:TableRow ID="TableRow1" runat="server" >

<asp:TableCell ID="TableCell2" ColumnSpan="3" runat="server"><h5> <%# Eval("ProfileName") %> (<%# Eval("Age") %>yrs) </h5></asp:TableCell>

</asp:TableRow>



<asp:TableRow ID="TableRow2" runat="server" >

<asp:TableCell ID="TableCell4" runat="server"><%# Eval("MaritalStatus") %> </t> <%# Eval("Gender") %></asp:TableCell>

<asp:TableCell ID="TableCell18" runat="server"><%# Eval("EducationName") %> </t> <%# Eval("StateName") %></asp:TableCell>

<asp:TableCell ID="TableCell20" runat="server"><%# Eval("CasteName") %></asp:TableCell>




</asp:TableRow>

<asp:TableRow ID="TableRow4" runat="server" >
<asp:TableCell ID="TableCell14" runat="server"><%# Eval("WeightKg") %>kg/<%# Eval("WeightLbs") %>lbs</asp:TableCell>
<asp:TableCell ID="TableCell10" runat="server"><%# Eval("HeightInch") %>/<%# Eval("HeightCm") %>cm</asp:TableCell>


</asp:TableRow>
</asp:Table>





</td>


</tr>
</table>
</ItemTemplate>


</asp:DataList>
QuestionDebugging ASP.NET . C# Pin
ptr_Electron29-Jun-09 20:17
ptr_Electron29-Jun-09 20:17 
AnswerRe: Debugging ASP.NET . C# Pin
Abhijit Jana29-Jun-09 20:43
professionalAbhijit Jana29-Jun-09 20:43 
GeneralRe: Debugging ASP.NET . C# Pin
ptr_Electron29-Jun-09 21:40
ptr_Electron29-Jun-09 21:40 
GeneralRe: Debugging ASP.NET . C# Pin
Abhijit Jana29-Jun-09 21:53
professionalAbhijit Jana29-Jun-09 21:53 
GeneralRe: Debugging ASP.NET . C# Pin
ptr_Electron29-Jun-09 21:59
ptr_Electron29-Jun-09 21:59 
AnswerRe: Debugging ASP.NET . C# Pin
J4amieC29-Jun-09 23:22
J4amieC29-Jun-09 23:22 
GeneralRe: Debugging ASP.NET . C# Pin
ptr_Electron30-Jun-09 0:42
ptr_Electron30-Jun-09 0:42 
GeneralRe: Debugging ASP.NET . C# Pin
J4amieC30-Jun-09 1:08
J4amieC30-Jun-09 1:08 
GeneralRe: Debugging ASP.NET . C# [modified] Pin
ptr_Electron30-Jun-09 2:19
ptr_Electron30-Jun-09 2:19 
GeneralRe: Debugging ASP.NET . C# Pin
ptr_Electron1-Jul-09 18:45
ptr_Electron1-Jul-09 18:45 
QuestionRadio Button problem Pin
krishnaveer29-Jun-09 20:00
krishnaveer29-Jun-09 20:00 
AnswerRe: Radio Button problem Pin
r a m e s h29-Jun-09 20:26
r a m e s h29-Jun-09 20:26 
GeneralRe: Radio Button problem Pin
krishnaveer29-Jun-09 21:09
krishnaveer29-Jun-09 21:09 
QuestionASP.NET runtime error Pin
dev sheoran29-Jun-09 19:56
dev sheoran29-Jun-09 19:56 
AnswerRe: ASP.NET runtime error Pin
r a m e s h29-Jun-09 20:04
r a m e s h29-Jun-09 20:04 
GeneralRe: ASP.NET runtime error Pin
dev sheoran29-Jun-09 20:39
dev sheoran29-Jun-09 20:39 
AnswerRe: ASP.NET runtime error Pin
Abhijit Jana29-Jun-09 20:52
professionalAbhijit Jana29-Jun-09 20:52 

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.