Auto Login and Acute accent

jsoelito575

New member
Joined
Sep 27, 2011
Messages
1
Programming Experience
5-10
Hi guys I'm having a trouble with creating an Auto-Login(VBNET) this is part of the website source :



<td class="smallfont" style="white-space: nowrap;"><label for="navbar_username">Nombre de Usuario</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="15" accesskey="u" tabindex="104" value="Nombre de Usuario" onfocus="if (this.value == 'Nombre de Usuario') this.value = '';" /></td>

<td class="smallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="105" id="cb_cookieuser_navbar" accesskey="c" />Iniciar sesión automáticamente</label></td>

</tr>

<tr>

<td class="smallfont"><label for="navbar_password">Contraseña</label></td>

<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>

<td><input type="submit" class="button" value="Iniciar Sesión" tabindex="104" title="Escribe tu nombre de usuario y contraseña en los campos para iniciar la sesión o pulsa el botón 'registrarse' para crear un perfil." accesskey="s" /></td>


It works fine : :tears_of_joy:

WebBrowser1.Document.GetElementById("vb_login_username").SetAttribute("value", "myusername")

It also works fine ::tears_of_joy:

WebBrowser1.Document.GetElementById("vb_login_password").SetAttribute("value", "mypassword")


It does not work ::blue:

WebBrowser1.Document.GetElementById("Iniciar Sesión").InvokeMember("click")


I also tried this : :blue:
WebBrowser1.Document.GetElementById("Iniciar Sesión").InvokeMember("click")


Followingg the two first I tried this too :blue:


WebBrowser1.Document.GetElementById("vb_login").InvokeMember("click")



Please guys I really hope you can help me to solve this issue thanks so much .
 
Top Bottom