some words from technology briefcase

Tag: asp.net

AccordViaggi.com is now online!

by flotruglio on lug.04, 2010, under are you curious?

Finally,
we are happy to show the last web site based on joack management system!
Speaking about the website, this is a marketing website to show fantastic places that there are in Sicily. There are many section and soon we will add a little Ecommerce.
But if you want to complete the overview you also need to go and see: www.accordviaggi.com.
Otherwise, speaking of the render engine, this is the last implementation of the joack management system,

(continue reading…)

Leave a Comment :, , , , , , , more...

How to set validationgroup for validationsummary…Client-Side

by flotruglio on gen.24, 2010, under .NET

Here’s a tip on setting the validation group property for a ASP.NET ValidationSummary Control in JavaScript.

For Example

If we have a large form with three input areas.
Each input area has its own Save/Cancel button set and its own ValidationGroup. As well, we have a single ValidationSummary control on the master page to display errors raised by the validation controls.

Based upon which Save button user presses, we want to be able to dynamically set the validationGroup on the Validation Summary control so that it picks up the error messages from the validators in the selected validation group – all client-side.

If you look at the client-side representation of the ValidationSummary control (Page_ValidationSummaries[0]) in a quick watch, you are discouraged when you do not see a property for ValidationGroup, leading you to believe that this value is not exposed as a client-side attribute of the ValidationSummary control:

However, fear not, when you get into an immediate window, you can ‘manually’ append “.validationGroup” to the ValidationSummary object….. and, it works!

And, sure enough in your JavaScript function, you too can set your validation group on your ValidationSummary control:

    //-- Dynamically set validation group on a validation summary control.
   function SetValidationGroup(validationGroupName) {
      //debugger;
     //-- Check for null validation group name
     if (validationGroupName == null) {
         return;
     }
     //-- Assign validation group name to validationSummary control
     Page_ValidationSummaries[0].validationGroup = validationGroupName;
    }

Then, in you button control, add the ‘onClientClick=”SetValidationGroup(validationGroupName);”

<asp:Button ID=”myButton” runat=”server” Text=” Save “OnClick=”myButtonServerSideEventHandler” ValidationGroup=”ValidationGroupForFirstButton”
OnClientClick=”SetValidationGroup(ValidationGroupForFirstButton);” />

Keep in mind that this example ‘assumes’ that you have a single ValidationSummary control (Element 1 of the zero-based Page_ValidationSummaries collection). You know what they say about, “assume.”  Add some code to ensure that you are setting the correct ValidationSummary control.

good Luck!

1 Comment :, , more...

How to Extend a TextBox to use Google Maps

by flotruglio on gen.09, 2010, under C#, Developers, javascript

Do you need to store latitude/longitude coordinates of an address, or show a little input to choose a point in Google Maps? Here is a little solution to this problem: extend the TextBox to interact with Google Maps!

read my full post at http://www.codeproject.com/KB/custom-controls/gmapinput.aspx

Leave a Comment :, , , , , , , more...

dizi izle dizi izle dizi izle dizi izle dizi izle dizi izle dizi izle çizgi film izle bakugan izle dizi izle kayu izle caillou izle ben 10 izle ben ten izle