.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

WebPartManager, WebParts & alternative browsers

Posted By:      Posted Date: October 09, 2010    Points: 0   Category :ASP.Net
 

Hi,

I have trouble running WebPartManager in edit mode on alternative browsers (it works almost fine on IE): by "trouble" I mean, "it doesn't work" Cry

I've been searching, and searching, and... Searching for people having similar problems, and it was written that it all should work with .NET 3.5 (the famous "asp.net future"), but here, it does not.

So, my simple question is:

is there a way to make the edit mode of a WebPartManager work in alternative browsers (from inside an UpdatePanel would be better, but I can manage incompatibility with it).

Cheers,

Pascal.




View Complete Post


More Related Resource Links

Write Custom WebParts for SharePoint 2007

  
The popularity of SharePoint Portal Server 2003 led Microsoft to tightly integrate the next SharePoint version, Microsoft Office SharePoint Server (MOSS) 2007, with its ASP.NET 2.0 WebPart framework. This tight integration enables the ASP.NET and SharePoint developer to do a number of things that previously weren't possible

Help me with webParts

  

I added WebPartManager to my default.aspx and i get   teh following Message :

Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

SQLExpress database file auto-creation error:

The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:

  1. If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory

Is master page a best alternative for Frame Sets ??

  

My webpage has one banner with a logo, a vertical menu bar on the left side of the page and a footer . I have 5 other pages which should get loaded when the user select them from the menu bar. what my concern is actually the banner,  menu bar  and the footer should not change when the requested page loads. This definitely can be handled by sets. But I want to know whether there are any other alternatives for frame sets or could master page be helpful for this purpose ????? 


Any help would be appreciative .


Menu items of Welcome control behaves incorrect in non-IE browsers.

  

We are using wss 3.0 sp2

I am referring to the welcome control that is part of standard sharepoint pages. This is the in the masterpage. The welcome contrrol has options such as 'sign-in as different user' , 'signout' and so on. When user takes the mouse and tries to click on the sub-menu it doesn't work as if the menu item is not getting focussed (however up/down arrow with keyboard works fine). 

I know that sharepoint sites are not best when viewed with firefox, safari, chrome etc  but is there a fix for this? Is it do with 'z' index setting or something? Can this be fixed through javascript?  

Please share your views/solution.

thanks.


How to find incoming url of the page. ( alternative to Request.UrlReferrer)

  

 Request.UrlReferrer is not working. can any one  help me to find the previous page url ?


Login control is suddenly broken in IE7 but works perfectly on Firefox (It works on both browsers lo

  

Hey Guys,

 I'm new around and I thought this is probably the best place to help me solve my dilemma, I am developing a website for almost a year now and the login control was implemented a logn time ago, however all of a sudden it will not authenticate on Internet Explorer 7 when the application is published, it doesn't even provide a message that authentication was unseccssful or throws any error, it just refreshes the same page. however this problem doesn't occure when I try the same website on FireFox 2.0...Also when I run the page locally on Cassini it work great on both browsers...This is one of the weirdest errors I have ever faced. what could have gone wrong on the server side to cause this? knowing nothing changed on the server-side...I'll provide a snapshot of the login control below

<asp:Login ID="LoginControl" runat="server" BackColor="Trans

pre populating webparts

  

hi,

 

i m wanting to know if it is possible to pre populate content within a webpart so the user only has to add the web part to the page, and not make any configurations changes.

What i am trying to achieve is with the image web part and pre loading this with an image which is hyper linked to another of our systems

Could you let me know if this is possible and if so how i go about doing this.

Thanks


Absence and vacation days webparts calculation

  

hi,

does any1 know if there is a webpart that can calculate an employee's vacation days. and when the employee request some vacation days it show the days that are left.

or is there a tutorial to create such a webpart?

thnx


user control derived from System.Web.UI.WebControls.WebParts only fires its OnPreRender and CreateCh

  

 I have a application which uses webparts.

So my user controls are derived from System.Web.UI.WebControls.WebParts which makes them webparts.

I have everything setup and working fine as far as the personalization and webpart goes... every thing displays and works fine.

Except that 1 of my control needs to do a bit of work in the OnPreRender event and it turns out that event only gets fired when a user is loged in the application.

So lets imagine that an administrator while logged in switched to 'Sharedscope' within the webpartmanager and then has added the usercontrol/webpart 'calendar' to the top webpart zone. This then makes the 'calendar' control viewable by all and any user who visits the page wheter logged in or anonymous.

And this works fine and very well as it is supposed to. However in the 'Calendar' user control which is derived from System.Web.UI.WebControls.WebParts I have an overiden 'OnPreRender' event like this:

Protected Overrides Sub OnPreRender(ByVal e As EventArgs)

If Not Me.DesignMode Then

Me.isloaded = True

' Test for ScriptManager and register if it exists

sm = ScriptManager.GetCurrent(Page)

If sm Is Nothing Then _

Throw New HttpException("A ScriptManager control must exist on the current page.")

installing webparts in asp.net 4.0

  
what lines must I add in the web.config file to activate the webparts fonctionality in asp.net 4.0?   cheers  

Problem changing/upgrading properties on WebParts that have already been deployed and added to Share

  
I have created two custom webparts which I deploy as a Feature within a Solution.  These webparts have been added to various pages on my site.  Due to design changes, I upgraded the webparts with some new functionality and some other changes to the webpart properties, such as the WebPart title, title icon and catalog icon.  After I have retracted/deleted the old solution and re-deployed the new solution (and activated the feature) the webparts have been upgraded fine, however, the webpart properties were not changed for any webparts that were already added to pages.  I can add new instances of the webparts and they have the updated properties (and also show correctly in the wp gallery and catalog). Is there a step I am missing in order to upgrade any webparts (namely the properties) that have already been added to pages?  Or is this something I have to take care of programmatically somehow to workaround the upgrade problem?

Alternative to deprecated xp_readmail in MSSQL

  
I have inherited an MSSQL2000 application that uses xp_findnextmsg & xp_readmail to extract stuff from emails & insert it into the db.   It will need to be upgraded sometime soon, either to 2005 or perhaps 2008:  However, I note that both xp_findnextmsg & xp_readmail are deprecated, & that Database Mail is apparently for sending only, not for reading.  Have I got this wrong?   This would not appear to be a unique need.  Any clues gratefully received.   regards, Ian

any alternative for join tables?

  
 Hi guys, is  there any alternative for joining tables in ado.net? The problem is i have 2 tables: Transaction pkTransactionID TransactionDate FKTransactionCategory : refers to PKCAtegoryID   Category PKCAtegoryID CategoryName   I need to show a joined information from 2 tables in a gridview and be able to update data in tables. I can join them using linq to entity and show them in gridview. But i need to handle update and insert by myself then. Is there any way to make mapping so i can handle the data in those 2 tables as one table and bind it to bindingsource? Thanks in advance.      

user control derived from System.Web.UI.WebControls.WebParts only fires its OnPreRender and CreateCh

  
I have a application which uses webparts. So my user controls are derived from System.Web.UI.WebControls.WebParts.WebPart which makes them webparts. I have everything setup and working fine as far as the personalization and webpart goes... every thing displays and works fine. Except that 1 of my control needs to do a bit of work in the OnPreRender event and it turns out that event only gets fired when a user is loged in the application. That control is also a script control so it inherits from System.Web.UI.WebControls.WebParts and also implement IScriptControl So lets imagine that an administrator while logged in switched to 'Sharedscope' within the webpartmanager and then has added the usercontrol/webpart 'calendar' to the top webpart zone. This then makes the 'calendar' control viewable by all and any user who visits the page wheter logged in or anonymous. And this works fine and very well as it is supposed to. However in the 'Calendar' user control which is derived from System.Web.UI.WebControls.WebParts I have an overiden 'OnPreRender' event like this: Protected Overrides Sub OnPreRender(ByVal e As EventArgs) If Not Me.DesignMode Then Me.isloaded = True ' Test for ScriptManager and register if it exists sm = ScriptManager.GetCurrent(Page) If sm Is Nothing Then _ Throw New HttpException("A ScriptManager contro

Unable to Use ToolkitScriptManager in Sharepoint 2010 webparts

  
I am trying to use ajax in my sharepoint 2010 webparts. Tried to add a calenderextender to textbox. But  the ajax funcationality is coming in to picture if i use only ToolkitScriptManager , but not for ScriptManager.(as i tested in visual studio 2010) The v4.master has got <asp:scriptmanager ... /> already.  So i can'nt add another scriptmanager(ToolkitScriptManager). Any help please?  

data contract code generation for large/complex schema (HR-XML/OAGIS) - is there an alternative?

  
Hello, and thank you for reading.I am implementing a Service based on a predefined specification (HR-XML 3.0). As such, I am starting with the schema, and working my way back to code. There are a number of large Schema documents (which import yet more Schema documents) related to my implementation, provided by this specification.I am able to generate code using xsd.exe, by supplying the "main" and "supporting" xsd files as arguments. But there are several issues, and I am wondering if this is the right approach.- there are litterally hundreds of classes - the code file is half a meg in size- duplicate classes (ex. Type, Type1 - which both represent the same type)- there are classes declared as inheriting from a base class, but that base class is not generated/definedI understand that there are limitations to the types of Schema supported by svcutil.exe/xsd.exe when targeting the DataContractSerializer and even XmlSerializer. My question is two-fold:1. Are code generation "issues" fairly common when dealing with larger, modular xsd files? Has anyone had success with generating data contracts from OAGIS or HR-XML schema?2. Given the above issues, are there better approaches to this task, avoiding generating code and working with concrete objects? Does it make better sence to read and compose a SOAP message directly, while sti

Bing Maps with Visual WebParts

  
Hi, I am trying to show simple bing map in visual web part. when i place same code in html page then  it is working as expecting. when i place in visual webpart then getting error for mapcontrol.ashx thrown exception. can anyone point me anyspecial settings required for visual webpart to show bing map. my code as follows <     script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=5" type="text/javascript"> </       script> <     script type="text/javascript">     var map = null;       function GetMap() { alert(     'test'); map =     new VEMap('myMap'); map.LoadMap(     new VELatLong(17.391, 78.4712), 10, 'r', false);       var pin = new VEPushpin(1, new VELatLong(17.391, 78.4712), null,       'Hyd Infy',       '<table><tr><td>This field is:<ul><li>Total Buildings:20</li><li>Employees :xxxxx</li>' +       '</ul></td></tr></table>');     </script>         <script> GetMap();     </script>     <div id="myMap" style="position:relative;wid
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend