The below script will help you to hide Validationsummary at client side .
Monday, April 26, 2010
How set focus to a control in a ModalPopupExtender while loading and hiding?(add_shown & add_hiding ModalPopupExtender Events )
In this topic, I’ll discuss the Client events we usually need while using ModalPopupExtender. The add_shown fires when the ModalPopupExtender had shown and add_hiding fires when the user cancels it by CancelControlID,note that it fires before hiding the modal.
They are useful in many cases, for example may you need to set focus to specific Textbox when the user display the modal, or if you need to reset the controls values inside the Modal after it has been hidden.
You can attach your fucntions by using the Sys.Application.add_load(functionName)
Note :"functionName" should be the name of the function which is used to initialize the events add_hiding and add_shown of the ModalPopupExtender
Inside the fucntion "functionname" you can attach the your functions to the events like below
Please go through the full expample below to understand the woking of these events better.
They are useful in many cases, for example may you need to set focus to specific Textbox when the user display the modal, or if you need to reset the controls values inside the Modal after it has been hidden.
You can attach your fucntions by using the Sys.Application.add_load(functionName)
Note :"functionName" should be the name of the function which is used to initialize the events add_hiding and add_shown of the ModalPopupExtender
Inside the fucntion "functionname" you can attach the your functions to the events like below
Please go through the full expample below to understand the woking of these events better.
Sunday, April 25, 2010
How check a constraint with if exixts in sql server 2005?
By using below script you will be able to check the contraint with if exist.
if not exists(SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE TABLE_NAME='CrmUserHirarchey' AND CONSTRAINT_NAME='FK_CrmUserHirarchey_aUsergroups' ) begin ALTER TABLE [dbo].[CrmUserHirarchey] WITH CHECK ADD CONSTRAINT [FK_CrmUserHirarchey_aUsergroups] FOREIGN KEY([UserGroupID], [CompanyId]) REFERENCES [dbo].[aUsergroups] ([UserGroupID], [CompanyID]) ALTER TABLE [dbo].[CrmUserHirarchey] CHECK CONSTRAINT [FK_CrmUserHirarchey_aUsergroups] end
if not exists(SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE TABLE_NAME='CrmUserHirarchey' AND CONSTRAINT_NAME='FK_CrmUserHirarchey_aUsergroups' ) begin ALTER TABLE [dbo].[CrmUserHirarchey] WITH CHECK ADD CONSTRAINT [FK_CrmUserHirarchey_aUsergroups] FOREIGN KEY([UserGroupID], [CompanyId]) REFERENCES [dbo].[aUsergroups] ([UserGroupID], [CompanyID]) ALTER TABLE [dbo].[CrmUserHirarchey] CHECK CONSTRAINT [FK_CrmUserHirarchey_aUsergroups] end
How to append a double quotes to a string varibale in c# .net (“)?
You can add double quots to a string varibale in C# like below.
Please find below an example, how theses values is passed to a javascript fucntion to show it in message box while chicking on an image.
Please find below an example, how theses values is passed to a javascript fucntion to show it in message box while chicking on an image.
How to append a double quotes to a string in c# .net (“)?
You can add double quots to a string in C# like below.
string Name = @"""Helloworld""";
Please find below an example, how theses values is passed to a javascript fucntion to show it in message box while chicking on an image.
string Name = @"""Helloworld""";
Please find below an example, how theses values is passed to a javascript fucntion to show it in message box while chicking on an image.
Friday, April 23, 2010
Having trouble stepping into a stored procedure Visual studio (get canceled by user)
This error can be solved by adding your logged in user account as sysadmin user in SQL server .
How to assign value to asp.net literal or Label using JavaScript?
For an asp.net Label you can assign value using the innerText property
For an asp.net Literal you can assign value using the innerHTML property
For an asp.net Literal you can assign value using the innerHTML property
Subscribe to:
Posts (Atom)