object of a from are not recognized in the code behind

P

pelegk1

i have 2 question, about a fom i build where i want an image button to update
a form and upload a file.
1)how shouldi build the form and the button s all the object will be
recognized on the server side?
2)i have build a page and the objects are not recognized on the code behind
(where i have defined them as runat=server)
can any 1 help?
Thnaks in advance
Peleg
Code:
<form runat=server >
		                    <table width=760 border=0>
		                        <tr>
		                            <td align=center width=760 colspan=4><img 
src="images/MyContact2/blue_kid.jpg" /></td>
		                        </tr>
		                        <tr>
                                    <td width=250 align=left>
                                        <div 
style="color:#0000FF;font-size:13px;font-family:Arial;"><b>The selected 
contact is:</b> </div>
                                    </td>
		                            <td width=200 align=center>
                                        <select 
id="WebsiteUserContactIsHopMemeber" name="WebsiteUserContactIsHopMemeber">
                                            <option value="0">Not a 
subscriber of the Hop! kids site</option>
                                            <option value="1">A member of 
the Hop! kids site</option>
                                        </select>
    	                            </td>
    	                            <td width=24>
    	                                <img 
src="images/MyContact2/question.png" width=24  
onmouseout="this.src='images/MyContact2/question.png';" 
onmouseover="this.src='images/MyContact2/question_over.png';"  />
    	                            </td>
    	                            <td rowspan=5 width=300 align=center>
    	                                flash
    	                            </td>
		                        </tr>
		                        <tr>
                                    <td width=250 align=left>
                                        <div 
style="color:#0000FF;font-size:13px;font-family:Arial;"><b>Choose a name for 
your contact :</b> </div>
                                    </td>
		                            <td width=200 align=center>
                                        <input type="Text" size=50 
name="WebsiteUserContactName" id="WebsiteUserContactName"/>
    	                            </td>
    	                            <td width=24>
    	                                <img 
src="images/MyContact2/question.png" width=24  
onmouseout="this.src='images/MyContact2/question.png';" 
onmouseover="this.src='images/MyContact2/question_over.png';"  />
    	                            </td>
		                        </tr>
		                        <tr>
                                    <td width=200 align=left>
                                        <div 
style="color:#0000FF;font-size:13px;font-family:Arial;"><b>E-mail address 
:</b> </div>
                                    </td>
		                            <td width=200 align=center>
                                        <input type="Text" size=50 
value="[email protected]" name="WebsiteUserContactEmail" 
id="WebsiteUserContactEmail"/>
    	                            </td>
    	                            <td width=24>
    	                                
    	                            </td>
		                        </tr>
		                        <tr>
                                    <td width=200 align=left>
                                        <div 
style="color:#0000FF;font-size:13px;font-family:Arial;"><b>Phone number (no 
spaces, including prefix)</b> </div>
                                    </td>
		                            <td width=200 align=center>
                                        <input type="Text" size=50 
name="WebsiteUserContactPhone" id="WebsiteUserContactPhone"/>
    	                            </td>
    	                            <td width=24>
    	                               
    	                            </td>
		                        </tr>
			                    
			                    <tr>
			                        <td colspan=4 align=left>
			                            <br />
			                            <div 
style="color:#0000FF;font-size:13px;font-family:Arial;"><b>(the telephone 
number if for your child's use only)</b> </div>
			                            <br />
			                        </td>
			                    </tr>
			                </table>
			                
			                <br />
			                			                
			                <table width=760>
			                    <tr>
			                        <td colspan=11 width=760>
			                            <div 
style="color:#0028D2;font-size:16px;font-family:Arial;"><b>Choose a picture 
for the "selected contact".</b> </div>
			                        </td> 
			                    </tr>
			                    <tr>
		                            <td colspan=11><img 
src="images/MyContact2/PrivateRoom1_16.jpg" width=760 height=2 /><br /></td>
		                        </tr>
		                        
		                        <tr>
                                         <%  Dim i As Integer
                                             For i = 1 To 11%>
		                                <td><img 
src="images/userIcons/userIcon<%=i %>.jpg" /></td>
		                                <%Next%>
		                                
		                            </tr>
		                            <tr>
		                                <%For i = 1 To 11%>
		                                <td align=center><input type=radio 
name="usericon"  style="border:0;" value="images/userIcons/userIcon<%=i 
%>.jpg" <%if i=UserIconId then response.write (" checked ") %>/></td>
		                                <%Next%>
		                            </tr>
		                            <tr>
                                         <%For i = 12 To 22%>
		                                <td><img 
src="images/userIcons/userIcon<%=i %>.jpg" /></td>
		                                <%Next%>
		                                
		                            </tr>
		                            <tr>
		                                <%For i = 12 To 22%>
		                                <td align=center><input type=radio 
name="usericon"  style="border:0;" value="images/MyRoomOnly/userIcon<%=i 
%>.jpg" <%if i=UserIconId then response.write (" checked ") %>/></td>
		                                <%Next%>
		                            </tr>
			                </table>			                
                            
                            <br />
                            <br />
                            <table width=760 border=0>
                                <tr>
                                    <td width=130>
                                        <div 
style="color:#0000FF;font-size:13px;font-family:Arial;"><b>or upload 
picture:</b> </div> 
                                    </td>
                                    <td width=240>
                                        <input type="button" value="Browse"/>
                                        <input type="text" size=20>
                                    </td> 
                                    <td valign=top align=center width=65>
                                       <img 
src="images/MyContact2/uploaded_picture.jpg" width=65 height=65 />
                                       <input type=radio  
name="selectedKids"/>
                                    </td>
                                    <td width=300>
                                    </td>
	                            </tr>
                            </table>
                            <table width=760 border=0>
    		                    <tr>
		                            <td colspan=11 align=center width=760>
		                                    <img 
src="images/MyContact2/addpicture.png" style="cursor:hand" 
onmouseout="this.src='images/MyContact2/addpicture.png';" 
onmouseover="this.src='images/MyContact2/addpicture_over.png';"  width=196 
height=27 />
		                            </td>
		                        </tr>			                    
			                    <tr>
		                            <td colspan=11 width=760>
		                                <img 
src="images/MyContact2/PrivateRoom1_16.jpg" width=760 height=2 />
		                            </td>
		                        </tr>
		                        <tr>
		                            <td width=310><br /><a 
href="MyContact1.aspx?wid=<%=Request("wid") %>"><img  
src="images/MyContact2/exit.png"  
onmouseout="this.src='images/MyContact2/exit.png';" 
onmouseover="this.src='images/MyContact2/exit_over.png';"   width=264 
height=27 /></a></td>
		                            <td width=126><br />
		                                <asp:ImageButton  
id="SetWebSiteUserContactData" ImageUrl="images/MyContact2/update.png" 
OnClick="SetWebSiteUserContactData_Click" runat=server  />
		                            </td>
		                            <td width=330><br /></td>
		                        </tr>                                
                            </table>                            
                            		</form>
 

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,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top