After you convert something into a user control, it is now embedded within that user control. You have to create properties to interact with the control you have just converted into a user control.
BlitzPackage
Posts
-
Common Properties get disappeared after converting a WPF control into UserControl -
Web Service Not Working [modified]Thank you so much for replying. I have cleaned up the code to only include the web service code-behind and related ASP/XML code. Thanks in advance for any insight you can provide.
-
Web Service Not Working [modified]Good people, Hello. Our webservice is not working. We should be receiving information via an HTTP POST. However, nothing is working. Below are the code files. Let me know what you think. Thanks in advance for any help or information you can provide. (By the way, some information (e.g. class names, connection strings, etc...) has been removed or changed in order to hide any sensitive information.
Imports System.Web.Mail
Imports System.Data
Imports System.Data.SqlClient
Imports System.IOPartial Class hbcertification
Inherits System.Web.UI.Page
Public strBody As String = ""
Public sqlInsertStr As String = ""
Public errStr As String = ""
Public txn_id, first_name, last_name, address_street, address_city, address_state, address_zip, address_country, address_phone, payer_email, Price, key, invoice, payment_date, mc_fee, buyer_ip As String
Dim myConn As New SqlConnection(ConfigurationSettings.AppSettings("ConnectionInfo"))
'*******************************************************************************************
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
strBody += "Test email sent.Customer name: " & Request("first_name") & " " & Request("last_name")
strBody += "
Reg Key: " & Request("key") & "Transaction ID: " & Request("txn_id") & "
Tran Type: " & Request("txn_type")updateFile(Server.MapPath("log.txt"), strBody) txn\_id = Request("txn\_id") first\_name = Request("first\_name") last\_name = Request("last\_name") address\_street = Request("address\_street") address\_city = Request("address\_city") address\_state = Request("address\_state") address\_zip = Request("address\_zip") address\_country = Request("address\_country") address\_phone = Request("address\_phone") payer\_email = Request("payer\_email") Price = Request("Price") key = Request("key") invoice = Request("invoice") payment\_date = Request("payment\_date") mc\_fee = Request("mc\_fee") buyer\_ip = Request("buyer\_ip") If Request("first\_name") <> "" And Request("last\_name") <> "" Then SendMail("jamesrobertson@hotmail.com", "feedback@morris.com", strBody, "Software Order Notification", "sales@morris.com") Else Response.Write("
Email not sent. Name missing.")
End If
Dim sItem As String
Response.Write(" -
Make Application Uninstall Available In Programs List Using Windows InstallerGood people, I am using Windows Installer with Visual Studio 2008. How do I make uninstallation for my application available in the list of programs (of course right under my program)? Thanks for any help or insight you can provide. Blitz
-
Change content in MainWindow / NavigationI would consider using an event handler.
-
Expression Blend 3 Breaks my VS 2008 IDEMake sure you install all of the latest updates for Visual Studio, .Net Framework and expression Blend. I would also download the latest .Net library and its related service pack.
-
Problem in Pausing a Storyboard in WPF ?I think you should get a reference to the actual storyboard that's running. What you may be getting a reference to with the code above is that storyboard class, but not the instantiation that's actually running. In addition, I would suggest using the keyword "as" to perform the cast. Then check to see if the variable is null. The cast you currently use, if it does not work, will throw an exception. The keyword "as" simply returns null if the cast does not work. Also, look into "TryFindResource" as opposed to "FindResource". I believe it works the same way in that it will return null if the resource is not found. Again, check for null before using it. Both of these suggested changes will make your code, in general, more robust. Let me know if this helps. Blitz
-
Simple Question About Sending/Receiving Data To/From A ServerThanks for your reply. I need to send at least 2 and up to 7 separate strings. In essence, the user will be sending some authentication data to the server which will consists of an authentication code and some other identifying information (e.g. a MAC Address, user ID, etc...). This will enable me to uniquely identify the user in the database on the server. Then, once the server has certified that the user is unique or doesn't exist, then it will send back an authorization which will either be, I suppose, true or false, etc... Thanks again.
-
Simple Question About Sending/Receiving Data To/From A ServerGood people, I built an application that needs to send information to and receive it from a server. I have one questions, how do I do that? :laugh: I am new to this aspect of programming. Thanks for any information you can provide. Blitz
-
Application Compatibility and Startup QuestionsGood people, I have designed an application that uses WPF and targets the .NET 3.5 library. Can I assume that, if the person downloads .NET 3.5 (full or client profile), my application can run on Windows XP, Vista and Windows 7? Also, sometimes during startup, while my application is showing the splash screen, if the user clicks around or attempts to do something else - like return to another application while mine is loading, my application will fail to load and throw an error of some sort. Any ideas on what's happening or what I should do? Thanks in advance for any insight or information you can provide.
-
Change A Property Within The Foreach LoopThanks for the information. I appreciate the answer. However, I am curious: how could you make the first piece of code fail? Also, my code will work without unintended consequences, right?
-
Change A Property Within The Foreach LoopIs it ok in .Net 3.5 to change a property within a foreach loop? Does it still run the risk of producing unpredictable results? Also, will the potential results be noticeable or might it cause some type of slow, inconspicuous but nonetheless catastrophic error. For example: foreach(Employee janitor in EmployeesWithPayIncrease) { janitor.Salary += 5000; } Thanks for any help or information you can provide.
-
Quick Question About Application LaunchGood people, I built an application in WPF. It uses a splash screen. Sometimes when I (and presumably other people) am starting an application, I click on it and switch to another app that I am working on. However, it seems that the app I built will only load properly if I don't click on anything and let it fully load before switching to another application or otherwise clicking anywhere on the screen. If, at any time between the splash screen and the main window loading I click on another application or send open something else, the computer says that my app has an error and it has to shut down. Do you have any thoughts about how to make it more robust so that it can load without being so vulnerable to other clicks? Thanks in advance for any help you can provide.
-
Vexing StackOverflow Issue [modified]My apologies, I have removed the code since I don't know how to post it. Any ideas? Thanks.
-
Vexing StackOverflow Issue [modified]greetings good people, I have a User Control that I have created. It's throwing a StackOverflow Exception in the constructor at the initialize component line? Any idea what could cause that type of issue. The XAML looks fine, the code behind in C# looks fine. I just don't know what going on. Thanks for any help or information you can provide.
modified on Tuesday, January 12, 2010 10:35 PM
-
ComboBoxItem Question [modified]Thank you for your reply. While I would try to bind to the ComboBox's disabled property, I need the individual ComboBox items to be enabled or disabled based on user input in another control. Thanks for the second suggestion, I will pursue it or a variant thereof.
-
ComboBoxItem Question [modified]Greetings, What is the best way to get a reference to a combobox item? I want to make certain options within the combobox, while visible, unavailable to the user in a combobox based on selections made elsewhere. So my plan is to get a reference to it, change the background color, and disable it. Can I do the following: ComboxBoxItem option = ComboBoxOptions.SelectedItem as ComboBoxItem; option.IsEnabled = false; option.Background = Colors.Gray; Also, if I have set the datacontext for the ListBox, can I listen to its "SourceUpdated" event? Thanks for any help you can provide.
modified on Tuesday, December 29, 2009 7:38 PM
-
Can I Do The Following With ListBox.SelectedItem?Good people, I have a listbox filled with Employee objects. Each object has employee data (e.g. name, salary, rank, birthdate, etc...). When the listbox displays, about half the time it will need to show which employee was selected on a previous screen by having that employee selected. The listbox will contain the list of all the employees. Of course, the data context for the listbox is AllEmployees: an observable collection of employee objects. So, can I do one or both of the following? ListBoxEmployees.SelectedItem = Employee; or ListBoxEmployees.SelectedItem = Employee as ListBoxItem; I am hoping that it will automatically find and select the appropriate employee object in its collection if I assign it the employee selected on a previous screen. Any help or information you can provide would be greatly appreciated. Thanks, Blitz
-
Best Way To Convert A Value Based On The Type In A Different ControlThanks for your reply. I will look into it. Blitz
-
Best Way To Convert A Value Based On The Type In A Different ControlGood People, I have a control that records the amount of time of a specific event - which the user enters. However, the user can also choose the type of time span. For example, in the duration they can enter the number '5'. Then, they can select the type of time span as "Days", "Hours", or "Minutes". In order to facilitate comparisons, I have to convert all of the entries to minutes when it is written to the database; then convert them back to the chosen time span type when I must display it to the user. My question is: what's the best way to do this? I thought about using a value converter, however I don't know how to make a value converter grab the type selected in a different control. Plus, I have problems with value converters because I don't know how to make it wait until the user finishes typing if they are entering more than one character. Any help you can provide would be greatly appreciate. Thanks. Blitz