|
I think you can get details using WMI. but why in Asp.net ?
|
|
|
|
|
Is there any build-in function available in .Net framework, which accepts some number and returns a string
value equalent to the number?
[For ex: ReturnEqualentWord(int num); while passing, 5, it should return me Fifth,while 12, it should result twelve or twelvth.]
Muthu
|
|
|
|
|
|
.Net framework doesn't provide this but you can make your own custom function.
Cheers!!
Brij
|
|
|
|
|
I am trying to do file handling through jscript. While trying to create an object, it produces an error saying,
Automation server can't create object.While trying to use File Handling mechanism using js [through FileSystemObject]
Muthu
|
|
|
|
|
Looks like the ActiveX component could not be loaded...
Pls provide the code to get a more specific answer.
|
|
|
|
|
function callWriter(){
var fileSysObj = new ActiveXObject('Scripting.FileSystemObject');
var fileObj = fileSysObj.OpenTextFile("C:\\FromJs.txt",2,true,0);//2-overwrite,true-create if not exist,0-ASCII
fileObj.write('File written from Javascript');
fileObj.close();
}
so when i call the above function the error msg is thrown. should i do any thing in browser settings?
Muthu
|
|
|
|
|
Hi Muthu,
first of all you should check the browser settings, if ActiveX is enabled etc.
If this doesn't help, it is possible that the DLL containing the ActiveX is not registered properly. (but here it seems to be a system dll, that
's why it should be registered already).
Regards
Sebastian
|
|
|
|
|
tx pal, it works..
Muthu
|
|
|
|
|
how to use AL(Assembly Linker.exe) in command prompt. I have a dll called sample.dll
now i have to put it in GAC(Global Assembly Cache]. I tried with possible arguments like
AL sample.dll
AL /out:sample.dll
AL /out:Program.exe /link:sample.dll
i couldn't attain a solution.
Could any one tell me how to use it, with sample parameters?
Note:AL is used to create shared assemblies and it includes our assembly in WINNT\assembly folder of local machine.
Muthu
|
|
|
|
|
Hi Muthu,
please be more specific, what do you want to achieve exactly?
Regards
Sebastian
|
|
|
|
|
Dear Buddy,
The concept is we can create our own namespaces/assemblies and include it in current systems assembly folder.
So that the namespace is globally available any where to access. There is a command in AL which accepts our
dll and includes it automatically in GAC.That's it.
Muthu
|
|
|
|
|
Hi i want to change the date time format form 0-12 to 0-24
I want to do it programatically , Please help me in this
thanks and Regards
Sindhu Tiwari
* I dont want to change regional settings *
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Just set a format when you display it.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I got the solution it is
Datetime dt = Datetime.Now()
string st = dt.TimeOfDay.ToString();
Here i get time in 0:24 format ..
Thanks
sindhu tiwari
(no longer a dot net programmer : Now an iphone app developer)
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
string formatTimeValue = DateTime.Now.ToString("HH:mm:ss");
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.
|
|
|
|
|
hi all,
I am developing website, here i am using Two gridview with two AnimationExtenterControl and two slidercontrol..the problem is both AnimationExtenterControls are firing first gridview...
I want to fire first AnimationExtenterControl to First gridview
and second AnimationExtenterControl to second gridview..
if anyboby knows please reply me...
Thanks.
Raaj
|
|
|
|
|
Hi,
I've deployed a web application to my client having set up a couple of user accounts from Visual Studio's (2005) ASP.NET (2.0) management tool.
My client has deployed the application on a Windows XP Pro machine but can't now login.
How can my client manage the ASP.NET users? I can't find anything in IIS to let my client manage the users from there. Is there something equivalent to the ASP.NET Web Application Administration tool?
Thanks for any help offered
|
|
|
|
|
Did you set Security Setting in IIS ?
You can Get this by
Right Click on Virtal Directory ->Properties -> Directory Security
|
|
|
|
|
Thanks but that manages what type of authentication applies to the web site, Windows authentication, etc.
What I need is to be able to manage the users I've created through Visual Studio's ASP.NET Web Site Administration Tool (WSAT).
If I use the WSAT from Visual Studio I can create users and assign passwords from the Security tab. If I run my site from Visual Studio, I can log into the site using the users. If I then publish the site elsewhere, I can't. I therefore need to access the site's database to manage the users.
|
|
|
|
|
Just for further info:
The problem is that I run my web application in debug on my XP Pro machine and I can logon to the web app using the settings I defined using the WSAT (web site administration tool). If I deploy the web application to another XP machine, I can't seem to login using the username I defined.
I can't understand what's going on!
Does there need to be some reference to the ASPNETDB.MDF file in web.config?
|
|
|
|
|
i want to make a web based database application.i am using oracle as backend i want to make an oledb connection. what wil be the connection string for that.
|
|
|
|
|
|
|
hai,
currently i m using asp.net 2005 with C# (framework 2.0)
i want to fetch the WINDOWS LOGIN USERNAME & LOGIN TIME through means of my project and store it in a database table.
System.Environment.GetEnvironmentVariable("username");
The above code i used. its working in my local machine.
but when i host to server (INTRANET), its not functioning (If i disable the ANONYMOUS one, then everytime user want to enter his ussername & Password. this should not happen. automatically i want to fetch it)
how to achieve it?
|
|
|
|