|
I used a code like "peer-to-peer video conferance" in codeproject's sample.
I send 10 images in per seccond and each image is almost 20KB.
I receive an error like this: your machine close the connection perforce.
I think it because of port traffic, but what I can do?
|
|
|
|
|
UserControl is a term used in (at least) ASP.NET, WinForm, and WPF, but at least we got a bit closer.
Based on your other posts I am guessing ASP.NET and then you do indeed need to copy the content into a hidden .NET control from the javascript (as already suggested), but be aware that any content from another site than the site hosting your ASP.NET application will not be available for security reasons.
|
|
|
|
|
No ~
this some code fragment below:
<iframe id="htmlContent" frameborder="0" marginheight="4" marginwidth="4"></iframe><!--container for user-->
<div class="UploadFile" id="UploadFile"></div>
<!--html control-->
<textarea cols="53" rows="3" id="oContent" class="hidden" name="oContent" ></textarea><!--container for server-->
<input type="file" id="oFile" name="oFile" onchange="javascript:oEdit.OnFileLoad();void(0)" class="hidden" />
</div>
<script type="text/javascript" language="javascript" src="Images/htmlEdit.js"></script>
...
<br />
#region Properties & Fields<br />
private string _File;<br />
private string _Content;<br />
public string oFile<br />
{<br />
get { return _File; }<br />
set { _File = value; }<br />
}<br />
public string oContent<br />
{<br />
get { return _Content; }<br />
set { _Content = value; }<br />
}<br />
#endregion
not for security reasons.
//copy the content into a hidden .NET control from the javascript
innerHtml ---> javascript ---> TextBox ---> codebihind ...OK!
main problem is when to do that ?
when another page using the UserControl clicked a button ,we can only see its property "oContent" is ok ?
|
|
|
|
|
|
Image.Save Method[^]
Before posting such simple question you should Search Google and codeproject or check documentation
|
|
|
|
|
How about using the Image.Save method?
|
|
|
|
|
Don't delete your post after it has been answered. That is very rude.
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
sorry, but it seems my post was mockery.
|
|
|
|
|
It happens. Just letting you know for future reference, so you don't get flamed
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
Hi all,
im a newbie in C# i need some help.
Create a tag balancing program.
The program must be able to detect missing start and end tags.
hope anyone can give the solution.. as soon as possible...
life is like a cup of coffee.. its pure black.. its up to you on how much coffee cream you pour in to cast away its blackness.
|
|
|
|
|
Hi... I will not give code, I give you pseucode... If you don't like it Google is your answer
//Get origin data as parameter or reading a file
//Loop inside string char by char
if( char == '<' )
{
//save index
}
else if( char == '>' )
{
//check index and save tag name
}
else if( char == '/>' )
{
//check index and check tag name vs saved tag's name
}
//end loop
//Other option is to use Regex: http://www.windowsdevcenter.com/pub/a/oreilly/windows/news/csharp_0101.html
Visit my blog at
|
|
|
|
|
hi everyone... i am a newbie in C# and i have taken several exams for a job and one of the problems i have encountered is this... i was ask to make a short program.. this is the question....
Create a tag balancing program.
The program must be able to detect missing start and end tags.
life is like a cup of coffee.. its pure black.. its up to you on how much coffee cream you pour in to cast away its blackness.
|
|
|
|
|
If you're applying for a C# job, and you don't have any C# experience, how do you expect to actually perform the job? (Or are you hoping people on codeproject will help you every step of the way, every day?)
Regular expressions are the key to this problem. If you're a newbie, it's likely to make your brain hurt, which I'm sure is the reason why they've asked you the question.
|
|
|
|
|
actually didnt got the job..
would you give me the sample code for reference????
life is like a cup of coffee.. its pure black.. its up to you on how much coffee cream you pour in to cast away its blackness.
|
|
|
|
|
I don't have an example - I was just suggesting that regular expressions would be the a good way of solving it. If you really want me to the write the code for you, I'm sure we can come to an agreement if you're happy to pay a sensible hourly fee.
|
|
|
|
|
hello i understand the secrecy of your knowledge...
i hope u can elaborate more with regards to your code..
i hope u understand... i really want to learn...
thanks
life is like a cup of coffee.. its pure black.. its up to you on how much coffee cream you pour in to cast away its blackness.
|
|
|
|
|
can anybody send some solutions with this regard.. which more suitable using regular expressions or using stack..
thanks...
life is like a cup of coffee.. its pure black.. its up to you on how much coffee cream you pour in to cast away its blackness.
|
|
|
|
|
I had a web site i need to show some activity ICON in Taskbar. Icon will keep displaying updated Values upon receives from different users or Database. Just like when we receiv new email in Outlook express and populate small window.
Thanks,
Sun Rays
|
|
|
|
|
That's good to know. Let us know when you have a specific problem, and we'll try to help.
|
|
|
|
|
I dont know how to do this... bcoz in window application we have notify icon control which is doing the same.
but I need for Web Application,
Thanks.
Thanks,
Sun Rays
|
|
|
|
|
|
Hello,
I want to change pixel values of an image according to some data assigned for each pixel location.
I found many image processing tutorials but could not cum across with anything to change the pixel values. If someone can help me it'll be really appreciated.
Thank you
|
|
|
|
|
I suggest you have a look at Image Processing articles by Christian Graus here: http://www.codeproject.com/script/articles/list_articles.asp?userid=6556
|
|
|
|
|
First of all sorry for cross posting, but i need at answer in a short time. The Original Thread is here http://www.codeproject.com/script/comments/forums.asp?forumid=1650&df=2&select=2277409#xx2277409xx[^]
Is there any way to get the Line Number of an Exception at runtime. I don't want to use the pdb Files in the release version. I also tried the Stackframe Object and it also doesn't work.
I know that the Project is in the IL when it is build. But perhaps there is a way with reflection?
Any Ideas? Please help me.
|
|
|
|
|
So now you feel your lack of planning is a reason to annoy everyone else? We did not make any planning mistakes, so why do we have to see your post all over the place? What makes you think you have a more urgent need for the reply than everyone else posting there question in single thread? Actually, have you considered the world is not just about you?
|
|
|
|