Adding Webparts Using An XML File?
Nov 10, 2010
I have followed this link and it seems to work in the sense that it adds webparts from my XML file successfully.
[URL]
However, the actual controls themselves are never displayed and their respective page loads are never called.
The controls themselves work fine if I hardcode them into the catalog zone and inherit them from user controls but when I change their inheritance to webpart and try and use the control from this example, as mentioned nothing appears. Clear as mud?
An example of a control -
public
partial
class
hello :
WebPart
{}
<%@ Control
Language="C#"
AutoEventWireup="true"
CodeBehind="hello.ascx.cs"
Inherits="Controls.HomePage_Controls.hello"
%>
<asp:Label
ID="lbl1"
runat="server"
Text="Hello"
Font-Bold="true"
Font-Size="Large"
ForeColor="Blue"
/>
View 1 Replies
Similar Messages:
Sep 24, 2010
Is there a way to add the same webpart to multiple pages across a site (using shared personalisation) without the use of masterpages?
View 5 Replies
Oct 3, 2010
I have created 4 WebPartZones in my aspx page.
I need to add usercontrols dynamically to ZoneTemplate of each WebPartZone by reading a config file.
How can i dynamically add controls to Zonetemplate of each webpart at runtime
View 3 Replies
Jul 25, 2010
I have an asp.net application. I want to add a global.asax and global.asax.cs file to my project. In the IDE when I select to create a new global.asax file, the option to create a CS code behind file is greyed out. When the global.asax file is created, no code behind is created, instead code is placed in the global.asax file and the global.asax.cs file is never created? Why is the option for a C# code behind file greyed out?
View 4 Replies
Feb 2, 2010
I am working on Asp.Net Mvc 1.0 i want to put webparts in my mvc application.
View 2 Replies
Feb 19, 2010
once have closed a webpart when i am running my application again it is not displaying the webparts...i have to place my code in to other webpart. to prevent from creating the webpart again an d again...
View 1 Replies
Oct 4, 2010
I started learning ASP.NET these days. Google Chrome is my default browser and I'm also testing my applications in Google Chrome.
I recognized that some Elements of ASP.NET won't run in real time when I use Chrome. For Example ASP.NET WebParts. If I change the modus of the WebPartManager from default to edit (or something else), Google Chrome needs 1 - 2 seconds to renew the page. Internet Explorer does this in real time without any loading times.
I'm a rookie in ASP.NET and many people said, Microsoft's AJAX for ASP.NET is some kind of crap.
I'm using Visual Studio 2010 and maybe you'll say, I should use jQuery instead of internal Features like WebParts.
View 1 Replies
Mar 22, 2010
I think that I am confuse here. Now I am using WebParts as they being used on 2.0 framework (like they are using on TheBeerHouse kit)
But in most of the forums they talk about SharePoint. Does sharepoint means webparts as I know them, or this is a new version of the webparts?
View 4 Replies
Aug 6, 2010
I'm learning about webparts in asp.net.
I use Visual web developer express 2010, with sql server express.
I followed all the instruction to build a simple page with webparts. I added the webpart manager, webpart zone, zone template and added my user control or asp controls inside.
The webparts look as they suppose to in design view, but when I run the application and see the page in the browser (explorer 8 Or Chrome) the webparts look like cells in table: Static, with no menu that will allow the user to minimize or to close the webpart. None of the webparts have the small triangle menu icon.
Attached is my code.
[Code]....
View 3 Replies
Oct 19, 2010
Is there any way to localize the text displayed within the PropertyEditorPart?
[Personalizable(true),
WebBrowsable(true),
WebDisplayName("To Date: "),[code]....
View 1 Replies
Feb 18, 2010
i created a webpart in default.aspx page. i am trying to access the html code of the default.aspx page from an html file using javascript. When trying to access a javascript error is displayed 'webpartmanager' is undefined. the functionality i am trying to achieve is i want to call all the webparts created in default.aspx page from html page and do all the drag drop, minimize, close in html page.
View 1 Replies
Sep 22, 2010
Im looking for a way to add a naviagtion webpart to multiple pages via the catalog part - without using masterpages.
View 3 Replies
Mar 24, 2010
I am trying to create a webparts in .net 3.5 but in display mode its showing only browse not design.
my code is as follows,
this is ascx.cs page
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
[Code]....
View 5 Replies
Jun 1, 2010
I'm developing an ASP.NET (C#) application using EPiServer CMS 5. On the startpage we have four WebPart-zones and everything works great running it through Visual Studio. When publishing it to the production-server (IIS 7) the startpage shows as a blank page, no error what so ever...
When we remove these lines of code it works, so it has something to do with the WebParts.
<WebParts:ExtendedWebPartManager ID="WebPartsManager" runat="server"></WebParts:ExtendedWebPartManager>
<WebParts:ExtendedWebPartZone WebPartProperty="WebPartZone1" runat="server" ID="WebPartZone1" PartChromeType="None" AllowLayoutChange="false" Padding="0" PartChromePadding="0" Width="100%"></WebParts:ExtendedWebPartZone>
<WebParts:ExtendedWebPartZone WebPartProperty="WebPartZone2" runat="server" ID="WebPartZone2" PartChromeType="None" AllowLayoutChange="false" Padding="0" PartChromePadding="0" Width="100%"></WebParts:ExtendedWebPartZone>
<WebParts:ExtendedWebPartZone WebPartProperty="WebPartZone3" runat="server" ID="WebPartZone3" PartChromeType="None" AllowLayoutChange="false" Padding="0" PartChromePadding="0" Width="100%"></WebParts:ExtendedWebPartZone>
<WebParts:ExtendedWebPartZone WebPartProperty="WebPartZone4" runat="server" ID="WebPartZone4" PartChromeType="None" AllowLayoutChange="false" Padding="0" PartChromePadding="0" Width="100%"></WebParts:ExtendedWebPartZone>
View 2 Replies
Aug 4, 2010
I have a classic ASP application which is using SQL Server 2000. I am trying to add a .NET web page into the ASP application. In the .NET Page(using C#), I am trying to use webparts.I would like to know, if the ASPNETDB can be created in SQL server 2000 to store the personalizations, and is there any other changes to be made to use web parts in an ASP application?
View 2 Replies
Sep 17, 2010
I have created a web part in asp.net application and allowed user to change it position. Now, I want that once user comes back he/she will see the same setting of web part that he/she had left earlier.What is the best approach to maintain the web part position for that particular user.
View 1 Replies
Apr 26, 2010
We have a generic site which we deploy to clients and they personalise the text using the web parts. The problem we are currently experiencing is that they are unable to move web-parts between zones. This is not a JS issue as no errors are being thrown and this is not a CSS issue either, as we re-deployed the website here on our own server and it works perfectly fine. On our client's site, we can drag parts around in the zone it is in, however when we try to move a part out of that zone, we are given a circle cursor with a line through it. Adding parts to a zone is not an issue.
This could perhaps be linked to a previous issue of being unable to view any editable parts of a webpart. I resolved this by removing all the WebPersonalization from the WebPersonalization table in our MSSQL database.
View 2 Replies
Mar 8, 2010
There is a page that retrieves for about 100 records from database.
In this page I have several of webparts. wach webpart has a usercontol, and in it there is a datalist.
I need way to sen data from the page into the webparts. for each webpart I wish to send 20 records only from the 100 that was retrieved from database.
NOTE: Sometins in that page there is 4 webparts, and sometimes there is only 2...it keeps changing.
How can I achieve that?
View 1 Replies
Nov 20, 2010
I want to create rounded corner webparts in my webpage using .
View 3 Replies
Feb 2, 2011
I have few ASPX pages and I am planning to have some webparts on these pages.
a) Looking for custom code to create ASP.NET webpart (code samples, webcasts or samples would be great)
b) Once I have webpart created, I would like to know how I can refernce them in ASPX pages.
View 1 Replies
Jan 4, 2010
I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am publishing a portal template.
I want to develop a WebPart and make some settings configurable (just like we can configure parameters for a console application in app.config)
For example, authorized users could set parameters of WebPart in Edit Page (from browser based UI interface), then Select -> Modify WebPart properties, or edit parameters in SharePoint Designer.
The parameters would be application specific parameters.
How do I go about doing this?
View 3 Replies
Mar 19, 2010
I have one of the .Net site running and want to implement web-parts on that site. well I am not using (aspnet_Users, or aspnet_Membership) defaults tables from aspnetDB but I have my own login controls and create new user contols ect on the site. so in short I have the users uniq ID when logged in from our corporate database nothing similar to aspnetDB.
Hecen want to know can I impelemt webparts in the existing site by just importing the tables from aspnetdb like (aspnet_PersonalizationAllUsers, aspnet_PersonalizationPerUser) to my database and what else I will require apart from these tables?
1. which list of store procedures I should coopy?
2. Any modification to my web.config?
3. Are their any functions/classes which I might have to copy to my App_Code folder to work these webparts with my exisitng site and userdetails
Is it possible ?
View 1 Replies
Jun 21, 2010
I am using web parts in asp.net 2.0 . Its all work well except every time I drag & drop or minimise and element the whole page get refreshed. I am also using master pages and theming.
View 4 Replies
Feb 23, 2011
1). user will upload a pdf file
2). and then will upload his signatures
3). embed the signature in pdf file
View 1 Replies
Feb 27, 2010
Does anyone has an idea on how to change the connection string of the webparts at runtime. i have a multitenant app, and would like to store each accounts users settings in their respective DB's i tried changing the connstring in the webpartsmanager init, and the page load event
Dim myConfiguration As System.Configuration.Configuration = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~")
View 1 Replies