|
For a start, your syntax isn't right. You refer to StatusCode - have you set this as a property somewhere in your ControllerPage class? All I see there is a method called PropStatusCode, which won't compile BTW because you have applied a parameter to it, so it's no longer a property. (Check the other part of your partial MyPage class, because I think that you might have declared StatusCode in there. )
I regularly use classes where the inheritance chain runs more than 1 level deep and I have no problems with it.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I actually can't see how this even compiles:
John Simmons / outlaw programmer wrote:
long PropStatusCode(value)
{
get { return m_nStatusCode; }
set { m_nStatusCode = value; }
}
That mixes property and method declarations up.
Also:
John Simmons / outlaw programmer wrote: this.StatusCode = 1;
Does not equal
John Simmons / outlaw programmer wrote: long PropStatusCode(value)
There is an additional Prop prefix on Status code in the base class.
|
|
|
|
|
Well, I didn't do a copy paste from the code, so ignore the errors... In any case, the real problem is that I forgot that variables don't persist between page loads. Of course - why would they? That would make web programming too much like regular application programming, and we don't want that, now, do we...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
HOw can I replace this xml string:
"<marketdata><date>19-Feb-2007 11:26:39<producedby>james Dean<isdifferential>False<forwardcurves><forwardcurve code="\"AL" lme_fut\"="">
to:
"<marketdata><date>19-Feb-2007 11:26:39<producedby>james Dean<isdifferential>False<forwardcurves><forwardcurve code="AL LME_FUT">
Notice removing the backslash i.e. \ from forwardCurve code
Thanks
|
|
|
|
|
Your XML strings are not displayed properly. Try posting again and check the "Ignore HTML tags in this message" option beneath the smilies.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
HOw can I replace this xml string:
"<marketData><date>19-Feb-2007 11:26:39</date><producedBy>james Dean</producedBy><isDifferential>False</isDifferential><forwardCurves><forwardCurve code=\"AL LME_FUT\">
to:
"<marketData><date>19-Feb-2007 11:26:39</date><producedBy>james Dean</producedBy><isDifferential>False</isDifferential><forwardCurves><forwardCurve code="AL LME_FUT">
Notice removing the backslash i.e. \ from forwardCurve code
Thanks
|
|
|
|
|
The string that you have is not valid XML. Are you sure that the string really contains that character, or have you just looked at what the debugger displays?
---
single minded; short sighted; long gone;
|
|
|
|
|
It is what I see in the immediate window
|
|
|
|
|
Then you are chasing ghosts. There is no \ character in the string, it's just displayed the same way that you would write it as a string literal.
---
single minded; short sighted; long gone;
|
|
|
|
|
I think the characters you are talking about were removed when you posted this message.
Still if you have the string. I would just to the .Replace("\","");
So if you have a string:
String tmp = "blablabla\blablabla";
tmp = tmp.Replace(@"\","");
Hope that helps.
Ben
|
|
|
|
|
Hi !
I need to implement udp protocol in C#/VB.net Win Forms that send some request to the broadcast address from specific port and then change to be client and receive multiple answers from the broadcast on the same specific port.
My questions are:
1.Is the first connection should use blocking (synchronous) functions ?
2.Should I close this first socket,and then open another one on the same port in order to get the broadcast answers ?
3.In which way should I get the broadcast answers:a.using asynchronous function and events like BeginSend/EndSend etc or b.using threads ?
4.How do I get multiple answers on the same port in this case ?
I will be glad to get answers/code snippets.
Tnx
AliJ
|
|
|
|
|
I know I've seen this, but I can't find it, so if someone can throw me a URL or two, that would be awesome! I want to take a screenshot without using any APIs or DLLs or other TLAs (just straight C# methods). The reason is that I want to port it to Linux (using Mono).
I'd prefer that it not use anything from Framework 2.0 (only 1.1) because Mono isn't fully implemented for 2.0 yet, but I'll take what I can get.
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
|
You rock. Thanks!
I think I remember that some 2.0 stuff is implemented in mono so far... I'll check it out in MonoDevelop during my lunch.
If not, I'll also see if I can use gdi32.dll (does FC6 even have that dll?..., I ask myself).
Again, thanks!
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
I don't think this is possible through the .NET framework directly. Oh, Graphics.CopyFromScreen works.
|
|
|
|
|
Hi Im trying to validate txt boxes at the moment to make some of them text values only and others numrerical im very new to c# can anyone help me. Im using visual studios its probally really easy but drawing up blanks
OBE
OBE
|
|
|
|
|
|
|
Hi there
I have a user control which when placed on a form in the designer - appears to be running. A flashing cursor appears within one of the controls.
Is there a property or attribute i should be using to stop this behaviour?
Cheers
Rich
|
|
|
|
|
You can use the DesignMode property (boolean)
Check this blog post[^] for more information.
|
|
|
|
|
I have a function to display a popup in a form:
taskbarNotifier1.Show("HostName: \n\n SiteHit: \n\n Survey: \n\n TAF: \n\n ATO: ", strQuery, 300, 2000, 300);
Now these hostname,survey,taf,ato i have to get from database :
strQuery = "select url,sitehit,survey,tellafriend,addtooutlook from tblsummary where datetime = now";
i.e. the last/current entry of database and store all these data in string 'strQuery' and call this variable 'strQuery' in above function taskbarNotifier1.Show in different lines ie one after other like this :
|------------------------------------
| Hostname : nekshan@yahoo.com |
|
| Sitehit : 1
|
| Survey : 0
|
| tellafriend : 1
|_______________________________|
These in bold are data to be displayed by the query.
How to get all this data in one variable to put it in my function n display data in this format.
Can i get many fields from a record of a table and store it in a variable or i have to use some other way.
i dont know whether i can get many fields from a record of a table and store it in a variable.
Hope to get some response.
thank you
nekshan.
Hope u r getting my Point.
Thanx
nekshan.
|
|
|
|
|
Hi,
1. For concatenating Strings, use StringBuilder. Append data in a
StringBuilder variable.
2. For retrieve data from the database.
a.Connect to database
b.Fill data in Dataset using SQL Adapter or ExecuteDataSet.
c.Save this result in a Dataset variable. (Assume variable as 'ds')
3. To get value of each column --->
ds.Tables[0].Rows[0]["url"].ToString() and so on for other columns..
4. Append those values in a StringBuilder variable.
5. Use that variable in this line
(Note : Replace strQuery -> StringBuilder variable)
taskbarNotifier1.Show("HostName: \n\n SiteHit: \n\n Survey: \n\n TAF: \n\n ATO: ", SB, 300, 2000, 300);
Hope this is what you wanted.
-Harini
|
|
|
|
|
i have soln but if u know how to create stored procedure then i send u ok. reply me u know or not.
|
|
|
|
|
Without stored procedure the solution won't work or what?
No, I donno how to create storedprocedures. But i'll learn. Is it too complex or hard to learn?
Today i m not feeling well, so i may work on it 2mrw, but u can send i'll study it, just explain in a bit detail.
Thanx n Regards
Nekshan.
|
|
|
|
|
' I ALLREADY SENT U THIS ANSWER WITHOUT STORED PROCEDURE IN ONE QUESTION REPLAY SO REFERE IT.OK.BYE.TC.
|
|
|
|