473,386 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Keeping activex out of postback?


Hi,
I have a form which contains an activex control (showing an image) and some
other web server controls.
If i pick one of the web server controls, for example, a button and click
it, then a postback occurs.

This results in the activex control window being cleared of the image which
was in there.
The problem is that my user may have made some changes to the image, say
cropped it, and those changes get wiped on the postback.

Is there a way to avoid this?

thanks,
sincerely,
john scalco
Nov 18 '05 #1
2 1497
any postback will destroy and recreate the active/x control. you could
rewrite the control to cache the image on postback, and reload on the
postback render. if you can not change the control, put all the sever
control in an iframe, so the main frame never postbacks.

-- bruce (sqlwork.com)
"John Scalco" <js*****@rtpdig.org> wrote in message
news:ut**************@TK2MSFTNGP10.phx.gbl...

Hi,
I have a form which contains an activex control (showing an image) and some other web server controls.
If i pick one of the web server controls, for example, a button and click
it, then a postback occurs.

This results in the activex control window being cleared of the image which was in there.
The problem is that my user may have made some changes to the image, say
cropped it, and those changes get wiped on the postback.

Is there a way to avoid this?

thanks,
sincerely,
john scalco

Nov 18 '05 #2
any postback will destroy and recreate the active/x control. you could
rewrite the control to cache the image on postback, and reload on the
postback render. if you can not change the control, put all the sever
control in an iframe, so the main frame never postbacks.

-- bruce (sqlwork.com)
"John Scalco" <js*****@rtpdig.org> wrote in message
news:ut**************@TK2MSFTNGP10.phx.gbl...

Hi,
I have a form which contains an activex control (showing an image) and some other web server controls.
If i pick one of the web server controls, for example, a button and click
it, then a postback occurs.

This results in the activex control window being cleared of the image which was in there.
The problem is that my user may have made some changes to the image, say
cropped it, and those changes get wiped on the postback.

Is there a way to avoid this?

thanks,
sincerely,
john scalco

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Edward | last post by:
I am completely in the dark about ActiveX, but I up until yesterday I used to have a working app with ASP.NET. Now the client wants to fire up a Word document from inside the browser and have...
0
by: Kevin Ortman | last post by:
Hi all, I am wondering if the following is a known problem, and if there are any known solutions. Thanks in advance, Kevin Ortman
0
by: John Scalco | last post by:
Hi, I have a form which contains an activex control (showing an image) and some other web server controls. If i pick one of the web server controls, for example, a button and click it, then a...
5
by: Darrel | last post by:
I'm dimming a string at the top of my page so I can use it in several different subs on the page. I'm setting the text in one sub and then reading it in several. I'd like to also use this...
5
by: Kenneth P | last post by:
Hi all, I want to ensure some security in my asp.net apps. I wanna know that you is you comsuming my asp.net app. That's why I'm interested in finding out various ways to solve that problem....
1
by: Nayak | last post by:
On my web page, I have an activex control. Is it possible for the activex control to access some xml files and database on the WebServer ? If yes, How to do that ? If no, is there any method to do...
4
by: Paul M | last post by:
Callbacks in 2.0 appear to work even with ActiveX disabled in IE. There are 2 curious things I've noticed that if anyone has any knowledge on I'd appreciate. 1. If ActiveX is disabled you do...
12
by: Cindy Lee | last post by:
When I do a sorta on 1 table, then the other table goes back to the original order. What can I set so, it keeps the order of the other current gridview's order. I set all the gridview values...
1
by: Jialiang Ge [MSFT] | last post by:
Hello Philippe, In addition to bruce's points, I'd suggest the KB article http://support.microsoft.com/kb/317392. It demonstrates how to host an ActiveX control in ASP.NET (for your first...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.