TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
MR alaa
NA
214
5.1k
message after login
May 21 2016 4:39 AM
hi everybody i work with windows form web browers control i want to show message of sucess login or fail after passing info to web page
private
void
btnlog_Click(
object
sender, EventArgs e)
{
if
(webBrowserlogin.Url.PathAndQuery == (
"/bbbb/login.aspx"
))
{
HtmlElement ele = webBrowserlogin.Document.GetElementById(
"TextBox1"
);
if
(ele !=
null
)
ele.InnerText = txt1.Text.Trim();
ele = webBrowserlogin.Document.GetElementById(
"TextBox2"
);
if
(ele !=
null
)
ele.InnerText = txt2.Text.Trim();
ele = webBrowserlogin.Document.GetElementById(
"TextBox3"
);
if
(ele !=
null
)
ele.InnerText = txt3.Text.Trim();
var theElementCollectionChildNext = webBrowserlogin.Document.GetElementsByTagName(
"input"
);
foreach
(HtmlElement elChild
in
theElementCollectionChildNext)
{
if
(elChild.Id ==
"Button5"
)
{
elChild.InvokeMember(
"click"
);
break
;
}
}
}
}
Reply
Answers (
1
)
c# winform search data
get all form and this child controls