Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspdotnet_website_programming thread: Re: aspdotnet_website_programming digest: March 19, 2002


Message #1 by "Sebastian =]" <ryders2005@m...> on Wed, 20 Mar 2002 13:19:15 +0000
<html><div style='background-color:'><DIV>
<P><FONT face="Geneva, Arial, Sans-serif">Got it... Vop's right....</FONT></P>
<P><FONT face="Geneva, Arial, Sans-serif">then's some in VB.Net...</FONT></P>
<P><FONT face="Geneva, Arial, Sans-serif">[supposing you got a datagrid (named dgridClients) on your form, and a textbox
in it, named tboxWebAddress]</FONT></P>
<P><FONT face="Courier New" color=#66cc00
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a
mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'the 1 was
found tryings/errors<BR></FONT><FONT face="Geneva, Arial, Sans-serif"><FONT face="Courier New, Courier,
Monospace">CType(dgridClients.Items(2).Controls(1). TextBox).Text </FONT><FONT size=2><FONT face="Courier New,
Courier, Monospace"><BR></FONT></FONT>or<BR></FONT><FONT face="Geneva, Arial,
Sans-serif">CType(dgridClients.Items(2).FindControl("tboxWebAddress"). TextBox).Text<BR></FONT></P>
<P><FONT face="Geneva, Arial, Sans-serif">you can get the line number with the DataGridCommandEventArgs Object
in</P></FONT><FONT color=#0000ff size=2>
<P>Private</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Sub</FONT><FONT size=2>
dgridClients_ItemCommand(</FONT><FONT color=#0000ff size=2>ByVal</FONT><FONT size=2> objSender
</FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> </FONT><FONT color=#0000ff
size=2>Object</FONT><FONT size=2>, </FONT><FONT color=#0000ff size=2>ByVal</FONT><FONT
size=2> args </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> DataGridCommandEventArgs)
</FONT><FONT color=#0000ff size=2>Handles</FONT><FONT size=2>
dgridClients.ItemCommand</P></FONT><FONT face="Geneva, Arial, Sans-serif"><FONT size=2>
<P>args.Item.ItemIndex will return you the index of the clicked or selecteditem </P>
<P></FONT></FONT><?xml:namespace prefix = mailto
/><mailto:%%email.unsub%%>&nbsp;</P></mailto:%%email.unsub%%></DIV></div><br
clear=all><hr>Send and receive Hotmail on your mobile device: <a href='http://g.msn.com/1HM300901/1U'>Click
Here</a><br></html>

  Return to Index