|
Can you send the code where you have created the button and used it ?
|
|
|
|
|
Hello all,
I'm new to ASP.NET. Tried to do the above in VS2005 but failed. Couldn't debug it either. The console app tries to update some csv files on a shared drive. Also tried calling a very simple console app that updates one csv file on my local drive and it's fine. In the web.config I have <identity impersonate="true" username="domain\myusername" password="password"> so that I can read from and write to the shared drive. Could anyone let me know why and how I can fix it please. Thanks in advance!
|
|
|
|
|
Patrick Zhang wrote: Tried to do the above in VS2005 but failed
Do you have any error?
Patrick Zhang wrote: lso tried calling a very simple console app that updates one csv file on my local drive and it's fine.
Do you mean the same code works when it updates the files on the local machine?
IMHO, you might have the security issue here as the ASP.NET process identity does not have the permission to write to the shared drive, more details[^]. Another check might be the path that you use to update the file, are you using the UNC format?
|
|
|
|
|
Error:
Files on shared drive not updated, with Visual Studio Just-In-Time Debugger window: "An unhandled exception ('System.InvalidOperationException') occurred in app.exe [3260]" and "... [2264]". Cannot debug.
The test code (in test.exe) is different and simple:
Dim s$ = "C:\PZ\temp\vbTestProcessStart.csv"
If File.Exists(s) Then File.Delete(s)
Dim oW As StreamWriter = File.CreateText(s)
Dim sBuf$ = Now.ToString("dd-MMM-yy@HH:mm:ss")
oW.WriteLine(sBuf)
oW.Close()
I used: <identity impersonate="true" username="domain\myusername" password="password"> in the web.config, so that ASP.NET is running under my account as myself and I can read from and write to the shared drive. The app.exe by C++/CLI (also tried a VB.NET version and no luck either) is running under a different account, but the test.exe above works well.
Yes I'm using the UNC format.
|
|
|
|
|
This didn't show up in my previous reply: "identity impersonate="true" userName="domain\myusername" password="password"/" (in the web.config)
|
|
|
|
|
Normally, the new process spawned from the ASP.NET application does not run with the impersonated account. You can read the Microsoft KB[^] for more info and options.
|
|
|
|
|
That's exactly what I'm after - thanks a lot minhpc_bk!!
|
|
|
|
|
Hi friends ,
I am entering some values , in the datagrid , throudh it's text boxes and saving it in the database , i want that added data in the dropdownlist of another .aspx page.
pls ,guide me.
Thanking you ,
Param
param
|
|
|
|
|
use to store value in cookie and use it another page
|
|
|
|
|
Hi,
i have textbox which should accept input in the format XXX-XXX where X=1 to 0.Else it should give a alert message prompting that the input is invalid.
thanx in advance,
zari
|
|
|
|
|
Use two validators, a RequiredFieldValidator and RegularExpressionValidator. Bind both validators to your control (ControlToValidate property) and in the RegExp validator, enter the correct regular expression for your string pattern in the ValidationExpression property.
Your regular expression should look something like this :
^[0-1][0-1][0-1]\-[0-1][0-1][0-1]$
but I don't know if i'm correct there...
|
|
|
|
|
is there any javascripts dat suit my issue? if so hope it mite b more flexible than the use of validators.
zari
|
|
|
|
|
MS implemented a custom validator, I won't worry about flexibility, I think those guys at MS really thought it through, but ofcourse you can create your own script if you want to, but I don't think it's worth the effort. Your script will be a custom javascript since you cannot create a script that validates every possible string. So is the use of validators...
|
|
|
|
|
plz dnt use smsspk in da 4rm, thr is plnty of room for full sentncs.
|
|
|
|
|
Was this message pointing at me for typing MS in stead of Microsoft??
|
|
|
|
|
No, it was pointed at who I replied to who said
is there any javascripts dat suit my issue? if so hope it mite b more flexible than the use of validators.
|
|
|
|
|
i store all my aspx related cs file in a folder and replace codebehind with src attribute but at the runtime i am getting error.so pls help me to do it.
tbhattacharjee
|
|
|
|
|
You can see @ Page directive[^], and for more information see the compilation model in MSDN.
|
|
|
|
|
The Src attribute is not supported in Visual Studio. If you import a Web Forms page into Visual Studio that contains the Src attribute, the designer will raise an error.
|
|
|
|
|
hi all,
I got some javascript for confirm message
_________________
function confirmMsg(msg)
{
var x;
x =window.showModalDialog('ConfirmMsg.aspx?CfMsg='+ msg + ', '', 'dialogWidth:500px;dialogHeight:200px');
if (x=='Y')
return true;
else
return false;
}
_____________________
i am sending the parameter string, but the query string is not getting the value.. can any one check the syntax, and correct me that how i to send query string...
thanking you all..
I am requesting if any body having a message box which can show "yes, no" kind of buttons, and after yes only i have to perform the delete operation.. If any one having pls. give me some info..
thanks to u all..
|
|
|
|
|
you should use the following way
add attributes on the delete button as
<br />
btndelete.attributes.add("onCLick","window.confirm('are You Sure to delete');")<br />
when user clicks 'Yes' it will proceed furthor otherwise it wont proceed on pressing 'No'
regards
ravi jain
|
|
|
|
|
Thank you ravi for you reply.. My problem is that window.confirm is havinf "OK, CANCEL".. I need ""YES, NO" kind of stuff.
Previously i used this, but now my client is asking for YES No kind..
If you have any idea.. pls. let me know..
Thank you..
|
|
|
|
|
Hi there,
AFAIK, you cannot change these values, your chance is to use third party controls like Telerik's one or some posted here at CP.
|
|
|
|
|
hi u refer
WWw.w3schools.com
javascript tutorial
regards
saravanan;P
|
|
|
|
|
Hi,
I am binding empname field from dataset to my dropdownlist. and its displays the list. Now i am adding one extra value in dropdownlist as "All" with previous items. But this "All" is listed at last in the dropdownlist. But i need it in the first item in the list. Please help. Hereis my code
ddlEmployee.DataSource = loadEmployee; //loadEmployee-Dataset
ddlEmployee.DataTextField = "EmpName";
ddlEmployee.DataValueField = "EmpName";
ddlEmployee.DataBind();
ddlEmployee.Items.Add("All");
Thanks in Advance.
Regards,
Prya
|
|
|
|