473,320 Members | 2,117 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,320 software developers and data experts.

postback in ASP.NET

ma
Hello,

I want to create an image map using Zedgraph (www.ZedGraph.org). I can
create an imagemap so that each point in the graph has a link and user can
press that link to do some action. To bring back the user to the same page,
I used the URL of the point to point to the same page. The system is working
well if is it by its own but when there are some other controls on the page,
it fail to work since controls losing their states.

After some research I come to the conclusion that to solve this problem I
need to generate a dummy postback when the user clicked on a point on the
graph and I read about __dopostback().

My questions:

1- Is there any way that I can use a link and the controls don't lose their
states?

2- Is there any way that I can generate a dummy postback using a URL?

3- Any other suggestion?

Regards


Nov 22 '07 #1
4 1609
Use an "ImageButton" and detect the x/y location on the server side.
The click event will have the x and y in the ImageClickEventArgs
parameter.

-----Original Message-----
From: ma [mailto:ma@nowhere.com]
Posted At: Thursday, November 22, 2007 9:59 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: postback in ASP.NET
Subject: postback in ASP.NET

Hello,

I want to create an image map using Zedgraph (www.ZedGraph.org). I can
create an imagemap so that each point in the graph has a link and user
can
press that link to do some action. To bring back the user to the same
page,
I used the URL of the point to point to the same page. The system is
working
well if is it by its own but when there are some other controls on the
page,
it fail to work since controls losing their states.

After some research I come to the conclusion that to solve this problem
I
need to generate a dummy postback when the user clicked on a point on
the
graph and I read about __dopostback().

My questions:

1- Is there any way that I can use a link and the controls don't lose
their
states?

2- Is there any way that I can generate a dummy postback using a URL?

3- Any other suggestion?

Regards


Nov 22 '07 #2
Thanks,
seems a very good way to solve the problem. How should I use ImageButton to
encapsulate a ZedGraph? I know that it generate an image but how can I put
the zedgraph generated image inside a imagebutton?

Regards
"Dave Bush" <da*******@dmbcllc.comwrote in message
news:8C97A62914D740A8A7C664836D4E3E20@OfficeVista. ..
Use an "ImageButton" and detect the x/y location on the server side.
The click event will have the x and y in the ImageClickEventArgs
parameter.

-----Original Message-----
From: ma [mailto:ma@nowhere.com]
Posted At: Thursday, November 22, 2007 9:59 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: postback in ASP.NET
Subject: postback in ASP.NET

Hello,

I want to create an image map using Zedgraph (www.ZedGraph.org). I can
create an imagemap so that each point in the graph has a link and user
can
press that link to do some action. To bring back the user to the same
page,
I used the URL of the point to point to the same page. The system is
working
well if is it by its own but when there are some other controls on the
page,
it fail to work since controls losing their states.

After some research I come to the conclusion that to solve this problem
I
need to generate a dummy postback when the user clicked on a point on
the
graph and I read about __dopostback().

My questions:

1- Is there any way that I can use a link and the controls don't lose
their
states?

2- Is there any way that I can generate a dummy postback using a URL?

3- Any other suggestion?

Regards


Nov 22 '07 #3
Sorry, I'm not familiar with that product.

-----Original Message-----
From: mans [mailto:(myname_here)_1*****@yahoo.com]
Posted At: Thursday, November 22, 2007 10:55 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: postback in ASP.NET
Subject: Re: postback in ASP.NET

Thanks,
seems a very good way to solve the problem. How should I use ImageButton
to
encapsulate a ZedGraph? I know that it generate an image but how can I
put
the zedgraph generated image inside a imagebutton?

Regards
"Dave Bush" <da*******@dmbcllc.comwrote in message
news:8C97A62914D740A8A7C664836D4E3E20@OfficeVista. ..
Use an "ImageButton" and detect the x/y location on the server side.
The click event will have the x and y in the ImageClickEventArgs
parameter.

-----Original Message-----
From: ma [mailto:ma@nowhere.com]
Posted At: Thursday, November 22, 2007 9:59 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: postback in ASP.NET
Subject: postback in ASP.NET

Hello,

I want to create an image map using Zedgraph (www.ZedGraph.org). I can
create an imagemap so that each point in the graph has a link and user
can
press that link to do some action. To bring back the user to the same
page,
I used the URL of the point to point to the same page. The system is
working
well if is it by its own but when there are some other controls on the
page,
it fail to work since controls losing their states.

After some research I come to the conclusion that to solve this
problem
I
need to generate a dummy postback when the user clicked on a point on
the
graph and I read about __dopostback().

My questions:

1- Is there any way that I can use a link and the controls don't lose
their
states?

2- Is there any way that I can generate a dummy postback using a URL?

3- Any other suggestion?

Regards


Nov 22 '07 #4
Thanks you your nice lead. I will try to find how I can do this bymyself.

Regards
"Dave Bush" <da*******@dmbcllc.comwrote in message
news:44DDC2D8FBEE437C99D8D21620E6CBD9@OfficeVista. ..
Sorry, I'm not familiar with that product.

-----Original Message-----
From: mans [mailto:(myname_here)_1*****@yahoo.com]
Posted At: Thursday, November 22, 2007 10:55 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: postback in ASP.NET
Subject: Re: postback in ASP.NET

Thanks,
seems a very good way to solve the problem. How should I use ImageButton
to
encapsulate a ZedGraph? I know that it generate an image but how can I
put
the zedgraph generated image inside a imagebutton?

Regards
"Dave Bush" <da*******@dmbcllc.comwrote in message
news:8C97A62914D740A8A7C664836D4E3E20@OfficeVista. ..
>Use an "ImageButton" and detect the x/y location on the server side.
The click event will have the x and y in the ImageClickEventArgs
parameter.

-----Original Message-----
From: ma [mailto:ma@nowhere.com]
Posted At: Thursday, November 22, 2007 9:59 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: postback in ASP.NET
Subject: postback in ASP.NET

Hello,

I want to create an image map using Zedgraph (www.ZedGraph.org). I can
create an imagemap so that each point in the graph has a link and user
can
press that link to do some action. To bring back the user to the same
page,
I used the URL of the point to point to the same page. The system is
working
well if is it by its own but when there are some other controls on the
page,
it fail to work since controls losing their states.

After some research I come to the conclusion that to solve this
problem
>I
need to generate a dummy postback when the user clicked on a point on
the
graph and I read about __dopostback().

My questions:

1- Is there any way that I can use a link and the controls don't lose
their
states?

2- Is there any way that I can generate a dummy postback using a URL?

3- Any other suggestion?

Regards



Nov 22 '07 #5

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

Similar topics

5
by: Matthew Louden | last post by:
I created simple ASP.NET web application to test how AutoPostBack property in a web control works. I set AutoPostBack property to be true of a web control. When I run the application, here's the...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
8
by: walesboy | last post by:
greetings - I have a btnSubmit button with a Handles btnSubmit.click which works great if all the user does is click that button. But, if the user ALSO changes a text box on the page (which...
4
by: Jim Hammond | last post by:
It would be udeful to be able to get the current on-screen values from a FormView that is databound to an ObjectDataSource by using a callback instead of a postback. For example: public void...
1
by: Timbo | last post by:
Hi all, This is my first message here so i'll try and include all the information that will help you help me out, if possible. Basically I am using C# in ASP.NET 2.0 and have a Repeater...
2
by: Wizzard | last post by:
I have a repeater with and imagebutton on a page useing VS2005 ASP.Net 2.0 <asp:Repeater ID="Repeater1" runat="server" > <ItemTemplate> <div> <asp:ImageButton ImageUrl="button.gif"...
11
by: antonyliu2002 | last post by:
I know that this has been asked and answered thousands of times. As a matter of fact, I know that I need to say If Not Page.IsPostBack Then 'Do something End If for things that needs to be...
2
by: Nathan Sokalski | last post by:
I have a DataList in which the ItemTemplate contains two Button controls that use EventBubbling. When I click either of them I receive the following error: Server Error in '/' Application....
7
by: Tony Girgenti | last post by:
Hello. I'm trying to undetrstand ASP.NET 2.0 and javascript. When i have a button and i click on it and i see the web broswer progress bar at the bottom do something, does that mean that there...
2
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.