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


Top 5 Contributors of the Month
david stephan
Asad Ali
Fauzul Azmi
Post New Web Links

Database driven controls

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

Hi,

Here's my problem statement:

I have lots of pages in my application where there are rules which govern whether a control is mandatory, enabled or disabled. Mandatory checks are to be checked at client side & suitable error messages need to be displayed in case they are not filled in. Also, labels associated with mandatory controls need to be modified to show they are mandatory. Some of the rules come into affect on client side events e.g. a text box becomes mandatory only on change of a radio button (w/o making a server round trip). Because the logic of enabling/disabling/setting mandatory is getting convoluted, I wanted to store it in a database along with the rules which drive it. But I'm not able to do it for client side. Any body tried this before or have a solution for this?




View Complete Post


More Related Resource Links

Unit Testing: Apply Test-Driven Development to your Database Projects

  

Jamie Laflen extols the benefits of TDD when applied to database development-and supplies some useful techniques along the way.

Jamie Laflen

MSDN Magazine Launch 2008


Repeater with dynamic controls from database

  
Hello Guys, I am trying to find a good way of building out dynamic controls in a repeater from sql. Basically I have bunch of questions(male/female, where are you from) and question type(textbox, radio button) in sql. In the repeater I need to build the control object based on sql table and the answer. Does anyone have a good example or ideas who it can be done. Thanks, Madtown

WCF Service Architecture for database driven application??

  
Hi everyone.
I am developing a database driven wcf service.

Sir I just want to confirm if you have to number of entities(like Products, Orders) in your database then how will you implement those entities operation(each have min 5) in your service (Like three tier architecture) you

1. Will you create different contract for different entities??
2. Will you implement those different contract in different classes??
3. Will they be hosted on different endpoints??

Please reply soon i am waiting 
Thanks.

Database Permissions for Data Driven Web Sites

  
I currently manage SQL Servers for ecommerce web sites.  I am doing a migration to 6 (2node) clusters and want to start off with everything perfect and to the best practice.  Currently the devlopers all want the sql user for the site to have dbo on each database needed to run the site (about 4).  I want to tighten it up but without effectin the sites operation whenever uploads are requested.  I was told that Role based will work but everytime a sproc is altered i will have to redefine the role.  So  considering i do 12-20 uploads a week that will be to much to have to grant specific permissions everytime the sproc are changed.  I was also told to create a new schema on the database and grant permissions to the user for that schema.  I cant find anything that specificly talks about the best way to grant permissions to sql users for data driven web sites.  Was hoping someone here could tell me how i can achive this without taking down the site because a permission wasnt redefined after an upload.  I also need to encypt the credit card  column, currently using xp_crypt, but was thinking about removing the dependency and relying on sql; to do the encryptrion but not sure what is the best way to achive a security without slowing down the database dramaticlly becasue of the encrypt/decrypt

Create database driven organisation chart

  

Hi all,

I want to create a organisation chart using ASp.net 2.0 and C# 2.0,

i want to retrieve data from the database and create the organisation chart

my table structure is

subordinateid,managerId,level,manger_designation,subordinate_designation,subordinate_name,subordinate_email,manager_name,manager_email

can anybody please help me out

thanks in advance

 

thanks and regards,

kumar[:)] 

 


Multiple database support with Entity Framework

  
One of the features introduced in Entity Framework is being database independent. Which mean each database provider can support Entity Framework by implementing its provider.

This feature allows you build applications independent from the underplaying database provider. In this post I'm going to show how to build an application that support multiple databases using same conceptual model made by Entity Framework.

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.

Export Visio Database Table Names to Excel

  
If you use the Enterprise Architect edition of Microsoft Visio for data modeling regularly, then there is a good chance that at some point you've wanted to export just the table names into Excel. You might want to do this to map logical ERD entities to physical data model tables, track project status by entity, or track overlap between database versions.

Custom Controls in C# .NET

  
Embedding user controls in a Windows form is just like adding a simple button or text box that are already provided with .NET. These basic controls were written essentially like you code your own controls. Typically the controls you design are to be used in multiple forms or to modularize your code. These reasons help reduce the amount of code you have to type as well as make it easier for you to change your implementation. There should almost never be any reason to duplicate code because it leaves a lot of room for bugs. So, implementing functionality specific to your control in the control's source code is a good idea. This reduces code duplication as well as modularize your code, which is a good programming guideline.

MS SQL Server: Disconnect Users From Database - Kill User Session

  
If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

Accessing the different controls inside a GridView control

  
how we can access a particular control which resides inside a GridView control. In this article I will show you how you can access different controls inside a GridView control. We will see how we can access a TextBox control, a DropDownList control and a ListBox control. If you are working with ASP.NET 1.X then you might want to check out my article Accessing Different Controls Inside a DataGrid.

Using ASP.NET 3.5's ListView and DataPager Controls: Displaying Data with the ListView

  
Prior to ASP.NET 3.5, developers who needed to display a set of records could choose between the GridView, DataList, and Repeater controls. The GridView provides rich data features, but has a very boxy layout; the DataList and Repeater allow for a more flexible layout, but lack the "point and click" data features found in the GridView, DetailsView, and FormView controls. The ListView bridges the gap between layout flexibility and built-in data features.

This article, the first in a series of articles on the ListView and DataPager controls, looks at the ListView's many available templates and illustrates how to display data. Read on to learn more!

Publishing SQL Server Database using Publishing Wizard : Tips & Tricks

  
We can use SQL Server Publishing Wizard to deploy our local Database to remote hosting server/production server.This feature is available in SQL Server 2008/VWD 2008.

Below is the complete step by step guide of this process.

Adding Rows in GridView without using a Database

  
This article describes on how to add rows in GridView without using a database. Basically the GridView will be populated with data based on the values entered in the TextBox on Button Click and retain the GridView data on post back.

Adding Multiple Columns and Rows in GridView without using a Database

  
This article describes on how to add multiple columns and rows in GridView without using a database. Basically the GridView will be populated with data based on the values entered in each TextBoxes on Button Click and retain the GridView data on post back.

ASP.NET Database Tutorial

  
This tutorial will show you how to display data using the .NET GridView Control, ASP.NET 2.0 and VB.NET

The GridView control is a powerful tool and is simple to implement.

First, you will need to import the System.Data.SqlClient namespace.

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