Are you all forgetting your basic HTTP?

You already have this info in the Request.Form collection.  The name
of the button pressed is included in the post back as a key in this
collection. The value is the text displayed by the button. No need to
add hidden inputs.

If Not IsNothing(Request.Form("btnBack")) Then
'This button was pressed
End if


On 12/23/05, Praveen pvs <[EMAIL PROTECTED]> wrote:
> Hi,
> There is one way to find that one...(the same old classic ASP way)
>
> just write a script block using Javascript, attach it to the button.
> using btn.Attributes.Add("onclick", "NoteMe();")
> function NoteMe()
> {
> document.getElementById("txtHidden").value = "1";
> }
>
> So in the Page Load, just check whether this txtHidden is 1 or not. If it is
> one, then the button is clicked.
> After that u clear that txtHidden text to avoid confusion in later post
> backs.
>
> Hope this helps,
> Praveen P.
>
> I think there should be one more way to find out which one has clicked using
> the post data. But we need to search for that.
> Bye
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


--
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to