|
Why are you double posting?
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
for (int i=0;i<=ListBox1.Items.Count;i++)<br />
{<br />
if(ListBox1.Items[i].Selected==true)<br />
{<br />
}<br />
else<br />
{<br />
}<br />
}
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
How can we do it using java script?
|
|
|
|
|
check this link[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
I have 4 items in ListBox.
I want to check which is selected in test.aspx.cs page
how can I do?
ListBox.Selected property is not there.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
SelectedItem.value
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
i have a batch file (aa.bat)
when i run batch file in asp.net
ProcessStartInfo startinfo = new ProcessStartInfo();
startinfo.RedirectStandardOutput = false;
startinfo.RedirectStandardError = false;
startinfo.UseShellExecute = true;
startinfo.FileName = "C:\\aa.bat";
Process.Start(startinfo);
then successfull run
when project run on the localhost
that time not run batch file, why ?
and filnally my question is that when run batch file open command window.
i want to that not show command window e.g hidden.
how hidden batch file.
|
|
|
|
|
You want to run a batch file using ASP.net. You know that this will always run it on the server, don't you - the open command window you're aiming for will be there for nobody to see...
|
|
|
|
|
Hey guys
currently i need a fucntion to delete file before i could create again. Currently i am using this
string dir = System.Configuration.ConfigurationSettings.AppSettings.Get("dir");
string[] imgList = Directory.GetFiles(dir, "*.*");
foreach (string img in imgList)
{
FileInfo imgInfo = new FileInfo(img);
imgInfo.Delete();
}
However when the file is stil in used this will hit an error
Please advise
Thanks a million bro
KaKaShi HaTaKe
|
|
|
|
|
The windows OS doesn't allow you to do this so the only way I've found to do this is to get a program call moveonboot which will move the file on restart.
Don't think there is a way to do it in code.
Hope this helps.
|
|
|
|
|
You can check to see if the file is locked or not using following code
public bool FileIsLocked(string strFullFileName) {
bool blnReturn = false;
System.IO.FileStream fs;
try {
fs = System.IO.File.Open(strFullFileName, IO.FileMode.OpenOrCreate, IO.FileAccess.Read, IO.FileShare.None);
fs.Close();
}
catch (System.IO.IOException ex) {
blnReturn = true;
}
return blnReturn;
}
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Guys Ive got a problem which I think should be straight forward to solve.
Basically Ive got this application which I am trying to make changes to the c# files.
However the changes are not registering. I can change the ascx files no problem.
My usual method of updating any c# files is to simply edit the page in vwd2005 and then save the file.
Any help or suggestions would be great!
thanks
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
Are you trying to make the changes while the application/Website is running?
Is it an application or a website?
Sorry but a little bit confused about the problem.
|
|
|
|
|
Basically Ive got an application which is on a citrix server and is registered as a virtual directory in IIS.
However when I try and change a c# file I can make the change and save it, but it doesnt update on the server.
if I update a .ascx file it updates on the server.
Why would this be?
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
That does seem quite strange. It could maybe be a setting in your IIS. Check you have right acces to that folder.
Apart from that I'm stumped.
|
|
|
|
|
yeah ive got the right access to the files.
Thanks anyway!
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
When you say it doesn't update on the server - is your server application pre-compiled? Simply updating C# files might not be sufficient to get the change deployed?
|
|
|
|
|
Well its the YAF forum which Im using and I thought the application was pre-compiled.
How would I know?
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
Dear all,
I am using ajax Calender Extender and I want to highlight more then one date in the month,
Can anyone have an idea regarding this
Thanks in advance..
devendra
|
|
|
|
|
HI
Can any one let me know what are business Benifits of migrating to ASP.NET 3.5 or .NET 3.5, so i can conviencie my client, thankx in adavance.
|
|
|
|
|
Brother, ASP.Net 3.5 means that it uses the .Net framework 3.5...
That means, ASP.Net depends on the version of .net framework...so how come the migration point comes here???
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hello
Is it possible to display pictures in repeater without postback, maybe with client callback?
Please help
Shay Noy
|
|
|
|
|
Hello Friend!
I've faced a problem in getting Private key.
I installed FindPrivateKey exe.
When I enter following command line argument, it displays help contents-
C:\Tools\FindPrivateKey\CS\bin>FindPrivateKey My LocalMachine -t "7e 3b f9 fc f6 79 44 3e 5a b6 c6 a2 af e6 ca a2 b5 c9 51 9b" -a
FindPrivateKey helps user to find the location of the Private Key file of a X.509 Certificate.
Usage: FindPrivateKey [{ {-n } | {-t
humbprint>} } [-f | -d | -a]]
subject name of the certificate
thumbprint of the certificate (use certmgr.exe to get it)
-f output file name only
-d output directory only
-a output absolute file name
e.g. FindPrivateKey My CurrentUser -n "CN=John Doe"
e.g. FindPrivateKey My LocalMachine -t "03 33 98 63 d0 47 e7 48 71 33 62 64 76 5c 4c 9d 42 1d 6b 52" -c
Please, help me to find the private key.
Thanks.
With Regards,
Samrat
|
|
|
|
|
Hi i cerated one console application...,
It will send email...,
Now i want run this console automatically on every last day of the month ...,
So i will put in schedular task...,but there is no option is there for assign last day of the month...,
plz help me how to tell in schedular last day of the month...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
You are in a wrong forum.
Create a windows service so that you can check system date to find end of the month.
|
|
|
|