pass = Telerik.Security.UserManager.Default.MembershipProvider.ResetPassword(custObj.Username, "no");
i am updating user password through above code and i got this when i click on link which i recieve through email can you help me how can i handle this issue
(see
code) I am trying to change the background of the Panel when I click on
the CheckBox. I can't figure out the JavaScript to do it.
<
telerik:RadListView
ID
=
"RadListView1"
runat
=
"server"
AllowPaging
=
"True"
ItemPlaceholderID
=
"PlaceHolder1"
Skin
=
"listview_2"
EnableEmbeddedSkins
=
"false"
OnItemCreated
=
"RadListView1_ItemCreated"
DataKeyNames
=
"id,filenameextension,typeAbbr,title"
OnNeedDataSource
=
"RadListView1_NeedDataSource"
>
<
LayoutTemplate
>
<
div
class
=
"RadListView RadListViewFloated RadListView_Windows7"
>
<
telerik:RadDataPager
ID
=
"RadDataPager1"
runat
=
"server"
PageSize
=
"25"
PagedControlID
=
"RadListView1"
BorderWidth
=
"0"
OnFieldCreated
=
"RadDataPager1_FieldCreated"
CssClass
=
"dataPagerClass"
>
<
Fields
>
<
telerik:RadDataPagerButtonField
FieldType
=
"FirstPrev"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"Numeric"
PageButtonCount
=
"5"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"NextLast"
/>
<
telerik:RadDataPagerPageSizeField
PageSizeText
=
"Page size: "
/>
<
telerik:RadDataPagerGoToPageField
CurrentPageText
=
"Page: "
TotalPageText
=
"of"
SubmitButtonText
=
"Go"
TextBoxWidth
=
"15"
/>
<
telerik:RadDataPagerTemplatePageField
>
<
PagerTemplate
>
<
b
>Total Number of Assets Found:
<
asp:Label
runat
=
"server"
ID
=
"TotalItemsLabel"
Text="<%# Container.Owner.TotalRowCount%>" />
</
b
>
</
PagerTemplate
>
</
telerik:RadDataPagerTemplatePageField
>
</
Fields
>
</
telerik:RadDataPager
>
<
asp:PlaceHolder
ID
=
"PlaceHolder1"
runat
=
"server"
/>
</
div
>
</
LayoutTemplate
>
<
ItemTemplate
>
<
div
style
=
"float: left; width: 162px; height: 200px; background-color: White;"
>
<
asp:Panel
ID
=
"myThumb"
runat
=
"server"
CssClass
=
"myClass"
Style="border: 0; white-space: normal;
padding: 5px 2px 25px 2px; text-align: center; width: 156px; background-color: White;">
<
asp:HyperLink
ID
=
"HyperLink1"
runat
=
"server"
>
<
telerik:RadBinaryImage
ID
=
"RadBinaryImage1"
runat
=
"server"
AutoAdjustImageControlSize
=
"False"
CssClass
=
"myClass"
ImageUrl='<%# Eval("thumbUrl") %>' AlternateText="Click to view preview"
ToolTip="Click to view preview" Width="150px" Height="150px" />
</
asp:HyperLink
><
br
/>
<
asp:CheckBox
ID
=
"ChkImage"
runat
=
"server"
Style
=
"float: left; padding-top: 5px"
/><
small
><
asp:HyperLink
ID
=
"lnkAsset1"
runat
=
"server"
Visible
=
"false"
Style
=
"float: left; padding-top: 5px"
>
</
asp:HyperLink
><
asp:HyperLink
ID
=
"lnkAsset2"
runat
=
"server"
Style
=
"float: left;"
>
</
asp:HyperLink
><
asp:HyperLink
ID
=
"lnkAsset3"
runat
=
"server"
Style="float: left;
padding-left: 20px"></
asp:HyperLink
></
small
><
br
/>
<
asp:HiddenField
ID
=
"hiddenAssetId"
Value='<%# Eval("id") %>' runat="server" />
</
asp:Panel
>
</
div
>
</
ItemTemplate
>
<
EmptyDataTemplate
>
No Assets Found
</
EmptyDataTemplate
>
</
telerik:RadListView
>
I have a Radscheduler in a control and I'm using a Radwindow to replace the Delete confirmation. I'm using a window because i needed to save a Note for the reason of deleting. The only problem im having is that i need it to cause a postback on the scheduler to reflect that the Appointment was deleted. I was trying to do it with javascript, here is the code i was using.
On the window i have the following:
on the aspx
function Close() {
var oWindow = GetRadWindow();
oWindow.Close();
//oWindow.BrowserWindow.refreshData(); RadScheduler1
oWindow.BrowserWindow.__doPostBack('ucScheduler1$RadScheduler1', '');
}
on the .cs
protected void btnOK_Click(object sender, EventArgs e)
{
EAppointment.DeleteAppointment(int.Parse(Request.QueryString["AppID"].ToString()), txtRazon.Text.ToString());
string script = "<script>Close()</" + "script>";
ClientScript.RegisterStartupScript(this.GetType(), "Close", script);
}
<
telerik:RadXmlHttpPanel OnServiceRequest="RadXmlHttpPanel1_ServiceRequest" OnClientResponseEnded ="CallSuccess" OnClientResponseError="CallFailed" runat="server" ID="RadXmlHttpPanel1" EnableClientScriptEvaluation="true">
<asp:HiddenField ID="hfdShowNotification" runat="server" EnableViewState="false" />
</
telerik:RadXmlHttpPanel>.
The page in which this usrcontrol is being used has RadAjaxPane defined as below:
<radA:RadAjaxPanel ID="pnlajax" runat="server">
<asp:Button ID="btnAjax" runat="server" Text="Ajax" OnClick="btnAjax_Click" />
</radA:RadAjaxPanel>
RadXmlHttpPanel works properly if there is no any ajax request but it throws invalid viewstate error when there is ajax request before
RadXmlHttpPanel 's callback request. this happens only for first time after that it works properly.
following steps raised this problem:
1) made ajax request (after loading page) by clicking on button defined in RadAjaxpane.
2) Clicked on one button which call set_value() method of RadXmlHttpPanel panel.
Error details:
Invalid viewstate.
Client IP: 100.0.0.1
Port: 3001
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; CWADS32; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E)
ViewState: /wEWddCALx5bYxApSGk6MEAtXckYssscIAoznisYGAvn22fgLAtHShNsPAuKx89IBAtySgKME+dddoas2of+LhBH8VxAspilwM51wms=
Referer:
Its very urgent for me to resolve this problem, so please look in this as soon as possible.
Thanks
RadListBox Transfer Items from Source to Destination is getting fired even when I click a button in the Page. How Do I stop That?
Steps to Reproduce the Issue – Load the Page. Click the button. See the Item counts for the List Boxes inside the AJAX Update Panel. It will show correctly – 7 (source) and 0 (target) respectively. Move one item from Source to Target RadListBox. Click the button again – it shows 6 (source) and 1 (target) for the first time. Then click the button again – it shows 5 (source) and 2 (target) ..then click button.. it shows 4 (source) and 3 (target). Nothing is changing in the User Interface.
I believe that Transfer event from source to target is getting fired even when I click the button. How do I stop the Transfer event when the button is clicked?
In my page, I have to refresh the AJAX Update panel but I do not want the items in the RadListBox to get changed at the same time.
ASPX Page -
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TestRadListBox.WebForm1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div>
<table>
<tr>
<th colspan="2">Move 1 Item from Left to Right and then click the button below and see the Item Counts</th>
</tr>
<tr>
<td>
<telerik:RadListBox ID="SourceRadListBox" runat="server" Height="100px" Width="200px"
AllowTransfer="true" TransferToID="TargetRadListBox">
</telerik:RadListBox>
</td>
<td>
<telerik:RadListBox runat="server" ID="TargetRadListBox" Height="100px" Width="175px"
AllowReorder="true" />
</td>
</tr>
</table>
</div>
<br/>
<div>
Time OUTSIDE Update Panel : <asp:Label ID="timeOutsideLabel" runat="server"/>
</div>
<br/>
<div align="left">
<asp:Button ID="addRuleButton" runat="server" Text="Click To Refresh The Time Below Inside AJAX Update Panel"
onclick="addRuleButton_Click" />
</div>
<br/>
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table border = "2">
<tr><th>AJAX Update Panel</th></tr>
<tr><td>Time INSIDE Update Panel : <asp:Label ID="timeInsideLabel" runat="server"/></td></tr>
<tr><td>Item Count in Source RadListBox : <asp:Label ID="srcCount" runat="server"/></td></tr>
<tr><td>Item Count in Target RadListBox : <asp:Label ID="tarCount" runat="server"/></td></tr>
</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="addRuleButton" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
C# Code Behind -
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
namespace TestRadListBox
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
List<string> week = new List<string> { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
SourceRadListBox.DataSource = week;
SourceRadListBox.DataBind();
string timenow = DateTime.Now.ToLongTimeString();
timeInsideLabel.Text = timenow;
timeOutsideLabel.Text = timenow;
}
}
protected void addRuleButton_Click(object sender, EventArgs e)
{
timeInsideLabel.Text = DateTime.Now.ToLongTimeString();
srcCount.Text = SourceRadListBox.Items.Count.ToString();
tarCount.Text = TargetRadListBox.Items.Count.ToString();
}
}
}
<
ItemTemplate
>
<
div
onclick
=
"StopPropagation(event)"
>
<
asp:CheckBox
ID
=
"CheckBox1"
runat
=
"server"
Checked
=
"True"
AutoPostBack
=
"False"
OnClick
=
"checkboxClick(this)"
Text = '<%# DataBinder.Eval(Container, "Text") %>' />
</
div
>
</
ItemTemplate
>