473,806 Members | 2,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1626
Use an "ImageButto n" and detect the x/y location on the server side.
The click event will have the x and y in the ImageClickEvent Args
parameter.

-----Original Message-----
From: ma [mailto:ma@nowhe re.com]
Posted At: Thursday, November 22, 2007 9:59 AM
Posted To: microsoft.publi c.dotnet.framew ork.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*******@dmbc llc.comwrote in message
news:8C97A62914 D740A8A7C664836 D4E3E20@OfficeV ista...
Use an "ImageButto n" and detect the x/y location on the server side.
The click event will have the x and y in the ImageClickEvent Args
parameter.

-----Original Message-----
From: ma [mailto:ma@nowhe re.com]
Posted At: Thursday, November 22, 2007 9:59 AM
Posted To: microsoft.publi c.dotnet.framew ork.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*****@ya hoo.com]
Posted At: Thursday, November 22, 2007 10:55 AM
Posted To: microsoft.publi c.dotnet.framew ork.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*******@dmbc llc.comwrote in message
news:8C97A62914 D740A8A7C664836 D4E3E20@OfficeV ista...
Use an "ImageButto n" and detect the x/y location on the server side.
The click event will have the x and y in the ImageClickEvent Args
parameter.

-----Original Message-----
From: ma [mailto:ma@nowhe re.com]
Posted At: Thursday, November 22, 2007 9:59 AM
Posted To: microsoft.publi c.dotnet.framew ork.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*******@dmbc llc.comwrote in message
news:44DDC2D8FB EE437C99D8D2162 0E6CBD9@OfficeV ista...
Sorry, I'm not familiar with that product.

-----Original Message-----
From: mans [mailto:(myname_ here)_1*****@ya hoo.com]
Posted At: Thursday, November 22, 2007 10:55 AM
Posted To: microsoft.publi c.dotnet.framew ork.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*******@dmbc llc.comwrote in message
news:8C97A62914 D740A8A7C664836 D4E3E20@OfficeV ista...
>Use an "ImageButto n" and detect the x/y location on the server side.
The click event will have the x and y in the ImageClickEvent Args
parameter.

-----Original Message-----
From: ma [mailto:ma@nowhe re.com]
Posted At: Thursday, November 22, 2007 9:59 AM
Posted To: microsoft.publi c.dotnet.framew ork.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
2049
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 sequences when I step through the program: 1. Page loaded to the browser 2. Page_Load method is called with non-postback event 3. The user has certain actions on a control 4. Page_Load method is called with postback event
2
4367
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 displaying the contents of the data source, whilst another control updates the datasource via a command buttons implementation of 'Click', an event raised in the 'Handle Postback Events' stage of the control execution life cycle (via the...
8
11168
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 has it's own event and autopostback=true) before clicking submit then it fires the text box event but never fires the btnSubmit event. (I follow it in the trace). Surely both event handlers should be fired? Any hints on identifying what I
4
3427
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 RaiseCallbackEvent(string eventArgs) { // update the data object with the values currently on screen FormView1.UpdateItem(true); }
1
17050
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 control in my aspx page with two image buttons, one for an edit command, another a delete command. Here is a cut down code fragment. ...
2
620
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" ID="ImageButton1" runat="server" /> <p><%# Eval("Name") %></p> </div> </ItemTemplate>
11
14833
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 processed by the web server. I am still struggling to understand this postback logic, and hope that some kind gurus out there could help me clarify the confusion I have.
2
2181
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. -------------------------------------------------------------------------------- Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/in configuration or <%@ Page EnableEventValidation="true"...
7
3366
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 is postback occurring? Does that mean a round trip to the server occurred? I keep reading javascript articles and tutorials that say "improve the client-side experience to be more responsive and quicker", but the articles
2
3932
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 well, so at times it is tempting just to port parts of it over mostly as-is. In fact, one MSDN article I read suggested using straight HTML wherever possible to make the app more efficient and less resource demanding. On one page there are 2...
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10371
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10110
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.