Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Access server side method
Old 12-30-2005, 06:00 AM Access server side method
Super Talker

Posts: 148
Trades: 0
I remember once that is a way to call the server-side method in your <input> tag. But i cant remember how. Anyone know how? Thanks

I tried this:
[Code]
<input type=Image name=imgBtn id=file.jpg onclick=image_click() src= \Images\file.jpg class=removeBorder onmouseover= this.className='applyBorder' onmouseout=this.className='removeBorder' />
[Code]

Method in my server-side coding (For testing purposes):
Code:
 Sub image_click()
        Response.Write("skhda")
    End Sub
shaoen01 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-30-2005, 06:05 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Nope client side actions cannot initiate server side methods/functions without submitting the page.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-31-2005, 04:28 AM
Super Talker

Posts: 148
Trades: 0
Quote:
Nope client side actions cannot initiate server side methods/functions without submitting the page.
I do not quite understand why you mean by the above? But i vaguely remembered looking at some coding when i was searching that it could be done.
shaoen01 is offline
Reply With Quote
View Public Profile
 
Old 12-31-2005, 05:49 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
maybe what you were looking at was client-side VbScript (only for IE)

A function that is defined in server side code cannot be run by a client-side mouse event.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-31-2005, 06:18 AM
Super Talker

Posts: 148
Trades: 0
yeah probably. Thanks for your help chrishirst!
shaoen01 is offline
Reply With Quote
View Public Profile
 
Old 01-17-2006, 02:01 AM
Bullschmidt's Avatar
Average Talker

Posts: 24
Location: USA
Trades: 0
And for a related link that does require a post:

Classic ASP Design Tips - Post Back Page
http://www.bullschmidt.com/devtip-postbackpage.asp
__________________
J. Paul Schmidt

Please login or register to view this content. Registration is FREE
- Freelance Web and Database Developer

Please login or register to view this content. Registration is FREE
- Classic ASP Design Tips
Bullschmidt is offline
Reply With Quote
View Public Profile Visit Bullschmidt's homepage!
 
Old 01-18-2006, 10:06 AM
Super Talker

Posts: 148
Trades: 0
Thanks again
shaoen01 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Access server side method
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23923 seconds with 12 queries