i ve the travel page.aspx
2 pannels in aspx page
1)basic details
i)travel purpose="textbox"
ii)travel amount = "textbox"
after filling the details ll choose the travel request
in that
i)departuredate = jquerydatepicker
ii)from place = textbox
iii)to place = textbox
iv)travel mode = textbox
add(button)
modify(button)
save(button)
after fill the all details press "ADD" that details ll show on GridView like these
departuedate from place to place travel MOde
here if i am choose save that above details ll save and redirect into HOME.aspx page in that ve column name DRAFT ll show like
departuredate(linkbutton) travel purpose travel amount
============================================================
(ve done these much )
now i m struck my requirement is.....
1)when i choose date from draft redirect into travelpage.aspx (pannel=1) with i m filled text
(pannel=2) show the gridview date what i m entered dates?
2)then i choose new request means travelpage.aspx (pannel=1 & pannel=2) ll be shown with out any text and dates.
(here i thought one idea when i was choose draft ll redirect travelpage.aspx what i entered the text.
making new request means ll redirect into travelpages.aspx it contains empty alwys(pannel=1 & panne=2) is it possible?
do the need full?
Rocky RockyPosted Jul 26, 2013, 12:28 AM
Raj BandiPosted Jul 25, 2013, 6:55 PM
Yes its possible
one of the way is to use request parameters
Let us say your pages are traveldetails.aspx and home.aspx.
For adding new details, just request traveldetails.aspx without any request parameters
For viewing existing details, add some parameter that will identify your last saved details and fills panels. say traveldetails.aspx?travelid=someid.
When you redirect to home.aspx after you save travel details, just update your draft record with last saved travel id
alternatively you can use session if you dont want to use request parameters. When draft row clicked , on server postback save that id in session and redirect to traveldetails.aspx and retrieve stored id from session. if id is null then new details.
Hope this helps,
Cheers,
Raj