server-controls(button, textbox, etc) on multipage

T

tommy

hello,

i am searching for the right way, how to access server-controls in
mulitpage, if i placed some controls there....

on google-- i found on solution, how to access an images-button on
multipage


----------------------------------------
<asp:ImageButton id="Next3" runat="server"
ImageUrl="images/flecheright.gif" onclick = Next_Click AlternateText =
"N3"></asp:ImageButton>

and in you code behind :

Public Sub Next_Click(ByVal sender As Object, ByVal e As
System.Web.UI.ImageClickEventArgs)

Dim bt As String

bt = CType(CType(sender,
System.Web.UI.WebControls.ImageButton),
System.Web.UI.WebControls.Image).AlternateText
If (bt = "N1") Then
TabStrip1.SelectedIndex = 1
ElseIf (bt = "N2") Then
TabStrip1.SelectedIndex = 2
ElseIf (bt = "N3") Then
TabStrip1.SelectedIndex = 3
End If

End Sub
--------------------------------------

i ´ve dont tried it for asp-button - maybe it will running -- but HOW
to access a textbox??

(i want to create a contact-formular on one pageview...)

suggestions?

pls hlp me


regards


tommy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top