|
I Have a web service listner. Another web service calls a function , say...
Myfunc. I return success when i am done and the process starts again.
i would like to track some data when Myfunc is called that i can use for validation on subsequent calls to Myfunc. Using memory will not work because if i store some data on call 1 to Myfunc, in an array list, on the subsequent call to Myfunc, that data is gone.
What is the quickest, way to get around this?
Is it Threads? If so, can someone give me some guidance on threads in C#
Or is it simply to write to a file before i return success, then read from the file when Myfunc gets called again. In that way, i always have current data?
|
|
|
|
|
Define the array list as "public shared", I think it not clear when subsequent call.
|
|
|
|
|
So public shared, keeps the memory and will not loose it on subsequent calls?
Remember the web service is like a dll.
Are you sure this would work?
|
|
|
|
|
|
public shared is a VB concept.. Does not work in C#
|
|
|
|
|
If u convert "Public Shared ABC As String()"code of vb to C# will find this "public static string[] ABC;" so test this one working for u.
|
|
|
|
|
Hi all,
I'm using the standard open file dialog of windows in my c# application. The problem is, I want the dialog to show a thumbnail preview of the html files of the current directory . How can I do that?
thanking you in advance,
jaz
|
|
|
|
|
|
Hi Giorgi Dalakishvili,
Thanks for your reply..
but i am looking for an template browser that shows thumbnails of templates (saved as html files not images)... do u have any other solutions.
Thanks once again
jaz
|
|
|
|
|
But you will definitely need openfiledialog with picturebox won't you? You now to find out how to get thumbnail from website. Google is your friend
|
|
|
|
|
hi,
thanks,
u r correct , i need openfiledialog with picturebox...
but without getting thumbnail from a html file my idea will not work...
I tried google.. and i got openfiledialog with picturebox but not a single example or idea about getting the thumbnail view of a html file..
Can u giv me someidea ????????
Thanks;)
jaz
|
|
|
|
|
|
hi ,
Thanks ;);)
thank you very muchhhhhhhhhh
jaz
|
|
|
|
|
You are welcome Just get used to searching cp and Google. You will find many useful things
-- modified at 8:57 Monday 14th May, 2007
|
|
|
|
|
Could someone help me with this problem :
Try this: open import dialog, the form that let you to locate the XML file on hard drive. Create a folder, then try to delete this folder - you'll end up with this Loader Lock message: Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang. ImportHierarchyView.cs, line 86
10x
|
|
|
|
|
Hi all,
Is there any way to get webBrowser.DocumentText for a web page that has different Frames.
Each frame has different data. I need to access one specific frame and want to access data. But
webBrowser.DocumentTex gives only brief info about frames not the details.
That page has header, Search, toc Frames.
Please guide me extract data from a specific frame
Thanks Bye
Bajrang
Using .net 2.0 (VS2005)
|
|
|
|
|
Dear All,
In Asp.net with C#, to protect of viewing the file which is available in file server, using the url of the file location, Files are available in one common share folder which is accessed thru Virtual directory, so need help of this regarding
regards,
eswar
|
|
|
|
|
Hi,
I am using Wince 5.0 with VS2005. I have created user control and on click event i am creating new label and showing it on control.like this
Label newPanel = new Label();
newPanel.Visible = true;
newPanel.Left = 0;
newPanel.Top = newLabel.Height;
newPanel.BackColor = Color.Blue;
newPanel.Width = this.Width;
newPanel.Height = this.Height - newLabel.Height;
newPanel.Parent = this.Parent;
newPanel.Anchor = (AnchorStyles.Left | AnchorStyles.Bottom |
AnchorStyles.Right | AnchorStyles.Top);
newPanel.Show();
this.Controls.Add(newPanel);
then i want to use this control on Form,so i created the device application and droped my control on Form,after clicking on control i can see the new labe on control but after rebuilding the application the label disappears.
I want to create some more such labels dynamically on my conrol.
how to add dynamically created control inside the usercontrol??
Thanks
Tushar
|
|
|
|
|
Hello,
You could add a int property to your control which represent the number of labels in your Control.
in the setter of your property you create the instances of your labels.
I would recommend to store this instances to an ArrayList or Hashtable so that you allways can check how much lables are on your control.
You can then modify this property on Click or whatever you whant.
Hope it helps!
All the best,
Martin
|
|
|
|
|
Thanks Martin,
but at design time that label get disappear when i rebuild the project.
Tushar.
|
|
|
|
|
Hello Tushar,
I know, couse the designer calls the constructor of your control and reinitializes all the settings.
Therefore I recommended an additional int property, which value is stored in code.
If the designer setts the property your control creates the number of Labels you want.
Like:
private int _numberoflabels = 0;
private int _oldlabelcnt=0;
[DefaultValue(0)]
public int NumberOfLabels
{
get
{
return _numberoflabels;
}
set
{
if(value!=_numberoflabels
{
_numberoflabels = value;
CreateLabels(_numberoflabels);
}
}
}
private void CreateLabels(int actnumberoflabels)
{
for(int x=oldlabelcnt; x<actnumberoflabels; x++)
{
Label l = new Label()
.
.
.
}
_oldlabelcnt = actnumberoflabels;
}
Hope there are not too many mistakes, I haven't tested it!
All the best,
Martin
|
|
|
|
|
Hello. I can't find the proper configuration file to that:
Dim chan As New TcpChannel(9999)
ChannelServices.RegisterChannel(chan, True)
RemotingConfiguration.RegisterWellKnownServiceType(GetType(objetoRemoto.RemotingSamples.HelloServer),
"SayHello", WellKnownObjectMode.SingleCall)
I try with many app.config files that found in remoting articles, but all of
them fails in runtime.
What is the correct file to the lines above?
Regards,
Diego F.
|
|
|
|
|
Dear All,
How can Display a Bar graph in crystal Report.
Thanks In Advance
Dana
|
|
|
|
|
|
hi ..
I cant update the value in checkbox (which is in an edititem template) to database.My html code is
<EditItemTemplate>
<asp:CheckBox ID="CHKIMPA" runat="server" Checked='<%# ((object)Eval("IMPA") ).ToString() == "1" ? true:false %>' />
</EditItemTemplate>
When i save using gridview update, null values are saved in the database. I am using sqldatasource. My database field is INT. plz help.
Thanks in advance
-- modified at 5:37 Monday 14th May, 2007
Ranjith Stephen
|
|
|
|