Click here to Skip to main content
12,956,433 members (71,085 online)
Rate this:
 
Please Sign up or sign in to vote.
Hi all,

May be my previous question is not so specific so that I didn't get any answer.

I have made a gridview in my aspx page which shows result of students.

I have put calender extender in all columns in edit item template so that the user can change the date.

In the item template I put a label which shows dates from database.

In that gridview's row data bind event I have put code something like if there is some test in that month then only it will shows the date.

I used the command field to edit the date.

Now the problem is when I click the edit link it provides calender for all columns in spite of the pericular rows which have test.

Can any one suggest me how can i do this.
Posted 23-Nov-12 2:16am
Hiral21336
Comments
Devang Vaja 23-Nov-12 8:24am
   
Now the problem is when I click the edit link it provides calender for all columns in spite of the pericular rows which have test????
what is meaning of that...hmm Hiral..!!??
Hiral21 23-Nov-12 8:27am
   
Exactly...
Hiral21 23-Nov-12 8:45am
   
I don't want calender for all columns.
I just want columns where there are some date.
It can be possible that the date field will be empty too..
So I just want calender for the columns which have date..
Devang Vaja 23-Nov-12 8:52am
   
see ajax is client side technology once u have put all calenders in form it will be open always after u put so better option is show only that columns which have date values other columns which have not value hide it..i dont know what's ur logic but i want to tell u one thing that
WE CANT CATCH AJAX OBJECT AT SERVER SIDE
other thing what u can do is make client side event and in that call server side event see this link..
http://forums.asp.net/p/1610663/4116138.aspx
Hiral21 26-Nov-12 6:09am
   
Thanks Devang...I solved it..
Devang Vaja 27-Nov-12 4:38am
   
How u solve Yar...Hiral???

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hey try to do this thing using Hover Menu Extender[^]
  Permalink  
Comments
Hiral21 23-Nov-12 8:29am
   
@Krunal R Nice Idea..I must try...It can be helpful..
Thanks..
Krunal R 23-Nov-12 8:34am
   
Thanks Hiral.. :) Good Luck

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

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,869
CHill60 3,550
Maciej Los 3,302
ppolymorphe 2,080
Jochen Arndt 1,973


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 23 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100