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

Top 5 Contributors of the Month
Post New Web Links

ascx file in asp.net mvc

Posted By:      Posted Date: September 09, 2010    Points: 0   Category :ASP.Net
In my application i want to create ascx file for creating table . As table is used in 4-5 web pages so i think of to create ascx file.can any gives me pointer how should i go for this any link?how can i pass data to ascx file in asp.net mvc?do i need to use ViewData["asda"] property to do this?

View Complete Post

More Related Resource Links

Count words in the ascx file



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.

CSS stylesheet in ascx file

This may be a stupid question, but I can't seem to get my ascx file for my user control to recognize a class in my stylesheet. I put the link at the top of the ascx file, but I'm new to user controls and not sure if this isn't working because I don't have <head></head> section at the top like aspx pages do. Or maybe I'm trying to get something to work that won't work, but I'd like to reference a CssClass on my linkbutton in the user control. I can, however, put a <style></style> section in the ascx page and it works fine, but I'd like to keep all of this in one css file and not have my styles spread out over many pages in case I ever have to make a change in the future. Thanks in advance! Chad

Protecting .ascx file in Visual Web Developer 2010 Express

Hello, I am working on an application that has several user controls (.ascx) of which I do not want to give away the code of. I have tried to search about it, but didn't get very far. I am using visual web developer 2010 express edition, so I cannot publish my website. Also, it doesn't have dotfuscator. What can I do?   Kind regards, LeBesjamain

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=, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.

Load control template file /_controltemplates/TaxonomyPicker.ascx failed



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=, 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.


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=,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


User:          WIN-WVLXK22C2TJ\Administrator

Computer:      WIN-WVLXK22C2TJ


Load control template file /_controltemplates/SearchArea.ascx failed: 'Microsoft.SharePoint.WebControls.SearchArea,Microsoft.SharePoint,Version=,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?



Missing linksection.ascx File

For unknown reasons, my linksection.ascx file is missing and now "Site Settings" won't load.  Does anyone know where I can download a copy of this file?

File Splitter in .Net

I love to do utility programs in .Net. And this is one of them. As I was playing with JSplit (a free file splitter program), I wondered if I could do it in .Net. The framework supports file operations like reading files in bytes and creating them. It is indeed easy to do file operations in .Net Basics on File operations

Upload Multiple File using JQuery in asp.net

In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.

I have also explained how to check for file type, file maximum size limit using jQuery & also using server side validation code.

Creating Excel file from C#

I used below coding for create a excel sheet.I got from on web site.
In below coding there is no problem.Its create the excel file.If i run second time,its ask to overwrite the current excel file.If I said "Yes" then it ok ,but If I select cancel button,its generate the Error message.The exception is

Upload a File to a SharePoint Document Library - Part I

The following helper class demonstrates a few techniques that allow documents to be uploaded to a SharePoint document library programmatically without using the API or a custom web service. You don't need to specify a document library name, and it will create any folders specified in the URL as required. File meta data will be updated if any properties are passed.

SmtpClient and Locked File Attachments

Got a note a couple of days ago from a client using one of my generic routines that wraps SmtpClient. Apparently whenever a file has been attached to a message and emailed with SmtpClient the file remains locked after the message has been sent. Oddly this particular issue hasn't cropped up before for me although these routines are in use in a number of applications I've built.

How to call an .exe file in .net

Sometimes a developer has to call an EXE from another EXE. While calling EXE there can be a requirement to pass parameter.

ClientAccessPolicy file in SharePoint 2010

I am upgrading my Silverlight demo code from the old beta to beta 2 and see that there are a few new considerations for the deployment of ClientAccessPolicy.xml files. In a previous post I demonstrated how to do this for SharePoint 2007. The heartburn that I get with that approach is any site collection owner or designer can drag the file into the site collection and open the site up to unwanted client access issues. In 2010 the virtual path provider no longer serves the files from the root of the site collection

Multi File Upload Using JQuery!

Everyone knows about the file upload in .NET. But the multi file upload is some what difficult in .NET. For that purpose we can have some AJAX or JQuery!. Jquery is the latest advanced version. It will give some animated upload. You can try it for your own!!!!

Transfering a file from Conputer to PDA

You can transfer one file at a time between your computer and another Bluetooth device by using the Bluetooth File Transfer Wizard. For example, you can transfer files between your computer and a mobile phone or a PDA. You can also transfer files between two computers that use Bluetooth.
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