« first day (1 day earlier)    last day (14 days later) » 

4:36 AM
hi
 
 
1 hour later…
5:53 AM
hii
sorry
was in meeting
 
how r u ?
 
i m fine
how are u ?
 
fine
 
sorry for disconnecting
 
its ok
 
5:54 AM
my manager came dats y
 
i can understand
 
thanks..
did u saw at last
what was happening ?
 
i saw your code yesterday
 
yes
 
i think update it is working fine except that when you click on update button
you should show that div
it is hidden by default
 
5:56 AM
yes
I will let you know that
in sometime
as I have some other task
 
Bro, if you dont mind can I ask you one different question ?
 
ok
i implemented the pagertemplate
from here
did u saw ?
u there ?
 
yes
saw it
 
6:10 AM
ok
the problem here is
when I change the selection from the dropdown list
the gridview gets distracted
 
style gets disturbed ?
 
yes
it is working fine on other aspx page, when I implement on the page in which I require
it is not working
 
have you added the css file in this page
 
yes one css file
wait i will show u
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<link rel="stylesheet" href="http://localhost:49924/ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
one js and one css
 
is css path correct
 
6:14 AM
this is online css path
?
does it need path from the site
 
yes i think this is not corrrect path
 
ohh k
localhost is coming
i changed like this now
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jqu‌​ery-ui.css" />
is it fine ?
 
yes this looks good
 
ok
let me try now
no it is not working now also
same the row is getting disturbed
 
can u compare the other page with this page to check what is difference ?
 
6:20 AM
ok
i am getting this error
System.Web.UI.WebControls.DataControlFieldCollection must have items of type 'System.Web.UI.WebControls.DataControlField'. 'PagerTemplate' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.
at <PagerTemplate>
 
have you changed the code ?
 
yes
i m implementing it in new page
 
change <pagertemplate > to <asp:PagerTemplate >
i think this is iaaue
issue*
 
ok
now i can see the page
but i cant see the pager template here
 
i think you need to set some properties for this
check the link you have given to me
there is full details
 
6:34 AM
ok
 
i have worked with gridview too much :)
 
yes now me also working, learning each part of gridview
i checked all the things here
still the pager is not coming
yes
now it is coming
the drop down also
is coming
 
so what was the issue ?
 
bro,
actually
i did not write here in gridview
PagerSettings-Mode="NextPreviousFirstLast" PagerSettings-FirstPageText="First" PagerSettings-LastPageText="Last"
it is gridview property
 
6:41 AM
am i right ?
 
yes i think it is needed
 
bro, now one thing same is happening here
there are total 6 rows in the grid
I have set PageSize=3
so my dropdown shows me
two value
1 and 2
did u got it ?
 
so, when I select the 2 value, the gridview postbacks
and the rows gets distracted.. y ?
 
i remember there would be some property that row should start from 0 or 1
have enabled paging >
 
6:44 AM
yes
paging is enables
enabled
 
there will be somesetting you are missing
 
i have set it as
AllowPaging="true"
do you want to see my gridview code ?
 
have you created an event when dropdown changes ?
 
i checked and i think everything which is required is there in the grid
Yes I have created it
SelectedIndexChanged event
 
and what is code of this selectedindexchanged
 
6:47 AM
wait i will give u
protected void ddlPages_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow pagerRow = grdCSRPageData.BottomPagerRow;
DropDownList pageList = (DropDownList)pagerRow.Cells[0].FindControl("ddlPages");
// Set the PageIndex property to display that page selected by the user.
grdCSRPageData.PageIndex = pageList.SelectedIndex;
}
 
looks fine now debug it and check what's happening ?
 
ok
i m putting breakpoint on SelectedIndexChanged
its not going to the breakpoint
when I changed the selection from the dropdown
 
is autopostback=true
 
yes
<asp:DropDownList ID="ddlPages" runat="server" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged" AutoPostBack="true" CausesValidation="false" ></asp:DropDownList>
 
and page refreshes when you change ?
 
6:57 AM
yes
page refreshes
 
it means it is firing the event ?
 
yes
but y it is not hitting the breakpoint ?
 
how have you run the application ?
 
means
?
 
Press F5 from visual studio
 
7:00 AM
ok
did that
still not hitting the break point
 
put break point on page load and see if something is wrong there
 
ok
the page_load break point is working
it is going inside
if(!IsPostBack)
 
ok now change dropdown value and check
 
ok
when I change the dropdown value
the debugger is not going inside if(!IsPostBack)
on page_load first the value of postback is false
 
yes it should not go
wait i am also trying the same
 
7:08 AM
yes it is not going
ok
 
7:34 AM
u there ?
 
i am changing the logic of working now
Should I try this?
 
wait i am trying
and i don't think you should change logic
 
7:51 AM
ok
i am waiting
do let me know if it works or not
i am going for friday prayer
will be back after that...
 
 
2 hours later…
9:39 AM
hi
 

« first day (1 day earlier)    last day (14 days later) »