|
You're going to fail your course, even if someone does this for you. So, practice with me 'do you want fries with that ?'
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Do you think people write these kind of posts just because they know lots of people will reply to complain about them?
|
|
|
|
|
Change majors.
"Well, we're getting "F"'d at work. WPF, WCF, and WWF... WTF?" --John Simmons
|
|
|
|
|
Hello,
I am creating a windows service which performs 20 operations based on some condition. So at one time one process will be executed.
All these 20 different tasks are separate assemblies added to the windows service. The objects and the call to the assembly will be made only when needed.
For example:
Case "findcustomer"
create object
process
Case "findVendor"
create object
process
Is this approach a good idea? Also I want to know what needs to be keep in mind related to design of this service.
Regards,
Pavas
Regards,
Pavas
|
|
|
|
|
hi. im thinking of building a multi user game that works over the internet but the clients are a desktop applications.
that means that the application will have to talk to a server on the internet and im not sure about what technology to use when sending messeges between the client and server.
is it "expensive" for example to use web service to communicate with the application?
what is the common use technology when developing such application?
|
|
|
|
|
Hi,
what do you mean by "expensive"? Regarding the speed of the application or the time to implement the app.
My opinion:
Implementing the app using the low-level TCP/IP (or UDP, depends on the app) protocol will result in fast communication between client and server, because web services are on a much higher level (ISO/OSI) using protocols like HTTP etc. Also you need an IIS to host the service etc. This will all slow down the app. But going this way will need you to invest time, because you have to implement all the stuff like opening sockets, handling server communication etc.
Hope this helps you a bit.
Regards
Sebastian
|
|
|
|
|
Hi
I would like to link ArrayList as datasource to datagridview
I’ve defined the
ArrayList arrList;
arrList = new ArrayList();
//Add data to list
arrList.Add(node_1);
...
arrList.Add(node_n);
dataGridView1.DataSource = arrList;
Adding the link is OK, the problem is that I see all the members of nodes in datagridview and I wish to see only specific members in the grid.
I try to manually add columns to grid and it didn’t help, I see all members of node in datagridview
Please advice
Thanks
Ronen
|
|
|
|
|
maybe you should forget the datasource option and update the grid view as required by looping through the array list. That way you can display what ever you want how you want, much more control that way
|
|
|
|
|
See this is my code same as you want , this works for me correctly:
<br />
grdRequests.Columns.Clear();<br />
<br />
<br />
loanRequests =
grdRequests.DataSource = loanRequests;<br />
grdRequests.DataKeyNames = new string[] { "ID" };<br />
<br />
<br />
<br />
CommandField SelectField = new CommandField();<br />
SelectField.SelectText = "field1";<br />
SelectField.ShowSelectButton = true;<br />
grdRequests.Columns.Add(SelectField);<br />
<br />
<br />
BoundField IDField = new BoundField();<br />
IDField.DataField = "ID";<br />
IDField.HeaderText = "field2";<br />
grdRequests.Columns.Add(IDField);<br />
<br />
...<br />
<br />
<br />
grdRequests.DataBind();<br />
Human knowledge belongs to the world
|
|
|
|
|
The DataGridView will automatically show ALL public properties of your Node class.
So you could do as musefan has suggested, or a possible alternative is to create a new class 'GriddableNode' which holds only the properties you wish to display, then create a list of some sort to use as the datasource for the DataGridView. OR you could edit the columns of the DataGridView, use the SmartTag for the gridview in the designer.
Henry Minute
If you open a can of worms, any viable solution *MUST* involve a larger can.
|
|
|
|
|
I am passing the data of an element inside an xml file into a sql server table with field varchar(max). This datatype is permanent and due to business rule is not allowed to be changed.
The xml file contains something like:
i.e.
<file>
<data>
-----1234------
This is the value for the first item...
</data>
<data>
-----9876------
This is the value for the second item...
</data>
</file>
Notice, there are spaces and carriage returns.
When pulling these data out of the xml file, in the immediate window, I can see "\r\n\r\n" attached to the text where there should be a return.
Problem:
The sql does not take care of these returns, so that when I show these values on the UI, I do not see the carriage returns.
Question:
How do I see the text on the UI as it exacly appears in the xml file ?
Thanks
|
|
|
|
|
Make it CDATA
I are troll
|
|
|
|
|
indeed it has ![CDATA[]] in there already with the data inside []
|
|
|
|
|
In that case I;m obvious not awake, So I'll shut up further and go for a nice cup of black, hot coffee
I are troll
|
|
|
|
|
UI is what? Web or Windows? If its Web then you need to convert spaces to and returns to <br/>
|
|
|
|
|
UI is a third party web front end which I do not have access to the code.
So the only option seems to be when I am placing the xml data into the sql server table.
The xml data in the xml file has carriage return and liine feeds.
In the immediate window (c# app which I use to upload the xml data), I can see \r\n in the text but these signs are not imported into the table field which is of type varchar(max).
Thanks
|
|
|
|
|
arkiboys wrote: I can see \r\n in the text but these signs are not imported into the table field which is of type varchar(max).
Yes they are, its just you dont see them as \r\n - they're non-printing characters so they dont display in the database - but I assure you they're there.
You have 2 options
1) Make the replacement when uploading the data
2) Make the replacement when retrieving data
take your pick.
|
|
|
|
|
In immedia window:
"---- 2008 ----\r\n\r\nsome text here"
In output window:
---- 2008 ----
some text here
in sql server table:
---- 2008 ---- some text here
|
|
|
|
|
Was that supposed to tell me something?
|
|
|
|
|
Sorry,
The idea is to get the same result into the sql field as the one in the output window.
|
|
|
|
|
Hello Friends,
I have a requirement of my application to know when user select a value on crystal report and getting the selected value from crystal report view to my .net application and using that value set data to be drill down.
Kindly help me how can I get the selected value from crystal report view to my application.
Thanks in advance
Regards
|
|
|
|
|
hi,
kindly let me know that, how to add Icon file / JPG file into Cell using DataGridView?
Thankx in advance
(Riaz)
|
|
|
|
|
Use image column.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|
hello
having problem trying to unregister remoting channel (.NET 2.0/XP) - error:
<br />
System.Net.Sockets.SocketException : Only one usage of each socket address (protocol/network address/port) is normally permitted<br />
On server side, I created the channel by:
<br />
TcpChannel oTcpChannel = new TcpChannel(AppContext.DefaultRemotingInterfacePort); ChannelServices.RegisterChannel(oTcpChannel, true);<br />
RemotingConfiguration.RegisterWellKnownServiceType(typeof(Util.MyRemoteObj, "TcpRemoteObj", WellKnownObjectMode.Singleton);<br />
Then I try to close and restart channel (as part of application re-initialization rountine - this means process never actually exited and that would be undesirable)
<br />
ChannelServices.UnregisterChannel(oChannel);<br />
TcpChannel oChTcp = (TcpChannel)oChannel; oChTcp.StopListening(null);<br />
I have no clue how to get around this at the moment - I Googled a bit seems like many people are running into this problem but no solution yet. Many suspected OS (or .NET) failed to release socket on UnregisterChannel until application/process exit. But I don't want to exit the app, just want to reinitialize remoting as part of re-init routine.
Any suggestion? Many thanks!
dev
|
|
|
|
|
i am making a program wherein i have a replica of a keyboard. The user will tap any key on the keyboard on what he would like to type. He can select the input language to English,Japanese Hiragana and Japanese Katakana. I'm using Sendkey.Sendwait to send the character tapped by the user to the textbox. My problem is when I select Hiragana or Katakana for the input language and type, sometimes the characters that I type will disappear. It will appear when the user will tap again a key to the keyboard. Please help me...
below is a snippet of my code...this will just display the alphabets...when the letter is tap...
if (m_LastStr!=null && m_LastStr.EndsWith(" ")) // added for the correction asked by anand
{
SendKeys.SendWait(m_LastStr + "\n");
SendKeys.Flush();
m_LastStr = null;
}
if (((Button)sender).Text[0] > 'A' && ((Button)sender).Text[0] < 'Z') // to handle shift effect
{
m_LastStr = m_LastStr + ((Button)sender).Text.ToLower();
SendKeys.SendWait(m_LastStr);
}
else
{
m_LastStr = m_LastStr + ((Button)sender).Text;
SendKeys.SendWait(m_LastStr);
}
SendKeys.Flush();
|
|
|
|