First i apologise for my english.
Here is my problem...
I got a web browser on my form.
i'm navigatin to login page(1. Page). My user name and password comes from code. Then i click to submit button... Then navigating another page(2. page).
In the 2. page there are link. i want to navigate automaticly to one of this link.(3.page)
And on the 3.page there is e textbox and i want to will the field autamaticly too...
can andybody help?
Loading
Gokhan TIKNAZOGLUPosted Oct 8, 2011, 4:00 AM
This is RIGHT
User will type his credentials in textboxes and click on button then you want to redirect user to secure zone...which may not be visible to un-authenticated users.....right? (you says this as page2 that is protected)
RIGHT
If my statement is right then it can be done using configuration settings as well as some code-behind logics.
(ii) In the 2. page there are link. i want to navigate automaticly to one of this link.(3.page)
YESS
[
page2 is protected as i said above....right? RIGHT You want a link on page2 and also want to navigate user automatically.....then what is the use of link on page2 and even what is the use page3....is something special requirements, please state it?
]
PAGE 1 : Login screen (2 textbox and submit button)
PAGE 2: Link Screen ( 2 links 1 of control and 1 of input )
Page 3 : Information Screen (if navigate to control link there is one textbox which i have to take the social security number from database and enter automaticly, if navigate to input link i have to take soc.sec.num and hit the submit button and fill the information automaticly again. after filling the fields i have to hit the submit2 button again automaticly)
(iii) And on the 3.page there is e textbox and i want to will the field autamaticly too...
[
On page3 there is textboxes and you want to fill them automatically...but why? remember texboxes are primarly used for entering the text not displaying the text.
]
that is why i count the pages. if it's page 1 find the PAGE1 controls by ID and fill it if page 2 find the page2 controls by id and fill etc.
Gokhan TIKNAZOGLUPosted Oct 8, 2011, 4:00 AM
This is RIGHT
User will type his credentials in textboxes and click on button then you want to redirect user to secure zone...which may not be visible to un-authenticated users.....right? (you says this as page2 that is protected)
RIGHT
If my statement is right then it can be done using configuration settings as well as some code-behind logics.
(ii) In the 2. page there are link. i want to navigate automaticly to one of this link.(3.page)
YESS
[
page2 is protected as i said above....right? RIGHT You want a link on page2 and also want to navigate user automatically.....then what is the use of link on page2 and even what is the use page3....is something special requirements, please state it?
]
PAGE 1 : Login screen (2 textbox and submit button)
PAGE 2: Link Screen ( 2 links 1 of control and 1 of input )
Page 3 : Information Screen (if navigate to control link there is one textbox which i have to take the social security number from database and enter automaticly, if navigate to input link i have to take soc.sec.num and hit the submit button and fill the information automaticly again. after filling the fields i have to hit the submit2 button again automaticly)
(iii) And on the 3.page there is e textbox and i want to will the field autamaticly too...
[
On page3 there is textboxes and you want to fill them automatically...but why? remember texboxes are primarly used for entering the text not displaying the text.
]
that is why i count the pages. if it's page 1 find the PAGE1 controls by ID and fill it if page 2 find the page2 controls by id and fill etc.
Abhimanyu K VatsaPosted Oct 8, 2011, 3:43 AM
Can I assume your ask as given below or you have some query over this:-
(i) i'm navigatin to login page(1. Page). My user name and password comes from code. Then i click to submit button... Then navigating another page(2. page).
[
On your login page, there is two textboxes, one for username and another for password and also a button.....right? (you says this page1)
User will type his credentials in textboxes and click on button then you want to redirect user to secure zone...which may not be visible to un-authenticated users.....right? (you says this as page2 that is protected)
If my statement is right then it can be done using configuration settings as well as some code-behind logics.
]
(ii) In the 2. page there are link. i want to navigate automaticly to one of this link.(3.page)
[
page2 is protected as i said above....right? You want a link on page2 and also want to navigate user automatically.....then what is the use of link on page2 and even what is the use page3....is something special requirements, please state it?
]
(iii) And on the 3.page there is e textbox and i want to will the field autamaticly too...
[
On page3 there is textboxes and you want to fill them automatically...but why? remember texboxes are primarly used for entering the text not displaying the text.
]
In your last reply, you are suddenly taking about counting the hits........i'm socked? What about the first ask?
Please reply.
Gokhan TIKNAZOGLUPosted Oct 8, 2011, 2:36 AM
Prabhu RajaPosted Oct 7, 2011, 11:24 PM
In Page 1:
Do your Validation inside of Button Click () Event Handler. If our your username and Password in Correct, then navigate to Page 2 by
this.Response.Redirect("Page2.aspx?TextBoxValue="+this.textBox1.Text);
In Page 2:
Use Page_Load() Event to navigate to Page 3.
// You can also Inform the Page Redirection to User, using some Controls
In Page 3:
this.TextBox1.Text = Request.QueryString["TextBoxValue"];
}
---------------------------------------------------------
If this helps you, then mark as "Correct Answer"
Thank You
Javeed M ShaikhPosted Oct 7, 2011, 3:42 PM
On Page 2:
call response.redirect on page load or use window.location in javascript on load
On Page 3:
With what value you want to fill the field with? you can uset textbox1.text = value on page load or use document.getElementByID("textbox1name").value = value in javascript on load.
Please do not forget to mark "Accepted Answer".