|
Christian Graus wrote: Thankfully, what you want to do, you can't do
Of course you can. You can have a hyperlink to an EXE file and the browser will ask if you want to "run/save" the file. This is the behaviour the OP described its just that his EXE is crashing as it runs.
|
|
|
|
|
Hi,
Thanks for your reply.
But I dont want to ask user to save or open the exe.
I just wanna run it on machine,
Thanks
Thanks,
Sun Rays
|
|
|
|
|
Sun Rays wrote: When ever my web application's webpage is open it will ask for run that exe.
Exactly. You can't ever start an application from the browser without the user having to allow it. Any solution means that there is user confirmation at some point.
Sun Rays wrote: Its giving error like "EXE name. has encountered a problemm and need to close....."
That means that your program is faulty, and has crashed.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
.NET exe? Assembly trusted?
|
|
|
|
|
Hi
I am working on a desktop application using C# and .NET 2.0.
In my DataSet I have two tables say table1 and table2. They have one to many relation (no rule is set like for update, delete or accepct/reject changes). When I drop a binding source for the parent table i.e table1 on the windows forms, I get another binding source for child i.e table2BindingSource1 after rebuilding the project. That is really helpful because when I set
//this.BindingNavigator1.BindingSource = table1BindingSource;
The self created BindingSource collaborates with the navigator itself and I need not to do any extra coding.
Now the problem is when I do
//this.BindingNavigator1.BindingSource.CancelEdit();
to cancel any changes made to DataSet in case user clicks Delete button one the Navigator.
This only works for the parent table i.e table1 and not for the child table or say for self created BindingSource.
I have tried
//this.BindingNavigator1.BindingSource[1]....//Here i cannot find any method to remove changes made to data set.
How can I apply this CancelEdit for both the tables in the DataSet ( for both BindingSources ).
Can anybody help me out? It is really urgent......
thnx in advance.
|
|
|
|
|
This is your third post on the same subject. as i replied to the email you sent to me i will try to help you when i find time, if it indeed is really urgent pay someone to do it. Or wait until your first post is answered.
If it' stuck, DO NOT pull harder!
|
|
|
|
|
well i m sorry. i was just increasing the chances of my problem being seen. i will be careful next time.
thnx
|
|
|
|
|
and decreasing others chances of having their problems seen.
but i'll stop ranting about it now.
i tried a few tests and didnt get any behaviour like you described, though i've never used the binding* stuff, so i guess my help is limited here. i prefer to code my own data layer and the logic in there.
If it' stuck, DO NOT pull harder!
|
|
|
|
|
Hi
I have a problem once again. The situation is
//this.BindingNavigator1.BindingSource.CancelEdit();
works to cancel AddNewItem()
but it does not work when to cancel a DeleteItem().
Do i need to do something else?
Please Help me out.
|
|
|
|
|
you're right. it doesn't work. i search MSDN and found this forum post:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=235111&SiteID=1[^]
the easiest solution is to write your own navigator:
I use a ToolStrip with add, delete and save buttons on and the code is very simple:
to Add:
myBindingSource.AddNew();
to Delete:
myBindingSource.RemoveCurrent();
to Save:
this.Validate();
myBindingSource.Endedit();
tblMyAdapter.Update(myDataSet.myTable);
If it' stuck, DO NOT pull harder!
|
|
|
|
|
Please can anyone guide me about how to extract the minutiae of the fingerprint image in C#
thanks in advance
|
|
|
|
|
I guess you need to read up on edge detection code and play with it in order to get the info you're after.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Maybe tell us where this fingerprint authorization will be implemented?
|
|
|
|
|
Hi All,
I'm now trying to use the DataGridView Class but i'm nt sure how to allow user to do sorting of data himself.
Is there anyway I can code it? as I had my datagridview created in run time.
what is the correct way to add the code in? thanks...
|
|
|
|
|
|
Now you have cross-posted in here too, someone is already trying to help you in the ASP.net forum and you posted in VB.net. I would suggest answering the question which was last posed in feedback to your query in the original forum first.
|
|
|
|
|
No cross posting.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi guys and girls really sorry of my y'day post...,
Ya i cross post that msg...,
Becoz i need that solution immediately on that time...,
Now i find answer myself...,
Using some javascripts...,
Anyway sorry for that moments...,
Regards,
Magi
|
|
|
|
|
Magh_M wrote: Becoz i need that solution immediately on that time
But here demanding a solution immediately doesn't go well with many members.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi
My aim is to store the background image of a mdi child i am setting the image by using a open file dialog box , database used here is ms-access ...
i have the code for saving the image into ms access its working fine on the pictureboxes at the time of storing image of the form its giving an error the file is already in use by another programme if any one have any clues please let me know
sindhu tiwari
its me sid
|
|
|
|
|
Show me the code you are using for setting form background and retrieving it to store in database.
|
|
|
|
|
Are you storing the image or the path of the image?
If you are storing the image.. then do this.
Image im = Form.ActiveForm.Image;
and then save the image...
If you are storing the path.. then just store it in string
Thanks.
------------------------------------------------------------------
Life would have been much easier if I had the source-code!!
|
|
|
|
|
Hy all.
I have 2 controls binded to one data source
<br />
<br />
this.LookUpEditor1.DataBindings.Add(new System.Windows.Forms.Binding<br />
"EditValue",this.my_BindingSource, "ID", true));<br />
this.LookUpEditor1.ValueMember = "ID";<br />
this.LookUpEditor1.DisplayedValue = "Name";<br />
<br />
<br />
this.LookUpEditor2.DataBindings.Add(new System.Windows.Forms.Binding<br />
"EditValue",this.my_BindingSource, "ID", true));<br />
this.LookUpEditor2.ValueMember = "ID";<br />
this.LookUpEditor2.DisplayedValue = "NameSynonym";<br />
<br />
<br />
DataSource record has 3 fields "ID", "Name", "NameSynonym"
problem here: when i change value in first combobox it should changed in second and vice versa.
How i can implement this automatically with out using events and explicit property set
as what:
<br />
LookUpEditor1_onValueChanges(...)<br />
{<br />
LookUpEditor2.EditValue = LookUpEditor1.EditValue;<br />
<br />
}<br />
<br />
LookUpEditor2_onValueChanges(...)<br />
{<br />
LookUpEditor1.EditValue = LookUpEditor2.EditValue;<br />
<br />
}<br />
THANK
|
|
|
|
|
I am working on windows application with c#.net .
I am using FTPwebreuqest class for upload file on ftp.it works fine when there is no proxy between application and internet. but it doesn't work in proxy.
FtpWebRequest reqFTP;
if i use reqFTP.Proxy=new webproxy("proxyservername",port);
then it will display error message "FTP command doen't support in HTTP proxy".
my code is like this
FtpWebRequest reqFTP;
reqFTP = (FtpWebRequest)FtpWebRequest.Create("ftp://uri");
reqFTP.Credentials = new NetworkCredential("username", "pwd");
reqFTP.KeepAlive = false;
reqFTP.Method = WebRequestMethods.Ftp.UploadFile;
reqFTP.UseBinary = true;
reqFTP.UsePassive = true;
int buffLength = 2048;
byte[] buff = new byte[buffLength];
int contentLen;
FileStream fs = fileInf.OpenRead();
Stream strm = reqFTP.GetRequestStream();
contentLen = fs.Read(buff, 0, buffLength);
while (contentLen != 0)
{
strm.Write(buff, 0, contentLen);
contentLen = fs.Read(buff, 0, buffLength);
prbUpload.Value += contentLen;
}
strm.Close();
fs.Close();
Any one help me about proxy settings in FTPwebrequest
Pritesh Patel
|
|
|
|
|
Hello,
I've got an application that needs to create 2 remote object (CAO type), I init them into businness logic level:
<br />
private void InitNetRemotingProxy()<br />
{<br />
myDataProxyAccess = new ProxyDataAccess(idCup, idSeason, idMatchCode);<br />
myDataProxyAccess.InitNetRemotingClient("Normal");<br />
<br />
myDataProxyAccessForLev1 = new ProxyDataAccess(idCup, idSeason, idMatchCode);<br />
myDataProxyAccess.InitNetRemotingClient("Lev1");<br />
}<br />
and here's where the init is done
<br />
public void InitNetRemotingClient(string type)<br />
{<br />
string remotingConnection = system.Configuration.ConfigurationManager.AppSettings["serverAddress"];<br />
string tcpPort = (type!="Lev1") ? System.Configuration.ConfigurationManager.AppSettings["tcpPort"] : System.Configuration.ConfigurationManager.AppSettings["tcpPortLev1Stat"];<br />
<br />
string requestService = (type != "Lev1")<br />
? System.Configuration.ConfigurationManager.AppSettings["requestServiceName"]<br />
: System.Configuration.ConfigurationManager.AppSettings["requestServiceName2"];<br />
string sb = String.Format("tcp://{0}:{1}/{2}", remotingConnection, tcpPort, requestService);<br />
<br />
<br />
try<br />
{<br />
RemotingConfiguration.IsRemotelyActivatedClientType(typeof(DBHelper));<br />
<br />
IChannel ic = new TcpChannel(Convert.ToInt32(tcpPort));<br />
int i = 0;<br />
<br />
ChannelServices.RegisterChannel(ic, false);<br />
RemotingConfiguration.RegisterActivatedClientType(typeof(DBHelper), sb);<br />
<br />
myDBHelper = new DBHelper(idCup, idSeason, idMatchCode);<br />
}
on the second call, the one myDataProxyAccess.InitNetRemotingClient("Lev1"); I get an exception at ChannelServices.RegisterChannel(ic, false);, the exception is : Message = "The channel 'tcp' is already registered.".
It's not possible to create 2 channel? Where I do wrong? The tcpport and requestServiceName are different for the two calls.
Please help me, thanks
Bests
Paolo Ponzano
|
|
|
|