By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,213 Members | 1,086 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,213 IT Pros & Developers. It's quick & easy.

HtmlAnchor postback

P: n/a
Hi,

I am trying to implement a postback from a control with a textbox and anchor
to perform a search. I cannot use link button due to javascript being turned
off. Is there a way of implementing postback from an anchor tag?

Jim
Sep 26 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
attach the javacript to the href tag
href="javascript:fndosome();"
or in server side also
ctl.attributes.Add("href","javascript:fndosome();" )
--
Y2KPRABU, MCP, INDIA
WEB APPS
"Jim Reynolds" wrote:
Hi,

I am trying to implement a postback from a control with a textbox and anchor
to perform a search. I cannot use link button due to javascript being turned
off. Is there a way of implementing postback from an anchor tag?

Jim
Sep 26 '06 #2

P: n/a
but javascript is turned off how would that work please?

"Y2KPRABU" wrote:
attach the javacript to the href tag
href="javascript:fndosome();"
or in server side also
ctl.attributes.Add("href","javascript:fndosome();" )
--
Y2KPRABU, MCP, INDIA
WEB APPS
"Jim Reynolds" wrote:
Hi,

I am trying to implement a postback from a control with a textbox and anchor
to perform a search. I cannot use link button due to javascript being turned
off. Is there a way of implementing postback from an anchor tag?

Jim
Sep 26 '06 #3

P: n/a
if javascript is disabled, the only html control that will postback is a
submit or image button. (asp:button). anchors will on perform a get, and not
postback data.

-- bruce (sqlwork.com)

"Jim Reynolds" <Ji*********@discussions.microsoft.comwrote in message
news:BE**********************************@microsof t.com...
Hi,

I am trying to implement a postback from a control with a textbox and
anchor
to perform a search. I cannot use link button due to javascript being
turned
off. Is there a way of implementing postback from an anchor tag?

Jim

Sep 26 '06 #4

P: n/a
do a formname.submit
...
also does it mean no client side script works like vbscript, jscript etc
just a thought
--
Y2KPRABU, MCP, INDIA
WEB APPS
"Jim Reynolds" wrote:
but javascript is turned off how would that work please?

"Y2KPRABU" wrote:
attach the javacript to the href tag
href="javascript:fndosome();"
or in server side also
ctl.attributes.Add("href","javascript:fndosome();" )
--
Y2KPRABU, MCP, INDIA
WEB APPS
"Jim Reynolds" wrote:
Hi,
>
I am trying to implement a postback from a control with a textbox and anchor
to perform a search. I cannot use link button due to javascript being turned
off. Is there a way of implementing postback from an anchor tag?
>
Jim
Sep 27 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.