Showing posts with label fails. Show all posts
Showing posts with label fails. Show all posts

Monday, March 26, 2012

Change a textbox style property on failed validation

Can someone point me in the right direction for implementing a textbox that has it's border changed when a RequiredFieldValidator fails? Ideally this would be using either an extender or the control toolkit.

Thanks.

Hi,

The easiest way would be using CustomerValidator control, then add javascript function to change the style if validation fails.
Hope this helps.


Thanks, I ended up using a validator extender that styles the textbox if the validation fails.


Thats nice...Smile

Saturday, March 24, 2012

CascadingDropDown with a Database fails when Table has more than 908 rows

Using CascadingDropDown with a Database fails when Table has more than 908 rows

with "SELECT * FROM TABLA1" CascadingDropDown fails with message [Method error 500] otherwise with "SELECT TOP 908 * FROM TABLA1" works fine.

can somebody help me? my Table has more than 908 rows, I need to load about 1100 rows

Thanks

It's due to this:http://ajax.asp.net/docs/mref/P_System_Web_Script_Serialization_JavaScriptSerializer_MaxJsonLength.aspx

The JSON serializer has a default max length (see the bottom of the entry). Increase that number in web.config.


thank you for your quick and accurate responseBig Smile now it works

have been a pleasure


hi,

i have tried to uncomment the <jsonserialization> attribute in the web.config file. i get an error at method error[12030]. i need to retrive about 2000 rows in my dropdown list. any help would be greatly appreciated.


ooops..its working now.i had previously included teh convert tag below the json tag in the web.config file. when i removed the converter tag, its working well...

Wednesday, March 21, 2012

CascadingDropDown Scenario!

Ok heres the deal, go the CascadingDropDown works on a simple aspx page but when I incorporate it into my MasterPages it fails with 12031 error code

Does the page has to derive from Page base class?

TIA

Hi,

Please make sure that the web method used by the cascadingDropDown can't be defined in masterpage, in this case, it can't be accessed from client side directly. Be sure to use a web service.