Showing posts with label perform. Show all posts
Showing posts with label perform. Show all posts

Saturday, March 31, 2012

Strange behavior issue

Hi everyone,

I have a asp.net web site with a button to perform a popup window

the window is show modal dialog window.

the popup works fine until there is a refresh of the popped up window

through a postback.

It doesn't refresh the popped up window, it creates a new window entirely.

Has anyone seen this before and how do i stop it from opening a new window on postback?

thanks

tony

That's because is a DIALOG box... It's not designed for interaction. There are ways but its really not standard for web programming. You are better off with a regular popup page or doing it in the page you are in.


the popup works fine until there is a refresh of the popped up window through a postback."

the popup window is a client side window build upon the client machine using some windows API (::createwindowmaybe), u can never expect to refresh/modify it using post back.

Hope my suggestion helps :)

Tuesday, March 13, 2012

Strange problem

I Have a strange problem. I have build a form in wich are some controls. Two textbox and one dropdown control.
The user can perform a search selecting a value in dropdown or inserting in textbox and click on search button.
My sub verify if dropdown control or textbox changed and build sql string.
But the strange think is that all run only when I use dropdown. If I insert value in textbox and not dropdown search don't work.
The code don't run. Why?
I have inserted OnTextChanged event in textbox html code and OnSelectedIndexChanged in dropdown html code but nothing to do!
HELP ME, PLEASE!You need to post your code so we can help you.