Tag Info

New answers tagged

1

I wrote this code here so I can't guarantee it will work as is. It should get you pointed in the right direction. private Func<string> _func; protected void Page_Load(object sender, EventArgs e) { _func = new Func<string>(GetCurrentUserData); Page.RegisterAsyncTask( new PageAsyncTask( new ...


0

This is because of the Label property Visibility="false". Instead use it as: <asp:Label ID ="lbMessageIndex" runat="server" style="display:none;"></asp:Label> then you can use: $('[id$="lbMessageIndex"]').html(); OR $('[id*="lbMessageIndex"]').html(); To get the label value.


1

You can use this 3-rd party web part - Sharepoint Change Password Web Part


2

You could use the something like const string scriptKey = "jQuery"; if( !Page.ClientScript.IsClientScriptIncludeRegistered( Page.GetType(), scriptKey ) ) { Page.ClientScript.RegisterClientScriptInclude( Page.GetType(), scriptKey, ResolveClientUrl("~/js/jquery.min.js" ) ); } The key to making this work is that you need to include the same key ...


0

There are a couple of things you can check. Is the ScriptManager set with EnablePageMethods? Did you create a static method in your c# code behind with [WebMethod] attribute? You can refer these discussions to check more: asp.net ScriptManager PageMethods is undefined ASP.net PageMethods return undefined Execute server side code on close of a browser ...


0

The issue was with the visibility. Control was not rendered when visibility was set to false. The fix is hide it using css. display:none


0

In your web.config check whether you have entries for this webpart as Safe Registered assembly. To register a Web Part assembly as a SafeControl Open C:\inetpub\wwwroot\wss\VirtualDirectories\Port Number of your web application\web.config in Visual Studio or Notepad. Check if there is an entry for your web part in the block, if not you can add it as ...



Top 50 recent answers are included