hello,
i am attempting to get my asp.net form to "remember" scroll position on
post, as written in this short simple article: http://www.dotnetjunkies.com/Article...CB3C4A1AB.dcik
....however, my page busts on the server request to
Request.Form["__EVENTTAR GET"], saying it's not there. indeed, when i
view the html source of my asp.net form, there is no hidden input field
by that name. but according to the article, there should be these two:
<input type="hidden" name="__EVENTTA RGET" value="" />
<input type="hidden" name="__EVENTAR GUMENT" value="" />
i checked some of my other forms, didnt see it in those, either.
anyone know what's up?
thanks,
matt 5 5215
These 2 hidden controls will be added automatically by the ASP.NET parser at
runtime immediately after a <form runat=server> start tag, so you need not
bother with it. Just remember to have a server-side form included.
<Ma************ ****@CapitalOne Auto.com> ???
news:11******** *************@z 14g2000cwz.goog legroups.com ???... hello,
i am attempting to get my asp.net form to "remember" scroll position on post, as written in this short simple article:
http://www.dotnetjunkies.com/Article...CB3C4A1AB.dcik ...however, my page busts on the server request to Request.Form["__EVENTTAR GET"], saying it's not there. indeed, when i view the html source of my asp.net form, there is no hidden input field by that name. but according to the article, there should be these two:
<input type="hidden" name="__EVENTTA RGET" value="" /> <input type="hidden" name="__EVENTAR GUMENT" value="" />
i checked some of my other forms, didnt see it in those, either.
anyone know what's up? thanks, matt
You can only count on it being generated if at least one control that needs
it is on the page. For example, it will appear if a textbox has
AutoPostBack="T rue"
<asp:textbox id="TextBox1" runat="server"
AutoPostBack="T rue"></asp:textbox>
Ken
Microsoft MVP [ASP.NET]
<Ma************ ****@CapitalOne Auto.com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com... hello,
i am attempting to get my asp.net form to "remember" scroll position on post, as written in this short simple article:
http://www.dotnetjunkies.com/Article...CB3C4A1AB.dcik
...however, my page busts on the server request to Request.Form["__EVENTTAR GET"], saying it's not there. indeed, when i view the html source of my asp.net form, there is no hidden input field by that name. but according to the article, there should be these two:
<input type="hidden" name="__EVENTTA RGET" value="" /> <input type="hidden" name="__EVENTAR GUMENT" value="" />
i checked some of my other forms, didnt see it in those, either.
anyone know what's up? thanks, matt
im not sure you understand.... as i said, i have a webform. that,
inheritantly means i have the server-side form tags; but i do not see
the hidden fields.
i see. so it only shows up forms w/ AutoPostBack=tr ue. ok.
hmm. well, for my need, i just want to have it there so that i can do
the hfref.location trick, as in the article. i only have text boxes in
my webform...nothi ng that has a need for AutoPostBack. is there another
to get those tags to show up? can i set autopostback to a non-visible
form element?
thanks,
matt
A webform do not necessarily implies that it has a server-side form tag, so
it isn't inheritantly said.
It's legal to have <asp:Literal runat=server> at a webform outside a
server-side form tag, and I have a webform that uses <asp:Panel
runat=server> to hide the server-side form tag on purpose.
And there's some people still want to access postback value of controls by
Request.Form[], not using the object modal. So I just wanted to make sure...
<Ma************ ****@CapitalOne Auto.com> ???
news:11******** **************@ z14g2000cwz.goo glegroups.com ???... im not sure you understand.... as i said, i have a webform. that, inheritantly means i have the server-side form tags; but i do not see the hidden fields. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andrey Tatarinov |
last post by:
Hi.
It would be great to be able to reverse usage/definition parts in
haskell-way with "where" keyword. Since Python 3 would miss lambda, that
would be extremly useful for creating readable sources.
Usage could be something like:
>>> res = where:
>>> def f(x):
|
by: A.V.C. |
last post by:
Hello,
I found members of this group very helpful for my last queries.
Have one problem with CASE. I can use the column name alias in Order By Clause
but unable to use it in WHERE CLAUSE.
PLS TELL ME IF IT IS POSSIBLE TO USE IT IN WHERE CLAUSE AND SOME ALTERNATIVE.
QUERY:
SELECT
|
by: Xiangliang Meng |
last post by:
Hi, all.
In 1998, I graduated from Computer Science Dept. in a university in China.
Since then, I've been using C Language for almost 6 years. Although I'm
using C++ in my current job, I'm also interested in understanding C more and
deeper at the same time. In the past half year, I decide to improve myself
on C, read some books on C and digest some posts on comp.lang.c and
comp.lang.c++. Now, I feel I have a better insight on C than...
|
by: Frankieboy |
last post by:
Where is __doPostBack-function defined?
I've got an application which generates a different
__doPostBack-function when the code is being run on the server
compared to the one on my laptop. The version on server generates a
script-error in the __doPostBack, while it runs without any problem on
my developer-machine.
The server is a Windows 2003 Server Standard Edition, while my
developer machine is Windows XP Professional. Visual...
|
by: Dan |
last post by:
I am trying to use
Request.Form("__EVENTTARGET") to get the name of the control that caused a post back. It keeps returning "".
I am not really sure why, this happens for all of my controls that invoke are invoking a post back.
I've never used this type of method before, but I need to get the name of the control doing the postback in the Form Load event, and cannot wait until the event of the target control that runs due to the...
| |
by: Nuno |
last post by:
Hi
I create a new .aspx page only with a button and a span (as you can
see)...simple
When I try to click the button returns JS error (__EVENTTARGET is null
or not an object). I research about it and I found some interesting
conclusions,
some people said that this bug was fixed with the SP1 of .NET1.1
others suggests a work around technique.
|
by: RJN |
last post by:
Hi
In VB.Net I can know the control which fired the event using
Request.Form("__EVENTTARGET"). I tried the same in C#. But it always
returned null. Any other way to find out?
Regards
Rjn
|
by: rahuls2930 |
last post by:
hi,
i m using asp+c#. and i do a database call when a button is clicked using __doPostBack.
the database call succeeds and after that when i refresh the page the page again makes the database call due to the value stored in Request.Form.Since it is readonly i cant make it null
how can i solve this problem??
Please help....
|
by: Kenneth Baltrinic |
last post by:
I am having a very odd problem. On a page that was working until very
recently we are now encountering the following situation:
The page is a very basic fill in the blank form used for changing ones
password in a forms based authentication scenario. After the user fills out
the form and clicks the Change Password button, the page simply reloads as
if nothing happened. We turned on page tracing and also added the following
lines to the...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |