|
PIEBALDconsult wrote: I suppose I could stack two forms...
May not be the most elegant way, but a way....
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I am trying to bind a ListView/TreeView w/e to a Data Source I've created from Visual Studio for the project and would like to know if and how it would be possible to bind solely using XAML.
As an idea, let's say we have appName, appName.dataSetFromMySQLviaODBC as the data set, with tableAdapter and tableColumn as the only column, any way to, using only XAML, no cs code that's "user" written, bind the data there to a ListView?
And if it's not too much of a stretch, considering it's probably quite easy to find if I poke around, anything special to do to make the data update in the ListView mirror the database changes? Or is it at least possible?
|
|
|
|
|
My knowledge of WPF is quite limited, having only looked into it in the last two weeks. But, from what I've found, using ODBC as a data source, no, you cannot do this using only XAML. I think you need to provide the code to grab the data so the XAML has something to bind to.
I could be wrong though...
By the way, using ODBC is quite pointless if your using SQL Server. Use the SQL Server specific provider if you want your SQL code to run faster and offer more flexibility.
Dexterus wrote: anything special to do to make the data update in the ListView mirror the database changes?
Only if you have code that goes and gets the changes. Youe code doesn't automagically know that the database has changed without it changing it itself.
|
|
|
|
|
Eh, tried to do something fast-ish so I used what I had, an ODBC connection string
My WPF experience extends to today and the examples I've found around about this DB binding were pretty much using the same thing, a DataSet.
So either I have not found the correct one that VS creates when I create a Data Source (code it auto-magically created to work that data source was slightly hard to read) and I should use as Provider or maybe context or it simply doesn't create a DataSet instance. This last thing would mean it turns into the same, initialize connection, get and fill that all examples I've found do, only they do it a lot cleaner than the "wizard" way.
As for the auto-update was thinking maybe data sources would have some sort of flag or something that would signal the change and it auto-update based on that and someone would know about that. It's not an issue though, manual labor works also.
PS: Would there be a better place for this post? As this is my first one I am somewhat unfamiliar with the exact structure. Switching to another board would keep this one clean of unrelated stuff and make my question slightly more visible to people that spend more time browsing that other board.
|
|
|
|
|
I know that scripting languages like javascript are interpreted languages and technology like .net is a complied language.
But the question is that if i am using javascript in ASP.net application then how javascript access the area of ASP.net because compiling the code of javascript is the work of browser which is at client side and compiling the code of ASP.net is server side that uses CLR . Again only managed code can be compiled by CLR. Then how the interface work over there? How the bridge built between, for interpreted and compiled langauge?
kapil
|
|
|
|
|
You really need to read up on AJAX to see how it all hangs together. Take a look at Microsoft's implementation (formerly codenamed ATLAS). There are plenty of technical papers on this available from Google.
|
|
|
|
|
kapil_b_khadgi wrote: What is the difference between Interpreted and Compliled Language
Most computer languages can be compiled, but Plain English may need to be interpreted.
|
|
|
|
|
No. Not Plain English. Don'ttttttttttt - you'll only encourage him.;)
|
|
|
|
|
Pete O'Hanlon wrote: Not Plain English. Don'ttttttttttt - you'll only encourage him.
Awwww come on, it's fun
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
I need to generate release notes from code, but if I use XML comments to let the parser generate the html for me the notes will keep adding up. Is there a way to tell the parser to parse only the tags that have a certain value? Something like: if I want the release notes for today's build, I want to parse only the tags that have today's date as a value.
If this is not doable, is there any other way of getting release notes from code without keeping a separate document that someone would have to manually update after each build?
thanx
|
|
|
|
|
Simple answer. Do this out of your source control instead. That's the place to put your version information, which will include the items that are being built.
|
|
|
|
|
For SS I use Visual SourceSafe. Is there a way to generate the notes from VSS?
If not, is there another tool for this?
thanx
|
|
|
|
|
|
Hmm.. this will report the files with a certain label, but not what's in the text node of that label. But I could make this so it generates a file, and write a small program that parses each reported file and builds HTML from the tags. Thanx!
|
|
|
|
|
I have looked 'everywhere' for this and have been unable to find a solution. I need to establish a connection between two PC's using modems. Using the SerialPort class, it is easy to communicate with the attached modem, thus establishing a connection between the two PC's. Once a connection is made, however, how do I bind an IP address/port to the connection, so that I might use standard net applications such as FTP?
Thanks.
|
|
|
|
|
Using this method, you can't. By going directly to the modem, you've completely bypassed the networking stack thereby killing your ability to do IP over the connection.
|
|
|
|
|
Thanks. I surely didn't expect that.
Do you know of a way to do IP over a modem via .NET? Thanks.
|
|
|
|
|
Nope. There's nothing in the .NET BCL that will do this. In order to use IP, you have to use the system's network stack. In order to do that, you have to setup and start the connection outside of your application.
If you really want to transfer files and your writing code for both the server and client side of your app, look into finding an implementation of ZModem or XModem. This will allow you to transfer files over the direct modem connection without using TCP/IP or FTP.
|
|
|
|
|
Try to do some research on SLIP. Think I've seen some code for going with an IP connection over a serial cable. As far as I remember it was WinAPI though. So go from SLIP and WinAPI and maybe MS implemented smth similar in .NET. Good Luck.
|
|
|
|
|
Only by implementing the TCP stack yourself. I wouldn't recommend this.
If you want to make use of the operating system's facilities, you must use the Remote Access Services API, e.g. RasDial . There is no managed wrapper for this API, but you can find out how to use it from .NET at PInvoke.NET[^].
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
if you make a connetion by directly accces to modem you can not use IP address. You access and control modem via serial port using AT commands. You by-pass TCPIP stack provided by operating system. You have to implement yourself it in this way.
You should make connection using RAS (Remote Access Service). You have to make a new connection -manually or programaticaly- and can use it. RasDial, etc...
I would send some sample code in .Net if you want.
|
|
|
|
|
where can i download the vs2005 setup free? can anybody help me
|
|
|
|
|
GaneshKumarVkm wrote: where can i download the vs2005 setup free? can anybody help me
I don't think they are available any more. Every time I look I get taken to Visual Studio 2008.
The Visual Studio 2008 Express edition can be downloaded from here:
http://www.microsoft.com/express/download/default.aspx[^]
|
|
|
|
|
I'll add to Colin's post. VS2008 can target .NET 2 code, so you don't need to worry about not being able to continue with VS2005 code.
|
|
|
|
|
Check out
http://msdn.microsoft.com/subscriptions/[^]
For sure, they are not free. You have to purchase MSDN Subscription for the same. You may however like to try the freely available Express equivalents subject to the EULA that are displayed.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|