C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

validations


Posted Date: 03 Dec 2008      Posted By: harika      Member Level: Bronze     Points: 1   Responses: 4



hi,
iam using validations for textboxes and also using refresh and submit buttons.
when i am entering values in some textboxes and click on refresh button the values are not refreshing and displaying remaining validation error messages whatever i had left the textboxes.my problem is dont show validations when i click on refresh button





Responses

Author: lalitha    03 Dec 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi

Set CausesValidation Property of Refresh button to False

Your problem might be solved

Regards
Lalitha



Author: Pradeep Iyer    03 Dec 2008Member Level: DiamondRating: 2 out of 52 out of 5     Points: 4

Hi Harika,

For this purpose, you just have to set the PostBackUrl property of the refresh button to the same page itself.

For example, if you are in the Default.aspx page, give the refresh button code as:

<asp:Button ID="testbtn" Text="Refresh" runat="server" PostBackUrl="~/Default.aspx" />

This will surely refresh everything in the page.

Regards,
Pradeep Y

Regards,
Pradeep Iyer



Author: Yugi    03 Dec 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 3

hi yar

except submit button
use
Set CausesValidation = false

for all controls which has autopostback = true(those controls post back page to server)



Author: Jayabalaji B    03 Dec 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

hi...
by use this code u can slove this problem

<asp:Button ID="btnsubmit" runat="server" PostBackUrl="~/Default.aspx"/>

B.Jayabalaji,
balarefutes@gmail.com



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Problem with formula running totals in crystal reports
Previous : How to Redirect Url
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use