.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

A question with ASP.NET Web Forms

Posted By:      Posted Date: September 12, 2010    Points: 0   Category :ASP.Net
Hello friend...I 'm @C Sharp Coder ;  I have a problem.It is with ASP.NET Web Forms.I want transfer other aspx page to my aspx page with include but I don't look a include function like Response.Include("pageName.aspx"): I want dynamic include :)Thanks for all replies :)C Sharp CoderWPF/Silverlight Software Developer

View Complete Post

More Related Resource Links

Windows forms important question

Hi, I have a windows forms application with a number of forms. I have added a new form to it and now i want this form to appear first at runtime. Actually the new form that i added is a mainn menu form so that is why i wanted it to appear first at runtime. Please tell me how can i make this main menu form to appear first at runtime. Thank you, Syed

Basic Web Forms Question Regarding Returning Html To The page


I have a web application I am working on but this is using simple web forms.

Long story short I want to create a commenting system similar to that of google sites for example.

All comments are saved to the database against a user id and submission id (meaning they are relevant to the page they are presented on).

Currently I am displaying them in a table using GridView which is kinda well annoying.

Is there anyway to return custom HTML from the server to a palceholder control or something of the like.

Basically run a for loop and fill up a placeholder control with html that will render appropriatelly

I know, its basic but I am a total noob.

Profiling Question for Widnows Forms Application



I am profiling a windows forms application using ANTS profiler.

One of the forms has got many user controls and it takes time to create these user controls.

The pro filer shows the following line taking around 700ms for the first control.

        private System.ComponentModel.IContainer components = null;

The subsequent ones takes lesser time for executing this line, but still the last one take 200 ms.

This is affecting my start up time.

Is there any workqroung to make it faster?



A Question about using Javascript with Web Forms


I am just learning to use Javascript and web forms.  I have a few questions that I hope to get answers to:


  1. Am I correct that when doing things like hiding controls or hiding HTML elements on a page that I should use Javascript to do so as opposed to setting the Visible property on the control?
  2. If I set a control or element to hidden using Javascript should I also set the Visible on the webform control as well so that the value on the webform control is in synch with the value set in Javascript?
  3. Are there any guidelines as to when to set something in my C# code on a control as oppossed to when I should use Javascript to do the same thing?


Windows Forms Databinding question


  I have a custom control (extended TextBox) that I added Ghost text functionality to.

Essentially if the text value is empty, the textbox displays the ghost message in a light gray color in the textbox.
If the 
ghost message is displayed and the user sets focus to the TextBox, the Text value is then reset to empty string.

My problem comes into play when databinding the textbox Text field. If the user clears the text form the TextBox then the value that is updated to the binding source is the ghost message. I don't want that, I am wondering if there is a way to interrupt the binding source update value, and inject an empty string instead of the ghost message.

I hope I explained it effectively, any help would be appreciated.

Routing for Web Forms in ASP.NET 4.0

posted a prototype demonstrating how one could use Routing within Web Forms. This is something you can do today with ASP.NET 3.5 SP1, because of the work we did to separate Routing from ASP.NET MVC. I would have liked to include Web Form Routing as part of the Routing feature when we were working on SP1, but we didn't have the time to do so in a robust manner before SP1 was locked down.

Application Architecture in Windows Forms 2.0

Applications have special support in Windows Forms. For starters, you can manage and tailor your application's lifetime, and, when the work flow is disrupted by an unhandled exception, you can choose from several methods of response. Then, there are several application models that you can employ, including Single Document Interface (SDI) and Multiple Document Interface (MDI) applications, each of which can support either multiple-instance or single-instance mode, the former the VS05 default and the latter requiring special consideration. All applications, however, can discover and use a wide variety of information about the system and environment they execute in.

Application Architecture in Windows Forms 2.0-Single-MDI Applications

Consider an MDI application like Microsoft Excel; files opened from the file system (by double-clicking) are all opened as separate child windows within the parent Excel window.7 For the first instance of an MDI application to open a new child window to display the file that was passed to the second instance of the application, the second instance must be able to communicate with the initial instance.

Explained: Forms Authentication in ASP.NET

This module explains how forms authentication works in ASP.NET version 2.0. It explains how IIS and ASP.NET authentication work together, and it explains the role and operation of the FormsAuthenticationModule class.

Using Forms Authentication in ASP.NET - Part 1

Classic ASP developers often had to "roll their own" authentication scheme, however, in ASP.NET much of the grunt work has been taken out. This article outlines how things have changed and how FormsAuthentication can be used to secure a Web site with a minimal amount of code.

ASP.NET Forms Authentication - Part 1

Often, in legacy Web applications, users authenticate themselves via a Web form. This Web form submits the user's credentials to business logic that determines their authorization level. Upon successful authentication, the application then submits a ticket in the form of a cookie, albeit a hard cookie or session variable. This ticket contains anything from just a valid session identification access token to customized personalization values.

ASP.NET forms authentication with roles

.A timeout is specified in minutes. This is "time since last request" not the "time since login". If a login is indicated to be persistent (described later) this is ignored.
.A protection method is specified for the cookie.
Next I wanted to specify a folder to which access is restricted to people who have logged in. To do this I entered the following code in the web.config file (beneath

Forms Authentication in ASP.NET

In this tutorial you will learn about Forms Authentication in ASP.NET 2.0 - Forms Authentication class, Cookie Domain, Forms Cookies, The Login Control, Signin, Signout, Authenticate, Redirect, Login Status, Login Name and Login View Controls.

Determine whether Forms Server is installed on a server

Check whether the Microsoft.Office.InfoPath.Server.dll and FormServer.aspx files are installed on the server.

How to programmatically add controls to Windows forms at run time by using Visual C#

Create a Windows Forms Application
Start Visual Studio .NET or Visual Studio 2005 or a later version, and create a new Visual C# Windows Application project named WinControls. Form1 is added to the project by default.
Double-click Form1 to create and view the Form1_Load event procedure.
Add private instance variables to the Form1 class to work with common Windows controls. The Form1 class starts as follows:

How to Localize Windows Forms and Change the Language at Runtime

Localization is the process of customizing your application to a particular language, culture or locale. Visual Studio provides support for localizing Windows Forms with much ease. In this article, we will see how to localize windows forms and give the user the ability to change to his preferred language at runtime.
When you run a localized application, the appearance is determined by two culture values. The UICulture property is used to specify which resource files will be loaded for the form. The Culture property, on the other hand, determines how strings such as dates, numerals, and currency amounts are formatted.
Let us see the steps required to create a localized form. You can then expand this example and adopt the same approach for the rest of the forms in your project

Localizing Windows Forms

The Visual Studio project system provides considerable support for localizing Windows Forms applications. There are two ways to generate resource files using the Visual Studio development environment: one is to have the project system generate the resource files for localizable UI elements such as text and images on the form. The resource files are then built into satellite assemblies. The second way is to add a resource file template and then edit the template with the XML Designer. A reason for doing the latter is to make localizable strings that appear in dialog boxes and error messages. You must then write code to access these resources.

This walkthrough topic demonstrates both processes in a single Windows Application project.

You can also convert a text file to a resource file; for more information, see Resources in Text File Format and Resource File Generator (Resgen.exe).

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