|
Any chance, any one can help me put together a
simple C# program that accesses a website, logs in
with a user name and passcode and clicks Continue?
Or do you know of a sample project that I can find?
Please, any response any one can give me will be
greatly appreciated.
Sincerely,
Danielle Brina
|
|
|
|
|
Hello overworked graduate student , see the answer on this[^] page for an example of how to do this.
/ravi
|
|
|
|
|
Please don't cross-post.
(Oh shoot, I hit the wrong post, sorry.)
modified 18-Mar-12 22:03pm.
|
|
|
|
|
|
|
|
Depends on the website. Often you just send a POST and keep track of the cookies.
|
|
|
|
|
can any one help me i am facing problem in writing query in my project.i am taking four link buttons in one page(test.aspx page) when i click on Test1 link it should show me the result on show page (show.aspx page) by retriving the data stored in database for Test1 table similarly if i click Test2 link it should show me the data on same show page(show.aspx page) retriving data from database for test2 table same for Test3 and Test4 link.database iam using here is sql server 2005.
|
|
|
|
|
And? What problem are you having?
Which part of this is causing your problems?
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
|
Try this.
Add 4 'div' in your page and then add the controls inside the 'div' control. Assign the 'id' name and runat='server' in that div's. Now goto the link button page, if we click first button means just show first div,hide the other two div's.
Note: Pass a paramater to div page using Query String (or) Session object.
and to get quick answers post your question in Correct Forum[^]
|
|
|
|
|
Try something and post some code here if you run into issues.
Someone will try and help you.
|
|
|
|
|
sir i providing code by which i am implementing restore database ....but sir code is running successfully but no restoration is done at the end ......
help plz thanx in advance
public void Restore()
{
try
{
string path;
path = filetext.Text;
StreamReader file = new StreamReader(path);
string input = file.ReadToEnd();
file.Close();
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = @"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqlimport.exe";
psi.RedirectStandardInput = true;
psi.RedirectStandardOutput = false;
psi.Arguments = string.Format(@"-u{0} -p{1} -h{2} {3}",
userid, paswd, server, comboBox1.Text);
psi.UseShellExecute = false;
Process process = Process.Start(psi);
process.StandardInput.WriteLine(input);
process.StandardInput.Close();
process.WaitForExit();
process.Close();
MessageBox.Show("database is restored");
}
catch (IOException ex)
{
MessageBox.Show("Error , unable to Restore!");
}
}
private void bstart_Click(object sender, EventArgs e)
{
Restore();
}
|
|
|
|
|
You'll need to provide more information - what does the mysqlimport.exe process output?
/ravi
|
|
|
|
|
sir what do you mean by the output of mysqlimport.exe i did not get it .......could you please tell in detail thank you
|
|
|
|
|
I meant the result displayed by running mysqlimport.exe . That would indicate what caused the import to fail.
/ravi
|
|
|
|
|
no result and no exception .....and code is running till the end ......
|
|
|
|
|
|
|
That indicates the process terminated with an error. The fastest way (IMHO) to determine what caused the problem is to:
- Debug your app and see what arguments you're passing the
.exe
- Run the
.exe manually (in a command window) using those arguments and inspect the output /ravi
|
|
|
|
|
You, sir, should be nominated for sainthood or something.
Nicely done.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
|
|
|
|
|
Thanks, Wes! Just trying to live up to the CPian code - bad puns intended.
/ravi
|
|
|
|
|
sir please tell me is this line which i am passing in filename of psi is correct or not?
psi.FileName = @"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqlimport.exe";
|
|
|
|
|
Assuming that's where MySql is installed, probably yes. Did you try running the command manually?
/ravi
|
|
|
|
|
yes sir that is stored there ....ok i will run actualy there is problem in system as soon as it will be functioning well
|
|
|
|