Get The Tab Name In A Usercontrol Umbraco?

Dec 1, 2010

Does enyone know how to get the tabname i can get the id but dont know how to get the name...
this is my code so far:

int userId = umbraco.BasePages.UmbracoEnsuredPage.GetUserId(umbraco.BasePages.UmbracoEnsuredPage.umbracoUserContextID);
DocumentType typeToCreate = DocumentType.GetByAlias("FAQItem");
Document newDoc = Document.MakeNew("test123", typeToCreate, new global::umbraco.BusinessLogic.User(userId), 1161);
newDoc.getProperty("yourName").Value = newDoc.getProperty("Question");
foreach(var prop in newDoc.GenericProperties)
{
ewDoc.getProperty("email").Value += prop.PropertyType.TabId + " ";
}

View 1 Replies


Similar Messages:

C# - Umbraco Versus Sitefinity

Oct 19, 2010

I am getting a large website developed. The develop has asked me which do I prefer either sitefinity or umbraco. The site will be similar to wikipedia where users can come and edit pages without having to login. I would like to ask your opionions on these two csm systems and which one would you recommend for content website with a community feel and wiki features.

View 5 Replies

Which CMS Is Easy To Use DotNetNuke Or Umbraco

Feb 22, 2010

We are in the process of implementing a CMS for our project which currently extensively uses asp.net master pages and css. Also the application is data-driven and controls like gridview and listview are used. After a little search we zeroed on two CMS dotnetnuke and umbraco. Now my question is:

Which one of the two CMS is best suited and easy to use?

Do they support integration of existing code and UI's

provide links for further reference.

View 5 Replies

Does Latest Version Of Umbraco CMS Use Mvc

Oct 18, 2010

I've heard that new version of Umbraco CMS will be completely rewritten and will be based on asp.net mvc?

Current version is 4.5 and as I see it is still based on ASP.NET.

View 2 Replies

.net - Umbraco Learning Resources?

Feb 23, 2011

I need to create a site in umbraco. Is there any good resource to learn Umbraco? I am new to CMS. which is the good learning sites?

View 3 Replies

Umbraco Rewrite Rule For Non Www Domains

Oct 4, 2010

I'm trying to redirect any non-www prefixed traffic to the www prefixed domain. I'm using Umbraco as the CMS and have added the following code into the urlrewritingnet config file:

<add name="nonWWW"
virtualUrl="^(?!www.)(.*)$"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="[URL]"
ignoreCase="true" />

I'm getting a "is not a valid virtual path" error

View 1 Replies

C# - Creating A Custom Datatype In Umbraco?

Jul 5, 2010

I am trying to create a custom datatype. The intention being a dropdown list. As of right now, I can access the control I created but no properties or values are showing up within it. Just the blank drop down.

public partial class usercontrols_admin_customDataType_CountryDropDown :
System.Web.UI.UserControl,
umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor
{
public string umbracoValue;
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
DataSet ds = new DataSet();
FormFieldBuilder countries = new FormFieldBuilder();
ds = countries.GetAllCountries();
ddCountries.DataSource = ds;
ddCountries.DataTextField = ds.Tables[0].Columns["DisplayName"].ToString();
ddCountries.DataValueField = ds.Tables[0].Columns["guiCountryID"].ToString();
ddCountries.DataBind();
}
}
#region IUsercontrolDataEditor Members
public object value
{
get
{
return ddCountries.SelectedValue;
}
set
{
if (value != null)
{
ddCountries.SelectedValue = value.ToString();
}
}
}
#endregion
}

View 1 Replies

Programmatically Rendering An Umbraco Node?

Nov 2, 2010

I'm using Umbraco 4.5.2 and I have a node with a number of child nodes. Each child node represents a fragment of HTML that will be rendered in a control. The control loops over all the child nodes and renders them.

For the moment I have a bit of a dirty hack going in order to get the thing going (still fairly new to Umbraco) but I'd rather do this better.

The code I have at the moment looks like this:

private string GetItemHtml(Node node)
{
// Work out the URL of the HTML fragment
string url = "http://" + Context.Request.Url.Host +
":" + Context.Request.Url.Port +
node.Url;
// Get the fragment by making a call to the page
WebRequest req = WebRequest.Create(url);
WebResponse res = req.GetResponse();
using (Stream stream = res.GetResponseStream())
{
StreamReader reader = new StreamReader(stream);
string result = reader.ReadToEnd();
return result;
}
}

As you can see, it is really rather ugly. I'm hoping there is some way to get this without having to make many HTTP calls, even if it is looping back to the same server - it can't be very efficient.

View 2 Replies

Finding CMS Recommendation - Orchard, Sitefinity, Umbraco Or N2?

Jan 3, 2011

Over the past 3 years I have been using (...shamefully) SharePoint 2007, DNN and Tridion to develop web portals. I am however looking to move off SharePoint and Tridion (lack of control over urls, markup and tdd) and am looking for alternatives.

Which of these would your vote go to and why? Could you share any experiences you have with these:

Orchard
Sitefinity
Umbraco
N2

Although Orchard and Sitefinity seem easily extensible, I am worried about community support.

View 4 Replies

Newbie Here -- Trying To Install N2 CMS And Umbraco - Stuck On Passwords?

Jul 1, 2010

I'm all set up with Visual Developer 2010 Express and successfully (yaaah) worked my way through the NerdDinner tutorial (thank you, thank you, thank you!). So, I think I have everything set up correctly so far. I used the "Install Everything" without the prebuilt apps and all went smoothly.

However, my goal is to set up CMS for a small company owned by a relative so they can update their website as necessary. I'd love to do this with MVC.

I have tried to install both N2 CMS and Umbraco, but can't get past the admin and user names and passwords for the database. Since I'm failing with both apps, I think it's something about setting up the database server that I need to understand.Win 7 Home Premium 64, home system, not on a network. what I need to enter for admin / admin passwords and user / user passworks for N2 CMS and Umbraco?

View 2 Replies

C# - Umbraco And YAF - Old Integration Method Doesn't Work

Aug 1, 2010

I am trying to use YAF with Umbraco. The newest version out changed enough where the old integration methods don't seem to work. I have gotten everything fairly far on my own but I have hit a brick wall with this error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

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.

Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Source Error:
Line 23: <img src="~/yaf/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>
Line 24: <form id="form1" runat="server" enctype="multipart/form-data">
Line 25: <YAF:Forum runat="server" ID="yafForum" />
Line 26: </form>
Line 27: </body>

I have a feeling that YAF is not starting up the database. In previous versions of YAF there was an INIT module that you loaded in your web.config file. This module is no longer there (YAF.Base.YAFInitModule).

View 2 Replies

Umbraco - Installing CMS On Webiste-Username And Password For DB Access?

Jan 9, 2011

I was just trying to install Umraco CMS on my ASP.NET website. I am using the Web Platform installer from Ubraco http://umraco/downloadI pointed the CMS install to the local website folder where it was intended to be installed and specified to use an existing database for the same. It is asking for the some username and password for the Database access. Is there some default value of the these particulars for these because I never configured the username and password for my DB? (It is a MS SQL Database)
Screenshot:[URL]

View 1 Replies

Umbraco Admin UI Not Showing Tree Nodes Thumbnail?

Oct 5, 2010

When installing an Umbraco site, I changed my umbraco admin url from '/umbraco/' to '/myadminurl/', even before I went through the install process.

Just like it's documented, I changed in the web.config the keys 'umbracoReservedPaths' and 'umbracoPath' to match my new admin url.

Installed and everything is working fine, except for one thing: All the nodes in the trees in all sections aren't showing any thumbnails. There used to be a win folder thumb before each tree node, but now it's just empty, except for the 'packages' node in the developer section, and for the recycle bin thumb.

View 1 Replies

Umbraco - Handling In Page Javascript In User Controls?

Jun 11, 2010

I have quite a number of user controls that I need to embed in Umbraco macros. Each user control has quite a bit of in page javascript that needs loaded into the page.

I have been building up the javascript with StringBuilder.Appendline then registering a startup script with code behind but this stinks and I feel there has to be a better way of going about this.

View 1 Replies

C# - Umbraco Friendly URL Not Working After Manually Change The Database?

May 27, 2010

As been requested, I wrote some code which basically change the document's date (the document of umbraco blog).

I have changed every place I can find the date, and makes all the date displays fine, and I have adjusted the path to make it correct.

Now, the url indicated in the umbraco.library.NiceUrl(id) is not working, but previous url is still working.... Just wondering is there any file which 'temporarily' or 'permanently' store the friendly url mapping? if so, how can i modify that?!

Btw, where is the umbraco cache file stored?

btw, umbraco version 4.0.3, restart the website still not working, change the document title will result in old url's title changed, but new url is still not working...

View 2 Replies

UpdatePanel Dynamically Loaded Web UserControl Will Disappear After Clicking Any Button Inside The UserControl?

Mar 17, 2011

I've a ASP.Net page (Default.aspx) which will load UserControl (ucontrol.ascx) dynamically into an UpdatePanel. By using UpdatePanel, we believe we're able to prevent the entire page to be posted-back.

My problem is, within the UserControl, we have some form controls, such as inputs and buttons; after the UserControl is loaded, clicking on any button inside the UserControl will cause the UpdatePanel to be blanked. During the investigation, I found that, breakpoints within the Button1_Click() in the code-behind for the UserControl is never reached. Please reference to the code below, this references to [REFERENCE]1.

[code]....

View 2 Replies

Forms Data Controls :: UserControl Within Gridview Loses Properties When Usercontrol Events Are Trigered

Jul 17, 2010

This is page load

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{ [code]...

But in my ascx.cs when IButton1_Click is trigered My name is null

private string _sname;
protected void Page_Load(object sender, EventArgs e)
{ [code]...

View 2 Replies

C# - Creating Custom Umbraco Data Editor Setting Types?

Feb 17, 2011

I can't seem to find anything on how to edit the data editor settings before umbraco 6.2 (Juno). Is there any simple way, it must be possible. If you don't understand what i mean i want to do the same as [URL]

View 2 Replies

Storing Umbraco Settings On The File System And Packaging Changes For Deployment

Jul 7, 2010

Does anybody know of an easy way to store Umbraco settings (Document Types, Media Types etc) on the file system in order to manage that data within source control?

Note: changes to settings made on the file system need to be easily integrated back into the CMS database.

Also, does anybody know of a way to package up settings from a development environment for rolling out to staging and live environments?

View 1 Replies

C# - Making An Ajax Call In Umbraco From Inside User Control?

Mar 11, 2011

For an Umbraco project, I am trying to make a simple Ajax call.. I can't use PageMethods because I need to make the call from inside a UserControl.. I tried to do it via web service call like this:

Web service method:

[System.Web.Script.Services.ScriptService]
public class MapService : System.Web.Services.WebService
{
[WebMethod]

[Code]...

The problem is, "MapService.GetCities" method doesn't get invoked..

What might be the problem here?

Alternatively, what is there any better way to make these kind of Ajax calls in a User Control?

View 2 Replies

AJAX :: Nested UserControl With UserControl Disappears On Partial Postback

Jan 28, 2011

I have a page with an UpdatePanel with a UserControl in it. That UserControl contains a GridView with a nested UserControl that seems to disappear when the parent UserControl is rebound. I cannot for the life of me figure out why the child UserControl disappears. The code works beautifully on the first load, but any partial postback causes the "Pick" UserControl to disappear.

[Code]....

View 5 Replies

Web Forms :: Usercontrol Constructor Parameter - Unable To Pass The Value To Usercontrol?

Apr 6, 2010

im creating site with usercontrols. I have repeater, inside it is another repeater with usercontrol. My problem is passing BindedValue to usercontrol.Bindings works fine and binds the value i need but it cannot pass the value to usercontrol. When i type it manually it works, when i bind it, it passes null (!).I've tried get,set, functions (ondatabound, onload, oninit), accessing control from code with no luck. Ive read and tried to do all the google solutions but with no luck. (even with creating usercontrol inheritance)

View 5 Replies

To Run The Website, Get Error - Could Not Create Type 'umbraco.webservices.documents.documentService'

Jan 11, 2011

I was trying to install CMS for my ASP.NET (Open source Umbraco). After the installation process, when I try to run the website, I get this error: Could not create type 'umbraco.webservices.documents.documentService'. E:UsersSarinDocumentsVisual Studio 2010WebSitesWebSite20umbracowebservicesapiDocumentService.asmx

Here's the line from default.aspx which is showing this error.

<%@ WebService Language="C#" CodeBehind="DocumentService.asmx.cs" Class=umbraco.webservices.documents.documentService %>

View 1 Replies

Web Forms :: UserControl To UserControl - Same Object Instance Transfer

Sep 27, 2010

There are 2 UserControls UC1 and UC2, and there is one more class C. I want to share the same instance of c in both UserControls. I know that this can be possible with properties in both UC's and by registering UC2 in UC1 or vice versa. But I want the solution to be loosely coupled. Any best possible way without touching the Actual Page (which hosts UC's)? So i need some best possible way between UCs transfering C.

View 5 Replies

C# - Call Function From UserControl On ASPX From UserControl On MasterPage?

Jan 31, 2011

I have MainLayout.master that has UC_Menu.ascx on it.

I have a page named Customer.aspx that uses MainLayout.master. Customer.aspx also contains a UserControl named UC_Details.ascx.

How can I have UC_Menu.ascx call a function that is in UC_Details.ascx with this scenario?

I've seen a few similar examples, but none that match this type of layout.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved