|
Hi Guys and Gals
I've tried almost everything, so this is the last resort. I really do hope someone might be able to help me.
I have a web page (ASP.NET). In here I have a button. When the user clicks the button a bat file needs to execute on the client machine. The bat file will contain a link to a .aut file.
I've tried the System.Diagnostics.Process, but this executes the file on the server and also under the NETWORK SERVICE account. Thus the user never see what's happening because it's not happening on his/her machine.
Can anybody please either give me advice on how to accomplish this or direct me to a article that can explain this. I've been searching for 8 hours now and just cant find anything workable.
Thank you so much. I will be forever greatful.
Elizma
|
|
|
|
|
I think it's only possible with ActiveX
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
As like Gamzun said an activeX control may helps you. But it only properly works on IE. Perhaps a java applet is also able to execute an exe.
|
|
|
|
|
Create an anchor tag that points to the absolute path of the batch file. But the batch file needs to be in the client machine already.
<a href="file://C:/myfile.bat">Click here</a>
|
|
|
|
|
Hi
Thank you soooo much for your solution. It works, but only partialy. It does not run when I call it from an aspx page, but if I create an html page it runs, but only if I run it directly from the saved location.
When I deploy it into IIS and browse to the file, nothing happens. It's almost as if IIS is blocking this.
This will also explain why nothing is happening in the aspx page.
Am I missing something?
Kind Regards,
Elizma
|
|
|
|
|
its possible using client side script..
|
|
|
|
|
Client side scripts cannot access file system 
|
|
|
|
|
javascript
var obj = new ActiveXObject("Wscript.shell");
obj.Run(FileName);
|
|
|
|
|
Hi
any solution or alternative to be sent mail without using smtp details by asp.net c# coding
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
it sounds like you wanna ride a horse without a horse :S
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Hi
thanks for your kind response.
you are correct but client is telling that I dont have any smtp server so try without smtp detail to be sent mail.
any alternative like using cdo net.
I tried but it supports to asp only so I created asp page and put code there and calling from .aspx page but not able to access .asp page from .aspx page.
Regards,
Harry
You get the best out of others when you give the best of yourself.
|
|
|
|
|
|
Using SMTP protocol with SSL authentication how should we do?
|
|
|
|
|
using gmail Smtp Host you can send mail.. try smtp.gmail.com
|
|
|
|
|
How to use Ajax calendar control using asp in c#.
Plz tell me in detail
|
|
|
|
|
http://www.asp.net/LEARN/ajax-videos/video-124.aspx
|
|
|
|
|
Thanks............... 
|
|
|
|
|
plese any one know that run asp.net site on local IIS
i realy need the ans 
|
|
|
|
|
|
Why are you reposting samething again?
Right click -> publish
Plus a simple google search will reveal this to you. Provided you use appropriate keywords to search.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Dont crosspost.
Read IIS manual. From the console, it is very easy to publish.
|
|
|
|
|
Hi
Using C# does anyone know how to build a list of Dynamic HTML links going down the page?
at the moment i'm using link buttons,but this is not very friendly when viewing the page on a mobile phone browser..Thanx in advance.
void CreateDynamicLinks()
{
tblDynamic.Controls.Clear();
DataTable dtSite = GetSiteList(intTechId);
int i = 0;
foreach (DataRow row in dtSite.Rows)
{
i++;
strLink = getSiteName(Convert.ToInt32(row["SiteID"].ToString()));
TableRow tr = new TableRow();
TableCell tcLinkButton = new TableCell();
LinkButton linkButton = new LinkButton();
linkButton.ID = row["SiteID"].ToString();
linkButton.Text = strLink;
linkButton.Command += new CommandEventHandler(OnLinkClick);
linkButton.CommandName = row["SiteID"].ToString();
linkButton.CommandArgument = row["SiteID"].ToString();
tcLinkButton.Controls.Add(linkButton);
tr.Cells.Add(tcLinkButton);
tblDynamic.Rows.Add(tr);
}
}
|
|
|
|
|
Targeting WAP enabled devices is very different than a mobile web browser. In most cases there are two, or more sites/pages used to target different platforms. I would suggest starting there
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hiii i am using datalist as a cart to show the items.
but the update functionality is not working.i m entering the quantity in textbox n updating it.
can u help me.
plz guide.
the code is:
protected void Update(object source, DataListCommandEventArgs e)
{
int ProductID = Convert.ToInt32(DataList1.DataKeys[e.Item.ItemIndex]);
TextBox txtqty;
txtqty = ((TextBox)e.Item.FindControl("txtqty"));
string connectionstring = ConfigurationManager.ConnectionStrings["SilverOnline"].ConnectionString;
SqlConnection conn = new SqlConnection(connectionstring);
SqlCommand cmd = new SqlCommand("Update Home Set ProductQty=@productqty Where ProductID=@productid", conn);
cmd.Parameters.Add("@productqty", SqlDbType.VarChar).Value = txtqty.Text;
cmd.Parameters.Add("@productid", SqlDbType.Int).Value = ProductID;
if (conn.State == ConnectionState.Closed)
conn.Open();
cmd.ExecuteNonQuery();
if (conn.State == ConnectionState.Open)
conn.Close();
DataList1.EditItemIndex = -1;
Session["cart"] = dt;
DataList1.DataSource = dt;
DataList1.DataBind();
lbltotal.Text = "Rs." + gettotal();
}
|
|
|
|
|
what is the error you are getting...
mylogics wrote: Session["cart"] = dt; DataList1.DataSource = dt; DataList1.DataBind();
if this session value has old value then what is the use of rebinding it in to datalist.
|
|
|
|