Topics
-
-
- Administrators
- 4 replies
- 4.4k views
I'm having trouble with WCF Async service methods. I think this is a lack of understanding on my part, but I can't find anything that applies to my situation. In short I would like to call a method and then perform work after getting the value. To simplify my situation imagine this: Form with two buttons and two listboxes. Click button 1, and it calls the WCF and populates list 1; Click button 2, and it calls the WCF and populates list 2; In a typical situation, I would do this: button1_handler { listBox1.ItemsSource = dal.GetList("button1"); } button2_handler { listBox1.ItemsSource = dal.GetList("button2"); } the issue is this, in the A…
Last reply by Nate Bross, -
-
-
- Administrators
- 2 replies
- 1.8k views
Hi, I've been looking for a while on internet to find an answer to this. the thing is: I want to access a Custom user control property from the parent form, to see if the login and password entered is true or false(if it exists), but i'm not very sure how to add a property or exactly how to proceed. here's what I have, I guess it's a start: [Description("Validate the account"), Category("Values"), DefaultValue(false), Browsable(true)] public bool Retvalue { } (This is not web)
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 81 views
Given that 3.6 is pretty much nearing the end of it's support (http://www.vbulletin.com/forum/showthread.php?t=268829) are there any plans to upgrade to the 3.7 version soon?
Last reply by SoftWareRevue, -
-
- 0 replies
- 840 views
I have created a wcf service in localhost ad it is working perfectly, but how do i upload it on our website, so that our company customers can access it online. what are the changes i have to do in the web,.config and app.config files. our website is http://www.marsfreight.com i have made a virtual directory "services", and my file name is "merge.svc" so i want our clients to access our service from "www.marsfreights.com/services/merge.svc" thanks
Last reply by sunny666, -
-
- Administrators
- 3 replies
- 3.4k views
I have a web app that I download file via the browser using this code: Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name); Response.AddHeader("Content-Length", file.Length.ToString()); Response.ContentType = "application/vnd.ms-excel"; Response.Flush(); Response.WriteFile(file.FullName); Response.End(); This works fine when the file is not opened by someone; otherwise, if a user has the file open on his machine, the web app will not launch the writefile function stating "file is used by another process". Is there a way to launch the file in read-only even though the file is already launched on…
Last reply by axsubram, -
-
- 0 replies
- 649 views
Hi, I need to wrap a class and change its attributes to readonly during run-time. My class has primitive datatype properties and a lot of properties with class datatype. I have a code sampe that wrap "partially" of the class properties. So far, all of the datatypes could be wrap except for class datatype. Thanks so much Dim cloneObj as New DeepCloneObject(MyObject) Dim ro as New ReadOnlyTypeDescriptor(cloneObj) PropertyGrid1.SelectedObject = ro --------------------------------------------------------------------------------------------------------- Public Class ReadOnlyTypeDescriptor Inherits CustomTypeDescriptor Private mComponent As Object …
Last reply by eric101, -
- 3 replies
- 1.1k views
Hello, I am trying to figure out how to best program a part of a new .NET site I am working on. Sadly, due to a medical issue, I haven't been able to get back into programming for the past three years, and it seems that some of my .NET mojo has been way too lazy. <sigh> So, I have a SQL connection in my ASP.NET application working, and can use some of the built in tools to see the records in the database. But, what I really want is to put the results of my query into some form of recordset where I can assign results into different variables so I can use them within the application. Kind of like retrieving a different variable for each requested field insid…
Last reply by kcwallace, -
-
- Administrators
- 2 replies
- 845 views
Does anyone have a english translation for this? More specifically, how can I prevent it. It happens when I am running a series of database record inserts.
Last reply by kcwallace, -
-
-
- Administrators
- 1 reply
- 784 views
Hi, I have set the "Make single instance application" check box. And when my application version is 1.0.0.0 for example, it is OK and won't load multiple instances. But when I create a new version, for example 1.0.0.1, then I can run 2 instances of my application, when the 1st instance is 1.0.0.0 and the second instance is 1.0.0.1... What should I do to prevent this? I don't want multiple instances at all... Thanks :)
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 0 replies
- 4 views
http://www.xtremedotnettalk.com/showthread.php?p=467208#post467208 any chance of this or any of the other outstanding issues being looked at?
Last reply by PlausiblyDamp, -
-
- 2 replies
- 1.9k views
Hi, Anyone knows in what kind of object i can put my deserialized file...? I've serialized the file with a Class Film and now I want to deserialize it. List<Accounttemplate> ac = new List<Accounttemplate>(); public List<Accounttemplate> FindAcc() { FileStream fs = new FileStream(@"/Accounts.xml", FileMode.OpenOrCreate, FileAccess.Read); XmlSerializer sr = new XmlSerializer(typeof(Accounttemplate)); // I want to put this in an object so i can return it and then put the List in a Datagrid view. sr.Deserialize(fs); fs.Close();
Last reply by Alexthemaster, -
- 1 reply
- 1.5k views
I've got 2 tables I need to search and provide a Work Order Summary on. The tables both have similar information: One is populated by a machine that is purchased through a vendor. One is popluated by our software and is designed to mirror the format of the vendor's table.Vendor's Table Design: Serial_Number|System_ID |Test_Result varchar(20) |varchar(50)|varchar(255) A Serial_Number consists of a tracking number tacked on to a Part_Number (i.e. Part_Number 'ABC' could have Serial_Number 'ABC 001' to 'ABC 999'). A System_ID is the name of the station where the operation happens (Admin, Machine_Stamp, Riviting, Welding, PressureTank, Assembly, etc.). A Test_Res…
Last reply by joe_pool_is, -
- 3 replies
- 1.3k views
...works fine for my purposes for checking for a new file version, but it still locks up the UI when it is connecting to the server. Once it connects, the UI unlocks but I'd like to eliminate the brief 3 second lag it causes.
Last reply by Nate Bross, -
- 4 replies
- 2.6k views
Hi guys, I'm writing a small program. The main functionalities are functioning properly. Now I want to add a popup box with information about te program. (Some sort of "about" window. Can anyone help me get started with that? yours, bernhard http://www.pdd-ig.nl/about.jpg
Last reply by mrpddnos, -
- 3 replies
- 1.8k views
I'm to a place where I need to modify a file's attributes so that I can encrypt or decrypt the file because Hidden or ReadOnly files fail. I've written a basic static method (so my threads can call it), and I wanted to post it here for criticism or suggestions: static bool FileExists(string file) { if (File.Exists(file) == true) { FileInfo fi = new FileInfo(file); if ((fi.Attributes & FileAttributes.Directory) == FileAttributes.Directory) { return false; } if ((fi.Attributes & FileAttributes.ReadOnly) == FileAttributes.ReadOnly) { fi.Attributes &= FileAttributes.ReadOnly; // & removes, | adds // or, toggle the ReadOnly portio…
Last reply by MrPaul, -
-
- *Gurus*
- Leaders
- 6 replies
- 15.2k views
How can I copy an MP3 file that is embedded in my .exe file out to a file? I've managed to copy it to a stream from the resources, but I'm confused as to how to write it to the file now. I've copied it to a stream using the following code, Dim assm As [Assembly] = [Assembly].GetExecutingAssembly Dim str As Stream Dim strResourceName As String = "Project.TRK0" & intTrackNumber & ".mp3" str = assm.GetManifestResourceStream(strResourceName) but I'm now struggling to copy it out to a file now. Thanks for any help!
Last reply by MrPaul, -
-
- 2 replies
- 1.1k views
I want to execute a command in VB.NET. When I type this command in a dos-window, it works fine. When I execute exactly the same command in VB, it does NOT work. I can NOT debug because than I get an error (Can't find the command). When executing the command, I can see a dos-window open and disappear, but it is too fast to see anything. How do I solve this? Dim objProcess As New Process() objProcess.StartInfo.WorkingDirectory = strCommandoLokatie objProcess.StartInfo.FileName = strCommando objProcess.StartInfo.Arguments = txtDatabase.Text & " -u " & txtUser.Text & " -p" & txtPassword.Text & " > " & strOutputLokatie & "\Dump" &…
Last reply by MrPaul, -
- 1 reply
- 3.7k views
Has someone got asp.net code to copy files from 1 ftp folder to another ftp folder?
Last reply by Nate Bross, -
-
- Administrators
- 2 replies
- 742 views
Hi! I have a WPF application in Expression Blend. I want to use some of the Xaml in that application for a Silverlight 2.0 application. I understand that the Xaml is different- but is there anyway to copy some of the Xaml graphics and animations from the application to a Silverlight application? Any help appreciated. Thanks!
Last reply by PlausiblyDamp, -
-
- 0 replies
- 901 views
Hi, I have create number of Dataset which in App_code. I know how to use the table adapter to connect database and command in design page. But I need to get the data from dataset in codebehind. This is a real example I need to solve: In my database table, I need to access three column of data to analyze it and get the output I want. For example, the column1 is phone1, column2 is phone2 and column3 is phone3. So in my sql query, I do like this sql = "Select phone1, phone2, phone3 from mytable" Because I need to get this 3 column of data to put in my logic to get the output I want. Once the logic decide which column to use, then another logic will f…
Last reply by calvin,
-
Who's Online 0 Members, 0 Anonymous, 45 Guests (See full list)
- There are no registered users currently online