hi there again guys thanks for helping me with other project
i have new issue i hope you can help me with
it is part of same project
ok so i have an app with browser which has a text box and a submit button
the user must enter data into text box then click submit
example it will go to address when submit is pressed http://hellomail.com/?"textfromtextbox"
i dont know how to add the text from the textbox1.text field to the navigate command
thanks again for all your help
webBrowser1.Navigate"http://www.hellomail.com"+testbox1.text?, "_self", null, "Mozilla/5.0");
Loading
james bradberyPosted Mar 11, 2012, 12:27 AM
the full url or request is http://www.yonewmail.com?hellocarl but the ?hellocarl part is diffrent each time i need to be able to set this field with a text box entry
webBrowser1.Navigate(http://www.yonewmail.com ,+ textbox1.text"_self", null, "Mozilla/5.0 (");
can someone help me please
james bradberyPosted Mar 9, 2012, 3:09 AM
james bradberyPosted Mar 9, 2012, 3:00 AM
i just need help with what i described
please can you guys actually read what i wrote?
i would be really happy if someone can help me
Sam HobbsPosted Mar 9, 2012, 2:10 AM
SenthilkumarPosted Mar 8, 2012, 6:06 AM
You have textbox control and submit button.
This can be done in the either javascript or server side
Write this function in the javascript section.
function RedirectUrl()
{
if(document.getElementById(' txtweburl '))
{
if(document.getElementById(' txtweburl ') .value == "")
{
alert("Please enter the url");
return false;
}
else
{
window.location.href= document.getElementById(' txtweburl ') .value;
return false;
}
}
}
Other than this you can write in the server side.
protected void btnGo_Click(object sender, EventArgs e)
{
Response.Redirect(txtweburl.Text);
}