digitalZo
asked on
Custom Page Class
A solution was given here:
https://www.experts-exchange.com/questions/23482039/iframe-and-parent-page-refresh.html
<<<<<<<<<
Ok in that case you could create a custom page class derived from System.Web.UI.Page and write the above code in that file . In those 10 pages where you need this functionality , dervie them from this custom page class . How ever note that we are refering to elements from the client side as parent.document.getElement ById('Drop DownList1' ). etc . So the expectation is that you have a drop down named 'DropDownList1' in all those 10 pages .
>>>>>>>>>
Can anyone show me how to do this?
https://www.experts-exchange.com/questions/23482039/iframe-and-parent-page-refresh.html
<<<<<<<<<
Ok in that case you could create a custom page class derived from System.Web.UI.Page and write the above code in that file . In those 10 pages where you need this functionality , dervie them from this custom page class . How ever note that we are refering to elements from the client side as parent.document.getElement
>>>>>>>>>
Can anyone show me how to do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your help but unfortunately that didn't work.
#1 On page load itself, it submits and gives the error "state" is null or void.
#2 it's giving the same problem as in the previous thread. that is when the value adds in the dropdown but when i do an autopostback from a different dropdown, the value disappears and i've to click refresh.
#1 On page load itself, it submits and gives the error "state" is null or void.
#2 it's giving the same problem as in the previous thread. that is when the value adds in the dropdown but when i do an autopostback from a different dropdown, the value disappears and i've to click refresh.
ASKER
sorry gives the error: state" is null or not an object.
public partial class ClientSideOptionAdd :QPage
The code below is the codebehind of the aspx page where the client side add happens .
Open in new window