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

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

RE : Beginners Nightmare .... PLEASE help

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :ASP.Net

I have just started learning the ins and outs of ASP.Net and am running Web Matrix while getting to grips with the formatting etc.

My problem is that any time i add a textbox webcontrol to a page, instead of displaying the actual textbox I get an 'Error Rendering Control' box stating that 'RegisterForEventValidation can only be called during Render()'!!!

I am at a loss as to why this is happening, which isn't just restricted to the textbox webcontrol but ALL the control's available except the Label & Literal webcontrols which seem to behave properly.

Could someone please please please provide some guidance for this newbie to ASP.Net in order that I can keep the current enthusiasm going to learn.


Thanks so much in advance

View Complete Post

More Related Resource Links

Static Class for Beginners

In general, the members of a class can be accessed by instance of that class when they are in public, but there comes a situation to access or call members of a class without an instance and this can be achieved by declaring them as static

A FocusScope Nightmare (Bug?): Commands Are Disabled

I've got a simple menu with some simple commands:   Code Snippet <Menu> <MenuItem Header="Edit"> <MenuItem Command="ApplicationCommands.Cut" /> <MenuItem Command="ApplicationCommands.Copy" /> </MenuItem> </Menu>     I've got a simple control:   Code Snippet <UserControl x:Class="WpfApplication2.UserControlRed" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid /> </UserControl>     The code-behind for this control enables handling the 'Cut' command: Code Snippet   public partial class UserControlRed : UserControl { public UserControlRed() { InitializeComponent(); this.CommandBindings.Add(new CommandBinding(ApplicationCommands.Cut, this.OnCut, this.OnAlwaysExecute)); } public void OnCut(object sender, RoutedEventArgs routedEventArgs) { Console.WriteLine("Cut"); } private void OnAlwaysExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = true; } }     This control is added to a simple page so it can be navigated to using a Frame:   Code Snippet <!-- The Menu Commands are enabed with this code. --> <Page x:Class="WpfApplication2.PageRed" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x=&

Reflection Effect For Beginners Using Silverlight 4

In this post I will show you how you can create the Reflection effect using the blend 4 in Silverlight application. It is really easy and nice to have the reflection effect in your application.Creating reflection and mirror effects is a little different than creating blur and shadow effects because these effects are not built into Silverlight. However, you can create reflection and mirror effects by using features present in Silverlight. Output of the this exercise will be as shown in the Image 1.

Drop Shadow Effects For Beginners

It is very easy to create drop shadow in the expression blend. In this post I will show you how you can use the expression blend 4 to create the drop shadow of the object.DropShadowEffect is a pixel shader effect that applies a shadow behind an object. The shadow is positioned at a specified distance from the object and at a specified angle.The output of this exercise will be as shown in the Image 1.

OWC11 Nightmare!!! Can't Install Named Instance

I'm being driven demented by OWC11! Please help before they take me away! I'm trying to install a new named instance of SQL 2005 Enterprise 64 bit on a box which already has a default instance patched to SP3.

Setup barfs at the OWC11 stage and it complains about missing files I can't even find in the installation media. I have absolutely no idea what to do now. I tried uninstalling / reinstalling OWC11 but to no avail.

My boss thinks installing a new instance is simple and he'll think I'm an idiot if I can't resolve this. He may be right of course but I'm stuck.

Is this a bug? Sure smells like one. Will this go away at SQL 2008?

Sorry to dump a lot of text but here's the OWC setup log -

=== Verbose logging started: 22/09/2010 19:32:47 Build type: SHIP UNICODE 3.01.4000.4042 Calling process: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\setup.exe ===
MSI (c) (0C:B4) [19:32:47:199]: Resetting cached policy values
MSI (c) (0C:B4) [19:32:47:199]: Machine policy value 'Debug' is 0
MSI (c) (0C:B4) [19:32:47:199]: ******* RunEngine:
******* Product: ******* Action:
******* CommandLine: **********
MSI (c) (0C:B4) [19:32:47:215]: Client-side and UI is none or basic: Running entire install on the serv

Using Bing Map Control in Silverlight For Beginners

In this post I will show you how to use the Bing map control in the silverlight application to show the location on map. For this you have to download the SDK for the Bing map control from here. By downloading and installing the Bing map SDK on your system you will have the libraries and the SDK for the Bing map on your system.Now let us start to create the application to use the Bing map.

DataPager Silverlight Control for Beginners

It was a long time when I have post on silverlight data grid control, at that time I was thinking of posting complete series of the post on the data grid control I have posted on the data grid grouping control but I didn't post on the paging of the data grid records. Now after long time I have time to see the silverlight and its paging control, I know there are lot of tutorial regarding data pager control But I have this for the absolute beginner who are just started their journey of the Silverlight.
For this example I have two controls added in my xaml are one is the data grid control and the second one is the data pager control.
You can see the code for the data grid control and the data pager control in the List 1, Here you can see that I have set the properties of the data grid control like auto generate columns to false mean I will set the columns for the data grid control, IsReadOnly is set to false mean this grid is used for the display of data and the vertical and horizontal grid line brush and GridLinesVisibility is set to All to show both the horizontal and vertical lines.

WCF programming for Beginners

Windows Communication Foundation (WCF) is a dedicated communication framework provided by Microsoft. WCF is a part of .NET 3.0. The runtime environment provided by the WCF enables us to expose our CLR types as services and to consume other existing services as CLR types.


In the world there are a lot of distributed communication technologies that exist. Some of them are:

ASP.NET Web Services (ASMX)
Web Services Enhancements (WSE)
Messaging (MSMQ)
.NET Enterprise Services (ES)
.NET Remoting

Silverlight RichTextBox Control For Beginners

Need to use the RichTextBox control of the Silverlight 4 and need ways to bind the RichTextBox control to the view model properties.

Cloud Computing for beginners

Types of Cloud Computing

Silverlight ItemControl For Beginners

Need to display collection of item but don’t want mouse over effect and selected item effect like we have in list box control and in the data grid control.

ASP.NET Interview Questions for Beginners and Professionals - Part 1

ASP.NET Interview Questions for Beginners and Professionals - Part 1

ASP.NET Interview Questions for Beginners and Professionals - Part 2

It's Part-2 in series of ASP.NET Interview Questions with detailed answers and necessary code examples.

ASP.NET Interview Questions for Beginners and Professionals - Part 3

Cache Management in ASP.NET?
Page Output Cache Vs Partial Page Cache Vs Application Data Cache in ASP.NET?
How to use Page Fragment or Partial Page Cache in ASP.NET?
What is the difference between Windows Authentication and Forms Authentication in ASP.NET?
What is Protected Configuration in ASP.NET?

ASP.NET Interview Questions for Beginners and Professionals - Part 4

This part of ASP.NET Interview Questions will continue with Security related Questions.

HTML5 For Beginners

HTML5 is the latest standard or version of this markup language that introduced lots of new features including new HTML5 DocType, Charset, new elements, attributes and much more.
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