|
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
|
|
|
|
|
|
sir but in this link the database is sql server and i am using mysql database ....
|
|
|
|
|
I need to develop a toy tracking system using RFID. i need to know how to code an RFID using C#. I also need to knwo which RFID should i purchase and one that is easily available. I was wondering if someone could help with a step by step procedure of how to do it! Please Please please!!!
|
|
|
|
|
See here[^]; it always helps if you do some research first, and then come back here with specific questions.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Hi,
I am trying to get a date in the format dd/MM/yyyy HH:mm:ss from a datetime.addseconds operation but everything that is returned (unless I tickcount - which tells me the elapsed time) is wrong, i.e. 1601,1,1,0,0,0.
While I 'understand' why I get that response I don't know how to fix it.
Code:
long st = procs.StartTime.ToFileTime();
DateTime stDt = new DateTime(1601, 1, 1, 0, 0, 0).AddSeconds(st);
If I do this
string stime = String.Empty;
stime += (Environment.TickCount / 86400000).ToString() + "d";
stime += (Environment.TickCount / 3600000 % 24) + "h";
stime += (Environment.TickCount / 120000 % 60) + "m";
stime += (Environment.TickCount / 1000 % 60) + "s";
I get 7d10h17m44s.
How do I get the difference between datetime.now and that process startdate expressed in the desired format or how do I convert 7d10h17m44s into a usable format so that I can deduct it from datetime.now?
Thanks for your time.
|
|
|
|
|
CCodeNewbie wrote: how do I convert 7d10h17m44s into a usable format so that I can deduct it from datetime.now?
DateTime result = DateTime.Now - new TimeSpan (7, 10, 17, 44); /ravi
|
|
|
|