I have tried this and you can have a try. Get a windows handle to the
browser applicaiton.

            Process[] proc = Process.GetProcessesByName("iexplore");
            Process p = proc[0];
            IntPtr hWnd = p.MainWindowHandle;
            SetForegroundWindow(hWnd);

and then you can use SendKeys.SendWait to fill in information you
want . To get focus to a particular text box, you can Send {TAB} in
sendwait
commands.

On Aug 31, 1:10 pm, Jamie Fraser <[email protected]> wrote:
> You could do it using Javascript. ASP.Net is a server side technology
> however, so on its own is not suitable for this task.
>
>
>
> On Mon, Aug 30, 2010 at 7:58 PM, neuromancer <[email protected]> wrote:
> > Suppose I want to make a asp.net application that fills out a form,
> > perhaps an amtrak form.  First the user might say on my form (not the
> > Amtrak form) that he wants to go to Tuscaloosa, and he hits submit,
> > and I open up the Amtrak website, fill it the appropriate fields, make
> > the submit button click on, and then I get the resulting URL so I can
> > use it in my asp.net application.
> > I'm pretty sure this is completely impossible, but a friend of mine
> > asked me to do something like this for him, and I'm just checking.
> > FN

Reply via email to