Web Forms :: Adding Webparts To Multipages Without Using Masterpages?
Sep 24, 2010Is there a way to add the same webpart to multiple pages across a site (using shared personalisation) without the use of masterpages?
View 5 RepliesIs there a way to add the same webpart to multiple pages across a site (using shared personalisation) without the use of masterpages?
View 5 RepliesIm looking for a way to add a naviagtion webpart to multiple pages via the catalog part - without using masterpages.
View 3 RepliesI am using ASP.NET3.5, I want to Add rows dynamically to a table.I have written this code.This code is working fine if the Page is not having masterPage file. If I use masterpagefile in my ASPX age,controls(textboxes) are displaying at bottom of the page,and the data in textboxes is not retaining after click on Add button.Disaapering the text box values. My .Aspx:
[Code]....
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
How do you add a PayPal button inside of a content detail of a master page. Since a MasterPage automatically encapsulates and nests ALL of the code of its contentplaceholder, by definition...all design and coding in a contentplaceholder cannot encorporate a form. This is true because w3 specs do not allow the nesting for forms.
[Code]....
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"
/>
Is it possible to convert / migrate Sharepoint Masterpages to ASP.NET Masterpages ?
View 1 RepliesIs it possible to convert / migrate Sharepoint Masterpages to ASP.NET Masterpages ?
View 2 RepliesI am new to Masterpages and thought I would set up some buttons on the left and right side of a masterpage and leave the center open for a ContentPlaceHolder for the stuff I would do in other pages.Is this possible?
View 2 Repliesi want to know what is purpose of using masterpage?
View 5 RepliesWhile I know that Masterpages changes the id of the elements, and need to use:
[Code]....
Notice that while I can access the name of the parent <span />, the child element <input /> has the name changed away from the parent. This is a radiobuttonlist and I'm trying to deselect it, but the page is inside the MasterPage.
I have a master page, in which i have added 4 content templates.
[Code]....
In the content page( for example in the "MainContent"), I have used code as:
[Code]....
When I run the start page, I am able to see the calendar and editor, but the header and footer are not visible. I have header and footer content also defined in seperate pages.
And also, when i click on the calendar to move the months, i am getting a javascript error as "Sys is Undefined".
How to view the proper page? How to make the master page, which will have left menu, header,main content and footer?
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?
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]....
Has anyone ran into problems using masterpages and inserting data into sql? I have ran into this numerous times where I will set up a page using a masterpage, through a few controls on the page to insert data say from a datagrid, do an insert and the data never inserts.
Then I will change the page to a regular webform page, nothing differnet other than it's not using the masterpage, and wala, the data gets inserted?
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 RepliesI 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]....
I using Masterpages and user defined controls, on my user defined control I added a CalenderExtender, but I can get it to work, when I set the TargetControlID="txtPSD" the name of my textbox it vanishes from the screen. Question is am I putting it in the wrong place??? see the bold code below, TargetControlID error is name contains uppercase lettter that are not allowed.
[Code]....
This is my treeview code. when i enter through orderentryhome page i want to invisible savedordermenu and checkout menu. If i click submit button in organizationdetails.aspx page then savedordermenu and checkoutmenu will diaplay along with other menus. This is my requirement.
<asp:TreeView ID="trvMaster" runat="server" ForeColor="#E9CF24" Width="157px"
ExpandDepth="2" ShowLines="True">
<Nodes>
<asp:TreeNode Text="File Maintanence" Value="File Maintanence">
<asp:TreeNode Text="Organization" NavigateUrl="~/FileMaintenance/frm_vieworganization.aspx"
Value="Organization"></asp:TreeNode>
<asp:TreeNode Text="Vendor" NavigateUrl="~/FileMaintenance/frm_ViewVendors.aspx"
Value="Vendor"></asp:TreeNode>
<asp:TreeNode Text="Items" NavigateUrl="~/FileMaintenance/frm_Items.aspx" Value="Items">
</asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="Order Entry" Value="Order Entry">
<asp:TreeNode Text="Organization List" NavigateUrl="~/OrderEntry/frm_OrganizationDetails.aspx"
Value="Organization List"></asp:TreeNode>
<asp:TreeNode Text="Saved orders" NavigateUrl="~/OrderEntry/frm_savedorder.aspx"
Value="Saved Orders"></asp:TreeNode>
<asp:TreeNode Text="Order Entry" NavigateUrl="~/OrderEntry/frm_OrderEntry.aspx" Value="Order Entry">
</asp:TreeNode>
<asp:TreeNode NavigateUrl="~/OrderEntry/frm_Deliveries.aspx" Text="Deliveries" Value="Deliveries">
</asp:TreeNode>
<asp:TreeNode NavigateUrl="~/OrderEntry/frm_Shortout.aspx" Text="ShortOut" Value="ShortOut">
</asp:TreeNode>
<%-- <asp:TreeNode NavigateUrl="~/OrderEntry/OrderEntryHome.aspx"
Text="Order Entry Home" Value="Order Entry Home"></asp:TreeNode>--%>
<asp:TreeNode NavigateUrl="~/OrderEntry/CheckOut.aspx" Text="Checkout" Value="Checkout">
</asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="Draft Bids" Value="Draft Bids"></asp:TreeNode>
</Nodes>
</asp:TreeView>
I got one masterpage and one content / child page having gridview control .I want to do client side validations using javascript, can anyone suggest me where i have to do this.i.e.., either in masterpage or in content page(I know that only at the <head> tags we can include javascript file, but in content pages there are no html tags,i don't want to use server side validation controls , and i want to validate the server side controls in gridview
View 2 RepliesWe 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.
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?
I want to create rounded corner webparts in my webpage using .
View 3 RepliesI 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.
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 ?