Thank you! :-)
esjq
Posts
-
Beginners question on deployment/installation -
Beginners question on deployment/installationHi! I've created a small application, a WPF client which is talking to a WCF service. My app is self-hosted. Now, I'd like to run this outside the IDE (Visual C# 2008 Express Edition). That is, to deploy/install my app. I'd really appreciate some advice or links on how to do this. I've been looking around, but I still need some entrance to this somewhat fuzzy area. Thanks a lot!
-
Databinding driving me crazy!Thank you guys! It worked with the datatemplate stuff. Have a nice day :-)
-
Databinding driving me crazy!Hi all! I've found lots of examples describing databinding, but still I haven't got a clue how to solve my problem. The frustrating thing is I think it is easy. But still, I'm lost... In a WPF application, I invoke a WCF service call (contactClient.GetContacts()), which returns an array of Friend objects. Window.xaml.cs:
private void PopulateContactsListBox()
{
listBoxContacts.Items.Clear();
listBoxContacts.ItemsSource = contactClient.GetContacts();
}My intention is to let a listbox display the result returned from the WCF service call. And it does, but it doesn't display the actual data. Instead it displays the ToString() representation. In other words, the listbox displays the type returned by the service call; like "DataLayer.Friend". So, how do I display the actual data from the service call in my listbox? Thank you!
-
WCF EventsHi all! I need some guidance regarding event handling in WCF. I'd like to have a service to notify a client of some changes, for example, a new record has been added to the database. And when the client receives the event it shall update a listbox. I really don't know where to start. I've seen some examples with duplex communication between the service and the client. But that is not the event handling with delegates and events I'm used to. Can anyone explain or supply good links to some sites describing event handling in WCF. Thanks for your time!
-
Finding tags and data in an xml-fileHi all! What is more effective from a performance perspective; finding an arbitrary tag in an xml-file by means of regular expressions or using the built in xml-support of .NET? Thanks :-)
-
Oracle Client 9i accessing problemTake a look at this link: http://dotnetjunkies.com/WebLog/rtgurskevik/archive/2005/01/19/45958.aspx
-
Text file Sorting.Take a look at regular expressions.
-
Dataset and DatagridYou say you have set the datasource property of the datagrid to the dataset. You haven't simply forgot to call the DataBind method of the datagrid?
-
How to get index/indices of a row in a DataTableDataTable dt=ds.Tables["employee"]; DataRow[] arr=dt.Select("emp_name='Joseph'"); textBox1.Text=arr[0].ItemArray["emp_id"].ToString();
Worth noting, if you have several persons named Joseph you simply can not take the first one. To obtain uniqueness it is better to work with the id-column. HTH -
problems connecting to local databaseShouldn't it be like this:
string c = "Data Source=(local);Initial Catalog=db.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True";
HTH -
Select RowI really see no need to hide the first form. I would do like this instead...
DataForm1 tmpForm = new DataForm1 (barry11,dataGrid, rowIndex); //tmpForm.Location = this.Location; tmpForm.ShowDialog(); //this.Hide();
...and skip all the code to restore the first form in DataForm1. -
Select RowYou're welcome! :-)
-
Select RowI suggest you skip the event handling i the second form. I really can't see the purpose of it. But, perhaps I get it wrong. Just assign the values to the textbox in the second form. You've got all the information you need through the constructor. Like this:
public DataForm1(Barry1 barry11, DataGrid dataGrid, int rowIndex) { // // Required for Windows Form Designer support // InitializeComponent(); PopulateTextBoxes(barry11, dataGrid, rowIndex); private void PopulateTextBoxes(Barry1 barry11, DataGrid dataGrid, int rowIndex) { editLASTNAME.Text = barry11.Tables[0].Rows[rowIndex]["Firstname"].ToString(); }
-
Datagrid select rowQuick'n dirty... In the main form, when a row in the datagrid is double clicked:
private void dgInfo_DoubleClick(object sender, System.EventArgs e) { Form2 frm=new Form2(ds, dgInfo.CurrentRowIndex); frm.ShowDialog(); }
In the constructor of Form2:public Form2(DataSet ds, int index):this() { textBox1.Text=ds.Tables[0].Rows[index][0].ToString(); textBox2.Text=ds.Tables[0].Rows[index][1].ToString(); textBox3.Text=ds.Tables[0].Rows[index][2].ToString(); }
Helpful perhaps... -
Problem in Altering a dbf table , table corruptsI've never worked with FoxPro, but to me it seems odd to specify the name of the database file (22.dbf) in an alter table statement. Shouldn't it be the name of the table you want to modify, like: ALTER TABLE TEST ADD COLUMN TEST1 c(10) NULL
-
Limiting to 2 decimal placesdouble a = 1.76543; Console.WriteLine("{0:F2}", a);
-
How to collapse an array?Take a look at the ArrayList. :)
-
How to write a statement in several line?strSQL="Select * " + " from TB1";
-
Channel sinksI think that the name of the formatter sink to put next in the sink chain is IClientFormatterSink with the corresponding IClientFormatterSinkProvider. Another way to achieve this is to let the custom sink implement BaseChannelSinkWithProperties, IClientChannelSink, IMessageSink. Then you have a sink prior to the formatter sink.