Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 28, 2012 08:37 PM by sethach
Dec 23, 2012 05:58 PM|LINK
Dec 23, 2012 07:08 PM|LINK
Can anybody tell me if there is in general something wrong with my approach?
It sounds much more complicated than it needs to be.
Dec 23, 2012 08:56 PM|LINK
Dec 24, 2012 07:00 AM|LINK
Try to use Ispostback and Postback check in your page_load...
if ( !Ispostback)
//content to be sent to the page or controls
// To post content only when post back occurs use as below
if ( Ispostback)
Dec 24, 2012 11:39 AM|LINK
I tried it, but it did not help.
So I started a total new project from scratch (the previous one was manually converted from an old frame based version)
With the new simple version I got the same result:
Providing the iframe with a src addr from JScript in the way
CuWindow = document.getElementById('ContentPlaceHolder1_GraphWindow');
Causes that the "Test.aspx" is displayed very short and then it disappears.
Then i did it from the server with an asp:button in this way:
now it stays permanent. I assume that the problem is, that after I set the address with JScipt the
src will be overwritten with on from the server - and in my first case this was an empty address. That seems to be the reason why it disappears after a short time.
have to admit that I am really confused with properties that I use/set with JScript and from the server.
For exampel the asp:listbox caused a lot of grey hairs to me. When I set the content with JScript, the list box seems to be schizphrenic. The items "added" are different in the same box for the server and for JScript on the client.
back to my project. On the client I am gathering some selections done by the user in a listbox. The content of this listbox is supplied as parameter to an aspx page, which draws graphs from this.
As above mentioned with the schizoprenic lb I keep the selection also on a server variable in parallel to sync the client with the server.
the user on the client fires the call (and there is my problem with the JS src supply and the disappear of the content) I got the effect that the content shows up briefly, and then will be replaced by the server with nothing.
there a way to keep the src setting of JScript and not get it overwritten by the server?
I could try to modify the whole project to be based on server calls.
My problem for this is, that the selection of itemes for the curves is done bey an OnClick event on an asp:label. I do not know if it is possible to catch this click on the server?
Dec 26, 2012 06:30 AM|LINK
In order to resolve your issue, please try to upload your project to skydrive and provide the link. I want to test locally and try to find the issue.
Dec 28, 2012 08:37 PM|LINK