|
Oops!!! Sorry, this was my code which i used it.
You dont need it.Comment it out
|
|
|
|
|
Thanks...
Jus 1 question
Is is possible to preserve href's (Hyperlinks) if yes? How
o O º(`'·.,(`'·., ☆,.·''),.·'')º O o°
»·'"`»* *☆ t4ure4n ☆* *«·'"`«
°o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°
|
|
|
|
|
hi
"The operation has been time out " problem
when i call my web service with url
url = "http://localhost/WebServices/Developer/Developer.asmx"
but there is no problem when i call the same web service at this
url = "http://localhost:1489/TestFolder/Developer.asmx"
it works fine
what can be the reason ???
Can any buddy help me
Thnx
|
|
|
|
|
Web services have a timeout. The default is like 30 seconds. There is a property off of the webservice called timeout. Set it to a higher number and you will probably not get a timeout.
When you use the development environment I believe some of these time outs don't happen.
Hope that helps.
Ben
|
|
|
|
|
Thanx Ben
First first i think it is timeout prob and i check it by changing the timeout property.
But it was the machine problem. It was running fine on other machines
Thanx for your kind response
|
|
|
|
|
hello my problem is how to post javascript array to the server.
any body knows please give me suggession.
srinivas
|
|
|
|
|
hi
I am newbie in c# windows serives. I have successfully created and install mywindows service.
But I faced problem while retrieve absolute path of mywindows service, from next c# - program. how can i achieve this.
Any suggestion, related links are highly grateful.
Evil Inside
|
|
|
|
|
One way to get it is by calling Environment.CommandLine
|
|
|
|
|
can u give any more information
evil inside
|
|
|
|
|
MSDN on Environment.CommandLine states:
This property provides access to the program name and any arguments specified on the command line when the current process was started.
Unfortunately it also says:
The program name can include path information, but is not required to do so.
You may be better of using the Assembly class, maybe it is:
Assembly.GetExecutingAssembly().Location
|
|
|
|
|
i am building a image gallery in ASP.NET. All images are placed in a specific folder and i want to show the thumb nails of all those image on the web page. Its all working well. Means that my page is displaying the thumb nails of all images that exists in the folder.
The problem arise when i copy the new files in the folder, then the new copied files are not being displayed by thumbs.db file. Thumbs.db file donot update itself when new files are copied in the folder.
how i can solve this problem that when ever i delete or copy images in the folder, the thumbs.db file updates itself???????????????
-<>-shoaib-<>-
|
|
|
|
|
Hi everyone,
I need to know how I can lock a file if someone else is using it. Briefly, I have an application which allows users to view pieces of mpg (each has a unique ID) and attach relevant data to it - a translation if needed, brand/product info etc - and then saves the whole item (mpg + metadata) to a database including the path to the now-archived mpg.
The mpgs are played by clicking the appropriate row in a datagrid control which launches the mpg in a form with a media player control embedded into it.
The thing is, I need to be able to somehow lock an mpg so that if user A is busy with it then user B can not begin work on it at the same time.
All of the mpgs are stored on a central holding server which may have up to 20 people connected to it at any one time.
When a user goes to enter the mpg information, the initial media player window closes and transfers them to a data entry screen. This holds the unique name in view but its only existent on the form at this point, not on a database.
Can this be done? Sorry if I waffled, just wanted to give as much info as possible.
Cheers everyone
Scott
|
|
|
|
|
One thing you could do is put a flag in the DB to indicate that an MPG is in use and prevent other users from modifying it. This should if you can modify the database schema (like adding a column to a table).
-----
If atheism is a religion, then not collecting stamps is a hobby. -- Unknown
|
|
|
|
|
Hi Le Centriste,
Thanks very much for the suggestion but the way the DBA here controls his database borders on the psychotic. By the time he considers the request and then (if?) actually actions it, I'd hope to be able to achieve the same thing programatically...
Any more ideas anyone?
Scotty
|
|
|
|
|
save it to XML or in a new table in data base
With reference of the file and a flag of file usage
check it every time user tries to access the file (and don't forget to cleanup after user finished working )
Regards
Amar Chaudhary
|
|
|
|
|
As in ASP.Net 2.0 do we have any thing like Membership API for windows application???
|
|
|
|
|
No, not for Windows, AFAIK. Pretty easy to write, tho.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I was developing a small project using .Net 1.1, and here's some details:
public class MenuList
{
private Hashtable MenuItems= new Hashtable();
public void AddMenuItem(MenuItem oItem)
{
MenuItems.Add(oItem.Name, oItem);
}
public MenuItem this[string name]
{
get
{
return (MenuItem)MenuItems[name];
}
}
}
public class MenuItem
{
public string sTitle;
private string sName;
public string Name
{
get
{
return sName;
}
set
{
sName=value;
}
}
}
In this way, I can create MenuItem, add to MenuList, and access the MenuItem through it's name:
MenuItem i1=new MenuItem();
i1.Name="i1";
MenuList l1= new MenuList();
l1.AddMenuItem(i1);
l1["i1"].sTitle="abcd";
My question is: clients request to access the MenuItem this way:
l1.Items["i1"].sTitle="this way";
So how can I do it?
Yours Tully
Huang Kai
|
|
|
|
|
hi,
public Items[string name]
{
get
{
return (MenuItem)MenuItems[name];
}
}
I would recomend Implementing IList though. If you we're using .NET 2 it would be great. You could implement IList<t>
But you can still use IList:
class MenuList : IList
{
}
Gideon
|
|
|
|
|
Thanks. But it seems not working in .Net 1.1
|
|
|
|
|
Hi,
giddy_guitarist wrote: public Items[string name]
does not work for me on .NET 2.0
according to documentation indexers always require "this" keyword as in
public this[string name]
|
|
|
|
|
hi,
I'm sorry , i answered very hastily. That was really silly , you're right. You cant do anything like what i mentioned earlier.
I do know , that .NET classes that have an items collection return a strongly typed object collection.In other words , what Items returns IS A LIST(Like the ListBox.Items , ComboBox.Items etc).
Usually they are used only because you need for something to happen when the collection changes.For example , when one adds/removes objects from the ListBox.Items the listbox updates.
If you still want to do what you want , you could do this:
class MenuItemCollection : IList
{
}
//since you're using .NET 1.1 i dont think you can make a strongly typed collection , so you could write you're own collection (Without IList) that takes MenuItems (IList takes objects)
Then :
class Menu
{
MenuItemCollection _items; // this should be initialized somewhere.
public MenuItemCollection
{
get{ return _items;}
}
}
You can check out the .NET classes with the object browser in VS or with reflector to get a better idea.
Hope i helped.
Gideon
|
|
|
|
|
You have to use an indexer, but that would be l1["i1"].sTitle="this way"; instead of l1.Items["i1"].sTitle="this way";
If you want a bit of advice, discourage the clients from using it this way. Because if the "i1" menu item does not exist, null will probably be returned, which would lead to an unhandled NullReferenceException . This is bad practice.
-----
If atheism is a religion, then not collecting stamps is a hobby. -- Unknown
|
|
|
|
|
I want to get the System name, for that i have used the SystemInformation class when i applied this in windows form it is working nice and when i am writing this in the windows service it is showning an error that this doesn't exist in the current context. for this i have to include the namespace System.Windows.Form.
Is there any other opt method in order to get the system information in windows service otr this is the only way .
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
If it just the system name then use System.Net.Dns.GetHostName
|
|
|
|