I just have one quick question concerning WebPart ChromeStates; we have several WebPartZones in a page. Management now has this requirement: all webpart chromestates should be set to Minimized on Page_Load, whatever the last saved state is. In fact, it is better that it doesn't remember it's saved state at all. Problem is, if we close the page with one or more WebPartZones ChromeState set to Restore / Normal, the next time the page is loaded, it remembers those states. We just wanted it to be minimized on each page load.
We have already set profile AutoSaveEnabled to False, set each WebPart ChromeState to Minimized on each Page Load via code-behind, Reset Personalization Settings on each page load, and all other things I have researched in the forums, yet, it still retains.it's last state upon browser close. We use IE 6 exclusively, and we are not allowed to upgrade to 7 or 8.
I am new in sharepoint development. I have 2 webparts attached on a page. The first webpart (MyTestingWebpart1) basically it does only inserting of data and the other webpart (MyTestingWebpart) displays the records from the database. Now my problem is when I try to click on the save button, somehow I don't know how to refresh the webpart that displays the newly inserted record. Is this possible?
I have added a query at the page load event of MyTestingWebPart. Both of the webparts attached are web user controls.
I'm working with web parts in asp.net and every thing is working great in development environment,but in published environment the personalization buttons (RestoreVerb & CloseVerb & design mode) disappeared,i try it on win server 2003 and IIS6 working fine but on win server 2008 and IIS7 doesn't work.
to be more clear
on Development Environment On Publiedhed Environment
I am in a deep deep trouble because I am trying to use web parts in my project,I have implemnented custom provider for personalization(coz, I am using MYSql as a database).I am using three web part zones and each zone hve more than three controls and whenever I try to drag and drop the parts from one zone to other zone, for the first time the droped element successfuly runs but after then if we again try to drop another element from other zone to this then the already dropped element goes to its original place from where it is dropped,The 2nd problem is that close and minimize verbs are not firing well, e.g if there,My provider personlaization class is as,
This buttons are working fine in IE and in Firefox. But the same is not working in Chorme and in Safari.We got the below script error in Chrome:
Uncaught TypeError: Object #<an HTMLElement> has no method 'attachEvent'
ScriptResource.axd?d=JgYxHqt6li1Lc12at8VRK-y-qeXK_5Wiei-tKNUi8rRE-1X5EEl-KvYEuW4m8Foj1VyIiaN7sK98_-pMwa5y7w2&t=633802855995006876:277Uncaught TypeError: Object #<an HTMLElement> has no method 'attachEvent'
I cannot get the Drag and Drop functionality of Web Parts is to work. I have a very simple test page with two WebPartZones.. In the OnInit method of the code behind I put the page in design mode. In the first zone I have a textbox.At runtime the text box renders as a web part. When I hover over the web part header my mouse pointer changes the 'move' pointer, but I cannot drag the item. I do not see it dragging and the part never moved. I am using Visual Studio 2010 with IE 8. I have tried IE8 in compatibility mode and regular mode. The results are the same. Here is the markup from my test page:
I have written the code for webpart in my VS 2005 and i am getting all the mode like(Browse,Desing,Edit etc..)but when i put that wesbite in my local IIS , and when run it i am getting only the browse optionbelow is the for loop code
tell what is the problem, in my vs 2005 enviorment i am getting all the option, but in local IIS i am getting only browse option
I am trying to read the data from XMLDataSource into a gridview (in asp.net). It works when I perform below logic:
Dim ds As New DataSet() ds.ReadXml(Server.MapPath("LoadData.xml")) GridView1.DataSource = ds.Tables(0) GridView1.DataBind() and I hardcoded the resultant hyperlinks inside the GridView with some name using the following exp: (and it works).....
But when i embed the griview inside a webpart , configure the datasource, I am not able to read the data from the XMLDataSource. I get the following error: The DataSourceID of "GridView1" must be the ID of a control of type IDataSource. A control with ID "XMLDataSource1" could not be found.
I get a problem in rendering dynamic webpart data. Firstly, I add a user control as webpart to a WebPartZone control by WebPartMnager.AddMethod() And then, it returns a WebPart object (adding method OK) -> No problem here it also shows the user control on my page. Everything look like perfect. aspnet_Paths and aspnet_PersonalizationAllUsers table also have data -> No problem here
You can see this photo : [URL] However, when I re-start browser or re-load my current page (ctrl + F5) then the user control which I added is disappear. You can see this photo : [URL]....................
Is in-line editing possible on a webpart??I would like to enable a user to directly edit text within a webpart, without a postback and without launching its editor.Can someone show me how this would be done? How would I save the content using a callback?
I have a custom webpart which i am adding to webpartzone dynamically.., in the custom webpart am loading a usercontrol which has Gridview in it with data. On the page load it is working fine, when i click the paging button of the gridview , then nothing is visible on the page...
I would like to achieve a nice smooth transition when the user moves controls between the WebPartZones similar to how iGoogle implements it. I've not yet been able to achieve this - the transition is very jumpy and not very smooth (I cannot use SilverLight).
Has anybody achieved this using WepPartZones without the use of SilverLight?
I have a similar scenario. Sharepoint --> Ascx Control Webpart --> ListView w DataPager. The thing is, when I use the QueryStringField everything works ok. The Pages, clicks, etc... The problem is that when you use QueryStringField(QSF) it reloads all the page when you navigate through pages (this is because it builds different urls using the QSF). Everything ok until now.
As I have other webparts in the same page that interact with this one, I don't want a full render of the page because the other webpart reloads entirely. So, if I take out the QSF the link to pages appear but when I click on them they won't load.
I have read through a number of posts but cannot find solution to my requirement. I need
1. Use DeclarativeCatalogPart to list ALL my webparts. I do not want to use PageCatalogPart because I want the user to always see ALL web parts available in the catalog, regardless if they are closed or not.
2. Disable the checkbox in DeclarativeCatalogPart for the WebParts that already exist on the page.
I wrote all the code to determine if WebPart exists, but I cannot figure out how to get access to that checkbox next to each WebPart.
I have spent days trying to research this to figure out what is going on. I tried changing most of the settings in IE8 (both users are using IE8 but I have no idea if it does it IE7 or Firefox too) , logging in and out as different users, closing, opening, deleting internet files, and it won't break. They have the site in the Trusted Sites list. They don't have trouble with it dropping their Forms Authentication either, so it isn't losing authentication.The admin user suggested it had something to do with her having multiple tabs and sessions open. But I tried all of that, and it never broke. I have seen erratic behavior on occasion if a rogue IE8 process doesn't exit properly