Can I force my page to do postback?
I have a page that only have links, but I wish that every time I click a
link that execute a function that I have in my code.
I know that with simple links, that postback does not exist.
I must have links and not link buttons, because I have to set the target for
the links and link buttons don't allow to do this.
How can I do this?
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca 9 4399
if they are an <a href...>
just add an id and runat=server.
They will then be accesible server side. Try manually adding an onclick
event. Either that or use a clientside onClick catch to do a form.submit()
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"ruca" <ru***@iol.pt> wrote in message
news:eX*************@TK2MSFTNGP10.phx.gbl... Can I force my page to do postback?
I have a page that only have links, but I wish that every time I click a link that execute a function that I have in my code. I know that with simple links, that postback does not exist. I must have links and not link buttons, because I have to set the target
for the links and link buttons don't allow to do this.
How can I do this?
-- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca
They are an <a href=........>, and I alredy add an id and runat=server, but
I put it to de onClick but doesn't work. Here it is what I've do:
<a id='Tst' onClick='myFunction()' href='myForm.aspx' runat='server'
target='Main'>Test</a>
myFunction is present in my VB Code. This function access my DB.
Tell me if it is wrong.
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem
news:O%****************@TK2MSFTNGP11.phx.gbl... if they are an <a href...> just add an id and runat=server. They will then be accesible server side. Try manually adding an onclick event. Either that or use a clientside onClick catch to do a form.submit()
-- Curt Christianson Owner/Lead Developer, DF-Software Site: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
"ruca" <ru***@iol.pt> wrote in message news:eX*************@TK2MSFTNGP10.phx.gbl... Can I force my page to do postback?
I have a page that only have links, but I wish that every time I click a link that execute a function that I have in my code. I know that with simple links, that postback does not exist. I must have links and not link buttons, because I have to set the target for the links and link buttons don't allow to do this.
How can I do this?
-- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca
you are tryign to use a clientside event here for serverside calls, you need
the event serverside
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"ruca" <ru***@iol.pt> wrote in message
news:eM**************@tk2msftngp13.phx.gbl... They are an <a href=........>, and I alredy add an id and runat=server,
but I put it to de onClick but doesn't work. Here it is what I've do:
<a id='Tst' onClick='myFunction()' href='myForm.aspx' runat='server' target='Main'>Test</a>
myFunction is present in my VB Code. This function access my DB.
Tell me if it is wrong.
-- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:O%****************@TK2MSFTNGP11.phx.gbl... if they are an <a href...> just add an id and runat=server. They will then be accesible server side. Try manually adding an onclick event. Either that or use a clientside onClick catch to do a
form.submit() -- Curt Christianson Owner/Lead Developer, DF-Software Site: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
"ruca" <ru***@iol.pt> wrote in message news:eX*************@TK2MSFTNGP10.phx.gbl... Can I force my page to do postback?
I have a page that only have links, but I wish that every time I click
a link that execute a function that I have in my code. I know that with simple links, that postback does not exist. I must have links and not link buttons, because I have to set the
target for the links and link buttons don't allow to do this.
How can I do this?
-- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"ruca" <ru***@iol.pt> wrote in message
news:eM**************@tk2msftngp13.phx.gbl... They are an <a href=........>, and I alredy add an id and runat=server,
but I put it to de onClick but doesn't work. Here it is what I've do:
<a id='Tst' onClick='myFunction()' href='myForm.aspx' runat='server' target='Main'>Test</a>
myFunction is present in my VB Code. This function access my DB.
Tell me if it is wrong.
-- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:O%****************@TK2MSFTNGP11.phx.gbl... if they are an <a href...> just add an id and runat=server. They will then be accesible server side. Try manually adding an onclick event. Either that or use a clientside onClick catch to do a
form.submit() -- Curt Christianson Owner/Lead Developer, DF-Software Site: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
"ruca" <ru***@iol.pt> wrote in message news:eX*************@TK2MSFTNGP10.phx.gbl... Can I force my page to do postback?
I have a page that only have links, but I wish that every time I click
a link that execute a function that I have in my code. I know that with simple links, that postback does not exist. I must have links and not link buttons, because I have to set the
target for the links and link buttons don't allow to do this.
How can I do this?
-- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca
How can I do that?
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca?
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem
news:OF**************@TK2MSFTNGP09.phx.gbl... you are tryign to use a clientside event here for serverside calls, you
need the event serverside
-- Curt Christianson Owner/Lead Developer, DF-Software Site: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
"ruca" <ru***@iol.pt> wrote in message news:eM**************@tk2msftngp13.phx.gbl... They are an <a href=........>, and I alredy add an id and runat=server, but I put it to de onClick but doesn't work. Here it is what I've do:
<a id='Tst' onClick='myFunction()' href='myForm.aspx' runat='server' target='Main'>Test</a>
myFunction is present in my VB Code. This function access my DB.
Tell me if it is wrong.
-- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:O%****************@TK2MSFTNGP11.phx.gbl... if they are an <a href...> just add an id and runat=server. They will then be accesible server side. Try manually adding an
onclick event. Either that or use a clientside onClick catch to do a form.submit() -- Curt Christianson Owner/Lead Developer, DF-Software Site: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
"ruca" <ru***@iol.pt> wrote in message news:eX*************@TK2MSFTNGP10.phx.gbl... > Can I force my page to do postback? > > I have a page that only have links, but I wish that every time I
click a > link that execute a function that I have in my code. > I know that with simple links, that postback does not exist. > I must have links and not link buttons, because I have to set the target for > the links and link buttons don't allow to do this. > > > How can I do this? > > > -- > Programming ASP.NET with VB.NET > Thank's (if you try to help me) > Hope this help you (if I try to help you) > ruca > >
just use an <asp:LinkButton..> and save yourself the headaches
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"ruca" <ru***@iol.pt> wrote in message
news:e2**************@tk2msftngp13.phx.gbl... How can I do that?
-- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca? "Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:OF**************@TK2MSFTNGP09.phx.gbl... you are tryign to use a clientside event here for serverside calls, you need the event serverside
-- Curt Christianson Owner/Lead Developer, DF-Software Site: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
"ruca" <ru***@iol.pt> wrote in message news:eM**************@tk2msftngp13.phx.gbl... They are an <a href=........>, and I alredy add an id and
runat=server, but I put it to de onClick but doesn't work. Here it is what I've do:
<a id='Tst' onClick='myFunction()' href='myForm.aspx' runat='server' target='Main'>Test</a>
myFunction is present in my VB Code. This function access my DB.
Tell me if it is wrong.
-- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:O%****************@TK2MSFTNGP11.phx.gbl... > if they are an <a href...> > just add an id and runat=server. > They will then be accesible server side. Try manually adding an onclick > event. Either that or use a clientside onClick catch to do a
form.submit() > > -- > Curt Christianson > Owner/Lead Developer, DF-Software > Site: http://www.Darkfalz.com > Blog: http://blog.Darkfalz.com > > > "ruca" <ru***@iol.pt> wrote in message > news:eX*************@TK2MSFTNGP10.phx.gbl... > > Can I force my page to do postback? > > > > I have a page that only have links, but I wish that every time I click a > > link that execute a function that I have in my code. > > I know that with simple links, that postback does not exist. > > I must have links and not link buttons, because I have to set the target > for > > the links and link buttons don't allow to do this. > > > > > > How can I do this? > > > > > > -- > > Programming ASP.NET with VB.NET > > Thank's (if you try to help me) > > Hope this help you (if I try to help you) > > ruca > > > > > >
Hi Ruca,
I was looking for an solution, than I thought this is strange. I have a page that only have links, but I wish that every time I click a link that execute a function that I have in my code. I know that with simple links, that postback does not exist. I must have links and not link buttons, because I have to set the target
for the links and link buttons don't allow to do this.
You want the window to open a new page using a link and on the same time to
do a postback to refresh the window.
What do I see wrong?
Cor
> What do I see wrong?
It was that I don't want to open links in a new window and "refresh" the
current.
I must have "normal" links and no links buttons, because I have frames in my
page.
I have a frame with the menu, and the other is the target of the links
click. What happen is that in menu frame, each time I choose a link I must
verify something (don't matter what) in my vb code. That's why I must
"refresh" menu page.
Hope this hepls to understand my problem.
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
"Cor Ligthert" <no**********@planet.nl> escreveu na mensagem
news:uc**************@tk2msftngp13.phx.gbl... Hi Ruca,
I was looking for an solution, than I thought this is strange.
I have a page that only have links, but I wish that every time I click a link that execute a function that I have in my code. I know that with simple links, that postback does not exist. I must have links and not link buttons, because I have to set the target for the links and link buttons don't allow to do this.
You want the window to open a new page using a link and on the same time
to do a postback to refresh the window.
What do I see wrong?
Cor
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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"...
|
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...
|
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....
|
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...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
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...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |