|
if a LAN-wide solution is what you are after, then I'd consider embedding a web server, as is done e.g. here: Sample HTTP Server Skeleton in C#[^]. No need for IIS or some such.
|
|
|
|
|
It's not the end of the world if someone stumbles across this data but I would like to avoid it. Basically I want to call my boss or customer and say go to this address and you can watch what I'm going. It would only last a few hours at a time. It could be over a lan but I don't think that a customer can remote into our network.
I would like to avoid an extra server but I understand there are security concerns and it's not out of the question.
Thanks for the help.
|
|
|
|
|
I made a registration form(using asp.net and C#) with some attributes like username, password,date of birth,phone no,address, gender, postal code etc. There's no error in the code.
But When I run my web site and fill in the details, and press the OK button, I get an error:"Input string was not in a correct format."
Plz help me!
|
|
|
|
|
OK, a few pointers.
First of all, you should have asked this in the ASP.NET forum - that's the appropriate place to put questions on ASP.NET applications.
Secondly, have you actually tried debugging your application? Randomly pushing buttons and hoping that the fix-it fairy will magically visit isn't a valid debugging strategy.
Third - Google turns up millions of hits; always a good first stop - by the time you've typed your question in and waited for an answer, you could have found the answer on your own.
Fourth - big hint here. It's your DAL code that's at fault.
|
|
|
|
|
|
Pete O'Hanlon wrote: the fix-it fairy
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
That error means that the format of something that is trying to be converted to a number or date is wrong. Dates in particular are a pain because you really need to ask for input in an unambiguous format (e.g. 2011-10-07) which is unnatural, or allow a different format depending on the end user's locale. (Particularly for days like today where '7/10/11' is valid but different in the US or everywhere-else formats.)
|
|
|
|
|
angel 2 wrote: There's no error in the code.
How did you assume that?
angel 2 wrote: I get an error:"Input string was not in a correct format." Plz help me!
This error usually occurs during data type conversions, like when using Convert.ToInt() etc. You may want to check your string before converting.
|
|
|
|
|
angel 2 wrote: Re: Error!
That's an interesting subject.
angel 2 wrote: There's no error in the code
Lucky you. So why post a cry for help?
angel 2 wrote: Input string was not in a correct format
Most likely cause is the string you are converting to some type (int, DateTime, ...) is empty.
|
|
|
|
|
Hi,
I am a novice in C# and need to create a collapsible panel or expander in my C# project. I am using VS2010 .net4 Framework.
Please help with the code and explanation in detail.
Thanks,
Shikha
|
|
|
|
|
What type of application? ASP.NET, WPF, WinForms?
|
|
|
|
|
|
If your goal is to learn C#, learn to use GUI elements to create fluent interfaces, etc.: I suggest you spend some time trying to create your own "Outlook" style Panel Widget. A little struggle now, and then when you do go to examine someone else's code (like that in the excellent link that Ravi pointed you to in his reply), you'll be ready to absorb, primed to learn.
It's very simple to create such a control using Panels inside a "container" Panel: you can use the Dock property of the "inner Panels" to help you with adjusting the size of the "collapsed inner Panels."
good luck, Bill
"Use the word 'cybernetics,' Norbert, because nobody knows what it means. This will always put you at an advantage in arguments." Claude Shannon (Information Theory scientist): letter to Norbert Weiner of M.I.T., circa 1940
modified 8-Oct-11 16:18pm.
|
|
|
|
|
hi
I wanted to add Collapsible in windows form.
Thanks Ravi for the links.
Thanks for the suggestion Bill.
I am trying to make a project which require few functionalities which i need to understand. will keep posting you guys. Please do help.
|
|
|
|
|
please tell me how can i implement polyline in c# and which algo will be used???
|
|
|
|
|
|
Good one! 5+
"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
|
|
|
|
|
Hi guys,
I was looking around for a way to measure the time consumption of a certain algorithm in C#.
Here is what I came up with:
public static TimeSpan MeasureTime(Action action)
{
var startTime = DateTime.Now;
action();
var stopTime = DateTime.Now;
return stopTime - startTime;
}
I am wondering if there is a better code to do the job.
Best regards,
Omar Rwemi.
|
|
|
|
|
|
Thanks for the fast reply Dave. I will check Stopwatch Class.
Thanks.
|
|
|
|
|
Er... thanks also, I had not come across this before!
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
You need to read up Marc Clifton's articles, he's covered this and other techniques for measuring performance.
|
|
|
|
|
I want to put little arrows inside a DataGrid to mimic the kind of display shown in this Excel file:
[IMG]http://i67.photobucket.com/albums/h292/Athono/arrows.png[/IMG]
But the XAML code defines individual columns instead of individual cells:
[code] <data:DataGridTemplateColumn Header="Prev. Mo. Trend" IsReadOnly="True">
<data:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel>
<Image x:Name="img1" Width="11" Height="12" VerticalAlignment="Center" HorizontalAlignment="Left"
Source="/MedAnalyzer;component/Assets/greenuparrow.png" Visibility="Visible"/>
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Right" x:Name="Prev_Mo_Trend" Text="{Binding Prev_Mo_Trend}">
</TextBlock>
</StackPanel>
</DataTemplate>
</data:DataGridTemplateColumn.CellTemplate>
</data:DataGridTemplateColumn>[/code]I can add text into the Datagrid by data binding with an observable collection. But this is text data. What about replacing gaphics? Do I need something extra special?
This is the results of my efforts
[IMG]http://i67.photobucket.com/albums/h292/Athono/otherarrows.png[/IMG]
I do not need to have the graphic and the text share the same sell. That part can be overlooked. How can I just replace the arrow with a different error within the cell?
|
|
|
|
|
Look, you have already been told that there is a Silverlight/WPF forum. Why don't you use it? That's the place for questions about Silverlight - not here.
|
|
|
|
|