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


Post New Web Links

Get original model in an ascx template

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

Hi,
I'm writing a custom editor template.
I display my template like that:
 <%=Html.EditorFor(model=>model.MyProperty, "MyTemplate") %>


View Complete Post


More Related Resource Links

Can't reset DefaultTemplates.ascx to original state after some changes

  
Hello everyone. I've made some changes in DefaultTemplates.ascx and save the file. Nothing serious, just added some plain text to RichTextField template to test it. This changes are immediately applied to my site so i can see them. But when i decided to rollback changes and return template to it original state, it didn't have any effect. Control is still in customized state. Iisreset doesn't help at all. Maybe anyone know what it can be? It really makes me crazy. Please, tell me how i can reset my page and this template to its original state. I am using SP 2007. Thanks. P.S. Sorry for my bad english.

Load control template file /_controltemplates/TaxonomyPicker.ascx failed

  
What is problem
Load control template file /_controltemplates/TaxonomyPicker.ascx failed: Could not load type 'Microsoft.SharePoint.Portal.WebControls.TaxonomyPicker' from assembly 'Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.

Load control template file /_controltemplates/TaxonomyPicker.ascx failed

  

Hi,

Recently, we try to migrate WSS2007 solution to  SF Server 2010. And I job is to check if all the WSS 2007 solutions can work on SF Server 2010. Unfortunately, there is one weird error came out when I did a tag mapping with Microsoft.SharePoint.WebControls.PeopleEditor with my own custom people edit, it throws me this error.

Load control template file /_controltemplates/TaxonomyPicker.ascx failed: Could not load type 'Microsoft.SharePoint.Portal.WebControls.TaxonomyPicker' from assembly 'Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.

This never occurs in WSS2007 or SF 2010, BUT it DOES occur in SF Server 2010 RTM. I reflect the Microsoft.Sharepoint.Portal.dll, and I cannot find any TaxonomyPick class at all. And I searched this solution all over the world and none of the solution(these solution inclues replace "&#44"
with ";" or change TaxonomyPicker.ascx to TaxonomyPicker.ascxbackup) is working.

Apparently, this TaxonomyPicker is obsolete in RTM. I dont know why it is still in RTM folder and it seems this causes some problems.

Please help!

Thank you.


Rui

Load control template file /_controltemplates/SearchArea.ascx failed

  

I came across this error in the event viewer after migrating my WSS v3 to Sharepoint Foundation 2010


Load control template file /_controltemplates/SearchArea.ascx failed: 'Microsoft.SharePoint.WebControls.SearchArea,Microsoft.SharePoint,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c' is not allowed here because it does not extend class 'System.Web.UI.UserControl'.

Any ideas?


Load control template file /_controltemplates/SearchArea.ascx failed:

  

Hi! I upgrade from wss 3.0 to spf 2010, i found a error 7043 and the error is shown below:

Log Name:      Application

Source:        Microsoft-SharePoint Products-SharePoint Foundation

Date:          10/18/2010 11:47:26 AM

Event ID:      7043

Task Category: Web Controls

Level:         Error

Keywords:      

User:          WIN-WVLXK22C2TJ\Administrator

Computer:      WIN-WVLXK22C2TJ

Description:

Load control template file /_controltemplates/SearchArea.ascx failed: 'Microsoft.SharePoint.WebControls.SearchArea,Microsoft.SharePoint,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c' is not allowed here because it does not extend class 'System.Web.UI.UserControl'.

can anyone help me to solve this problem?

 

Thanks!


How to use original 2007 template after upgrade

  

I have successfullu upgraded content database. I noticed it is showing new template. I want to use my old 2007 site template. I also want that whenever I create new site it should use old 2007 template not 2010 template.

How can I achieve this?

Secondly if we use existig 2010 template, can we use hde ribbon and use old 2007 list toolbar concept?

Please advise


Binding WPF Controls to an Entity Data Model

  
In this interview, programming writer, McLean Schofield, demonstrates how to bind WPF controls to an entity data model, using Visual Studio 2010 Beta 1. You can also learn more in the topic: Walkthrough: Binding WPF Controls to an Entity Data Model.

Model View Controller (MVC) for ASP.NET

  
Model View Controller (MVC) architectures, immediately wonder how the MVC pattern can be applied in an ASP.NET world. This article will demonstrate how the MVC pattern can be applied to an ASP.NET web application and still maintain the basic Microsoft supplied architecture.

Dynamic Systems Development Model (DSDM) Methodology

  
The Dynamic Systems Development Model was developed in the U.K. in the mid-1990s. It is the evolution of rapid application development (RAD) practices. DSDM boasts the best-supported training and documentation of any of the agile software development techniques, at least in Europe. DSDM favors the philosophy that nothing is built perfectly the first time and looks to software development as an exploratory endeavor.

Overview of SharePoint Object Model

  
SharePoint offers a set of structured server-side objects those are widely used to program SharePoint Applications. These objects are hierarchically arranged and you can drill down through the object hierarchy to obtain the object that contains the components of SharePoint Application you need to use in your code.

Binding WPF Controls to an Entity Data Model

  
In this interview, programming writer, McLean Schofield, demonstrates how to bind WPF controls to an entity data model, using Visual Studio 2010 Beta 1. You can also learn more in the topic: Walkthrough: Binding WPF Controls to an Entity Data Model.

Code works on aspx but not ascx

  

Not sure which category to put this question in, so I will put it in here.

Just to give you an idea of the layout of my solution, I have the main project, along with 2 class libraries, BLL and DAL.  (Business Logic Layer and Data Access Layer)

The BLL refers to the DAL and the main project refers to the BLL.


I had a test website and the code worked fine, but the same code will not work on the real project. The only difference is that in the test project, the code was on an aspx code behind, whereas in the real project, it is an ascx code behind (Web User Control )

The code is:

Dim connectionString As String = ConfigurationManager.ConnectionStrings("ASPNETDBConnectionString").ConnectionString
        Dim recordEntry As New UserRecord(connectionString)
        recordEntry.UserName = "TestName"
        recordEntry.BMI = bMI
        recordEntry.BMR = bMR
        recordEntry.FTM = fTM
        recordEntry.TDEE = tDEE
        recordEntry.TodayDate = dateForToday
        recordEntry.InsertRecord()



Dim connectionString As String = ConfigurationManager.ConnectionStrings("ASPNETDBConnectionString").ConnectionString

Dropdown Event (Template Field)

  

Hi,

I have grid view control that includes a dropdown control in a template field.

I wish to execute some code when the value is changed in the dropdown list.  Can't figure out how to capture this event though?

Any suggestions?


'Model' cannot be declared in this scope

  

I have a complex partial view (ugly stuff), the view page has this line:- 

<% Html.RenderPartial("PartialIndicatorWeighting", indicator);%>
and inside the ugly partial view I have this,
<td><%: Model.Active %><%: Html.CheckBoxFor(Model => Model.Active)%></td>
I'm trying to display a list of checboxes to show if the item is active or not, I get the following error:-
 
A local variable named 'Model' cannot be 

lossing focus from model pop up window controls

  

hi i using a model pop up window with some textbox but when i click on textbox of model pop up focus move to back to page textbox control plz help me 


Count words in the ascx file

  

Hello!

I have 163 .resx files. I want to count the words in these files, because my want to translate the sentences (my task is the localisation).

Now I'm opening each file in Ms Visual Studio and I count words manually. How can I count words in all files? And the second question: can I use a program what grab strings from .resx into an editor where I can translate them and save bacn into .resx files? Or must open the files one by one and edit the text fields manually?

Thanks for helping, unfortunately I'm not a programmer.



How to detect mobile phone name/model no from asp.net?

  

Hi experts,

Can I detect the Name/model no of the mobile phones ,which are browsing my asp.net website from C# code behind? I need to show welcome message, addressing their model numbers and redirect to appropriate pages.

Thanks in advance for your reply.

Regards


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