|
1. Learn basics of C#
2. Learn basics of network programming.
3. Learn the protocol that defines "smart bro"
4. Put 1/2/3 together to create code that does what you want.
5. Test 4 and fix problems.
I would suspect that you might also need to learn about windows services. But that depends on what you mean by "automatically".
|
|
|
|
|
thank you for the reply..actually, i already have some codes from the internet on how to send and receive messages..however, the smart bro show 3 ports, COM3, 4, and 5.. i dont know why..i tried to use all the ports but i havnt successfully connected the smartbro to my c#..this is really my actual problem, how to connect smart bro to my c#. i already know about serialport class and gsmcomm..but i still dont know why cant i access my smart bro...huhu
|
|
|
|
|
And you know what protocol is expected on the serial port to talk to that device?
Do you have other software which does talk to it? Or in other words how do you know that the device is even interacting at the hardware/driver level?
|
|
|
|
|
i dont know either..thanks for the reply..i think i need more time and research for this..i have tried using hyper terminal.but it doesnt work.. i cant interface my smart bro using hyper terminal..i dont know whats the problem but i have read articles that interfacing smart bro is possible..thanks again..
|
|
|
|
|
I need to create a server client system and though I have created several libraries for tcp/ip communications (sockets, named pipes) I want to buy a profecional component that can handle packages loss, message compression and low quality networking. I have see that remobjects are a nice implementation but I cannot find any reviews for the product. Have you ever used remobjects for a project or any other simular component for C#?
thank you
|
|
|
|
|
Nowadays all the hype goes to WCF (excellent if one overlook the horrible configuration stage)
And there is a great open source alternative: http://www.servicestack.net/[^]
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Thank you for your answer,
I haven't thought WCF as an alternative and I searched for it but I read that it's not good in networking oop but It's better for SOA. The WCF developer has a huge overhead of interfaces and classes just to make it transmit some objects and the documentation of TCP/IP WCF is not very good.
I'll check the opensource alternative but I most probably use RemObjects. My main concern is that I cannot find any ppl using them and I worry if they worth the money they costs.
|
|
|
|
|
I'm on holiday typing from my phone now...
isn't the "ip" (from tcp/ip) handling package loss for you?
unless you want to use UDP?
I think there is a code project article about wcf over UDP...
at any rate this problem has perfectly good and free solution, I don't see why you would have to pay anything for that...
wcf use soap messages (I.e. Extremely verbose XML) over http
so it heavy..
but this is just the default setting, you can use TCP connection and binary formatter in your configuration! And even compression too! Ni service change!!
but apparently servicestack is even more compact
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Can anyone pls help me with the same problem.
I have Stored the User's profile Image's filename in the database column Image.
And the image to a folder named UserImage.
Can anyone pls help me with the code to display the image of corresponding user to the repeater.
I tried the above code but not working.
Pls help me.
Its urgent.
thanks in advance.
|
|
|
|
|
Yasir887 wrote: Its urgent.
Not to us it isn't. Nobody here is paid to answer your questions; we do it because we enjoy helping other people.
Adding "it's urgent" to your question isn't going to make us help you any faster. In fact, it's more likely to make us ignore your question!
Yasir887 wrote: I tried the above code but not working.
What code? Did you forget to paste it?
Also, "not working" isn't enough information. How is it not working? Are you getting an error message? Is the output not what you expected?
Yasir887 wrote: I have Stored the User's profile Image's filename in the database column Image.
And the image to a folder named UserImage.
Can anyone pls help me with the code to display the image of corresponding user to the repeater.
What have you tried? The obvious approach is:
<asp:Image runat="server"
ImageUrl='<%# Eval("Image", "~/UserImage/{0}") %>'
/>
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Really sorry for the way in which i asked the question.
thanks for the code you had mentioned here . I tried the same thing. But not working.
Below is the code which i did.
In the aspx page:
protected void Page_Load(object sender, EventArgs e)
{
DataTable dt = new DataTable();
dt = db.table("SELECT UserDetails.UserName, UserDetails.Image, Article.ArticleId, Article.ArticleTitle, Article.ArticleDescription, Article.ArticleDate FROM Article INNER JOIN UserDetails ON Article.UserName = UserDetails.UserName");
Repeater1.DataSource = dt;
Repeater1.DataBind();
}
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
string aid = Request.QueryString["aid"];
}
And the html side:
<asp:repeater id="Repeater1" runat="server"
="" onitemcommand="Repeater1_ItemCommand">
<HeaderTemplate>
</HeaderTemplate>
<itemtemplate>
<%#DataBinder.Eval(Container,"DataItem.ArticleTitle")%>
Posted by <%#DataBinder.Eval(Container,"DataItem.UserName")%> | on <%#DataBinder.Eval(Container,"DataItem.ArticleDate")%>
<asp:image id="Image1" runat="server" imageurl="<%# Eval("Image", "~/UserImage/{0}") %>">
<separatortemplate>
<footertemplate>
|
|
|
|
|
What output does the Image control generate? Can you access the URL from the src attribute directly?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Image control is blank now.
|
|
|
|
|
If the src attribute is blank, that means you don't have a value in the Image column.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thank you so much.. The problem you had mentioned is right... I got the desired result.. Thanks alot...
|
|
|
|
|
Richard Deeming wrote: "it's urgent"
OP automatically ignored here
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
Hi.
I have 3 different C# programs which are written in 3 different solutions. I have Form1, Form2 and a class which I want both forms to be able to use.
I want to make a new form "Menu" from which I can control the Form to open.
So how do I combine all of these together? (The 2 forms and that I'll be able to use the class in my 2 forms).
Thanks.
modified 20-Dec-12 10:25am.
|
|
|
|
|
Combine the Projects from the various Solutions into a new Solution.
|
|
|
|
|
How do I do that? Do I copy all the code to the new solution? or there's a service which combines several solutions into one?
|
|
|
|
|
Add > Existing project...
|
|
|
|
|
Hello all,
I am now ICT student, but i am facing a great problem, I cannot improve my C# Skill. How can improve my C# skill?
|
|
|
|
|
Lots of study, and practice, practice, practice.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Read the specification a couple of times, I find that there's something "new" in it every time I read it.
Read Eric Lippert's blog.
Do a lot of coding.
Don't be afraid to ask questions if you have to, but check the specification first - the answer you'll get from it (if any) will usually be better than the answer you'll get online.
If the question is more about architecture and/or style, often the best way to find out is to try everything and see how they work out.
|
|
|
|
|
dont stop with reading books and articles. try to create sample programs as many as possible while reading books.
Jibesh.V.P
India
|
|
|
|
|