Click here to Skip to main content
15,901,505 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

GridView Link button no working inside the gridview.

I have the gridview and it contains the link button.

when i click link butoon it should validate and popup the corresponding row dropdown values.

How to do this...?
Posted
Updated 23-Nov-11 1:20am
v3
Comments
gani7787 23-Nov-11 4:59am    
Still i'm struggling with validation.

My scenario is below.

I have the grid view and it contain startdate dropdown and "End Date" dropdown.

I have one grid column as Link "Edit" Button.

Dropdown1 values is "01-2010" (1st week & 2010 year)

Dropdown2 values is "20-2012" (20th week & 2012 year).

When i click the "Edit" Link button, then it should validate the dropdown values either JavaScript or Server side...?

what event should use when i click the Gridview "Edit" button for displaying the pop up alert...?

pls. help

 
Share this answer
 
hi,

use the command event for the link button in that event find the both dropdowns and check the date using datetime.compare() method which takes two parameters
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900