Topics
-
-
- Administrators
- 3 replies
- 1.3k views
I'm considering building an application which will send SMS text messages from an email. For example someone could send to +44252666783@sms.mydomain.com I also need to recieve normal smtp email through the same connection which this application would use. So i'm thinking something like this would work. 1. My application listens on port 25 for all incoming messages 2. When message comes in it checks for "sms" in the to address. If its there it processes the sms message 3. If not then it assumes its a normal smtp message and relays to the mail server which will listen on port 26 I understand how I want it to work, I just wondered if anyone had any experien…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 1.7k views
I am following the video "How do I: Create a Multi-Lingual Site with Localization?" and I am following the section on global resource files. When I try to add the attributes Culture="auto:en-US" and UICulture="auto" I get the following errors: Further information: I have named the resource file for the french language as Resource.fr-FR.resx, the file for the german lanaguage as Resource.de-DE.resx, while the file for the english language remains as Resource.resx Any suggestions? Mike55.
Last reply by mike55, -
-
-
- Administrators
- Leaders
- 16 replies
- 2k views
When writing code, what are your priorities? What about when you refactor? What kind of optimizations do you do and how far do you take it? What trade-offs are acceptable and where do you draw the line? Post your opinions and specific examples of what you consider to be your "best practices" when writing a program. Any level of detail is acceptable. A low level concept might be pointer arithmetic or loop unrolling while a high level idea might be algorithmic (binary sort versus quick sort) or data-structure driven. I'll kick it off. My priorities when writing code, generally speaking, are: 1. Testability/Reliability -- How easy is it to automatically test m…
Last reply by mandelbrot, -
-
-
- Leaders
- 2 replies
- 1.1k views
it may or maynot be the hotel california, but check the customer reviews ... 1 Star Hotel ;)
Last reply by mandelbrot, -
-
- 0 replies
- 1.1k views
I am getting a System.Threading.ThreadAbortException when I run the following code: Try If HttpContext.Current.User.Identity.IsAuthenticated = True Then Response.Redirect("sendMessage.aspx", True) Else Response.Redirect(ConfigurationManager.AppSettings("Home").ToString, True) End If Catch ex As Exception LogError(ex.Message, "User clicked the cancel button") End Try [/code/ The value for "Home" in my web.config file is: "~/sales/index.html" I cannot see anything obvious, any suggestions? I even moved the line: [code] ConfigurationManager.AppSettings("Home").toString to d…
Last reply by mike55, -
-
- Leaders
- 7 replies
- 1k views
How can I calculate the green area in the attachment? Or simply the number of green pixels it contains would be enough to get me there.
Last reply by snarfblam, -
-
-
- Administrators
- 2 replies
- 920 views
Hi My windows service is capable of connecting to a third party service provider, http://www.clickatell.com in this case. I am using the third party to send out a number of sms text messages in the event that another service goes down or fails to reply within a specific timeframe. I am using a List<string> to store the list of number that I am sending to, and passing my message as a string. The problem that I am having is that when I go to send the last message, I get a timeout exception. I have tried to get the service to sleep for 15 seconds before sending each message, but this has had no effect. Here is the code that I am using: //Queue the…
Last reply by mike55, -
-
Now
by ADO DOT NET-
- Leaders
- 3 replies
- 683 views
Hi, The Now function returns the current date and time. But it's from system clock, so if user changes the date and time, Now function will return invalid info. To solve this problem, I need to get the correct date and time from an internet server, but don't know how? Any ideas? Thanks.
Last reply by snarfblam, -
-
- 2 replies
- 1k views
I have somewhat of a unique problem. I really want a nice stable forum for my website, like vBulletin or SMF. Those are php programs. These forums will support a .Net program I made. I copy-protected the program by making the program log into the website to verify the username and password. Yes, there is more to the copy protection as well. So, I have my own username and password database. I want, at the very least, to be able to: - Make forum accounts from an ASPX page - Update a user's permissions/roles from an ASPX page And I'd like to be able to keep make the username/password database the same for both forum and website, but I dont expect that. Anyway…
Last reply by NeuralJack, -
- 5 replies
- 1.9k views
Greetings all! I have a large application that has rolled to production while development continues on further enhancements. Anyway, as with any large corporate environment, systems differ somewhat from one machine to another, as well as resolution settings and display capabilities. The behavior that I am seeing is that, on some systems, the users can see the entire drop down list (with or without scroll bar), and other users (and I have seen this on my own system) have a particularly long drop down list go right off the bottom of the screen. My question is, can I control how many rows there are and when the scrollbar appears? I am changing the size of the t…
Last reply by MrPaul, -
- 0 replies
- 653 views
Datagrid editing Complex?? **Resolved** Hi and thanks for taking the time to read my post. I want to know how I can raise an event when a user changes/edits a field in my datagrid. I don't want to update the datasource or table, what I want to be able to do is rename a file (or do anything for that matter). IE.. When a user clicks a cell in my datagrid and they change the cell with text "Filename.txt" to "Filename2.txt", I want to raise an event to actually rename the file in windows explorer. Thanks for the support, Rankun I used CurrentCellChanged event.
Last reply by Rankun, -
-
- Administrators
- 1 reply
- 801 views
not sure if this is an SQL issue or a development issue, but as im using c# and visual studio so il place this here for now. I wrote a small app to script out jobs from sql server. it worked fine, and then , without any changes it stopped working. I got the error: Could not load type 'Microsoft.SqlServer.Managment.Smo.AgentJobBaseCollection' from assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, publicKeyToken=89845dcd8080cc91'. I checked the version of the Microosft.SqlServer.Managment.Smo Dll installed in sql server installation dir, and its version 9.00.1399.00, so i try to update the gac . The version in the gac is 9.0.24…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 2.6k views
I am using an AJAX update panel with a textbox in it. I have my trigger set to a button outside the update panel. When I click the button I have it check if the textbox is empty. If so simply Alert. However I am getting the alert twice. I click ok and it comes right up again. I am suspecting this is do to the posting back. Has anyone had this before?
Last reply by davearia, -
-
- Administrators
- 1 reply
- 3.2k views
Not sure if this is normal or not but I created a deployment project for my tool (tool.exe) which was created using VSC# 2003 .Net 1.1 and after running the MSI (installing) there is a tool.exe.config file that also appears (I can also see it in primary outputs of the deployment project). If I delete the file after install the tool.exe still runs fine and I see no reason to keep it (I kind of liked that it was a one-file deployment) so I wanted to know a few things: - Is there a reason to keep this file post-install? - Is there a way to remove it from the outputs of my MSI package (deployment package)? Because I don't recall ever adding it before and I don't see any…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 639 views
I am having trouble figuring out the right way to deal with column widths in a datagridview. I'll post 2 screenshots to help illustrate. The reason I am having trouble is that my grid is completely customizable in regards to which columns are displayed. The user can choose to only look at the 3 required columns, or they can look at 4, 5, 6, 7, or the full 8 columns if desired. I do not want to use the Fill setting on the grid globally because then the columns never gets wider then the width of the grid. I do not want that because they couldn't see all the useful info. I do not want all that "whitespace" on the right, however, when a smaller number of columns are…
Last reply by lonewolf32, -
-
- Leaders
- 9 replies
- 4.1k views
Given a form (frmMain) which contains a listbox "lbSelected" (multi-select) and 2 control buttons "btnMoveUp" & "btnMoveDown" that should allow the user to move the selected items (from the listbox) up or down using the buttons. Thing is I have no clue how to change the index of a selected item in a listbox, forget trying to handle multi-select - so I was hoping maybe someone could give me some help/hints. So far I got to this point: // Get the current index of all selected items in the listbox ListBox.SelectedIndexCollection indxcolSelected = lbSelected.SelectedIndices; So this will give me the index of each of the selected items... Consequently it could a…
Last reply by mskeel, -
-
- 0 replies
- 603 views
Hello, if I insert data into a table adapter via its insert()-Method or even if I insert this data directly into the database via SQL, this data is corrupted, even though the filter of the data adapter is correct. What can I do? Best Wishes HaraDej
Last reply by haradej, -
-
- Leaders
- 1 reply
- 594 views
When a user launches my application the first thing I want to do is check to ensure I am in the correct folder, if so just continue, but if not I need to copy myself to that folder, start myself in that folder, and close the current instance of myself... All this needs to happen without the user "seeing" anything like window flashing, etc... So far I have the current code: if (Application.ExecutablePath.ToUpper() != sWorkPath) { if (File.Exists(sWorkPath)) File.Delete(sWorkPath); File.Copy(Application.ExecutablePath, sWorkPath, true); Process pProcess = new System.Diagnostics.Process(); pProcess.StartInfo.FileName = sWorkPath; pProcess.StartInf…
Last reply by snarfblam, -
-
- 2 replies
- 1.8k views
We have a server in a web farm, on the server we have a particular web service running that has two methods. One of those methods (StartProcessing()) is responsible for connecting to a database and clearing all the data out of a particular table when it is called. On the same server we have a windows service that is build around a timer, it should run every 5 minutes and call the method StartProcessing() and go to sleep for another 5 minutes before repeating the task. The problem that we are having is that every couple of days the entire system goes down i.e. the windows service fails to call the web service. When we check the server, both the windows and web serv…
Last reply by mike55, -
- 0 replies
- 762 views
Hi everyone, This has got me stumped. What I am trying to do is search for a "Clicked" HtmlInputRadioButton inside a tabcontrol. I have no idea what the ID is, or which tab the radioButton will be in. So the flow will be to go through all the controls in the each tab, check if it is an HtmlInputRadioButton, check if it is "checked" and return the Value. This is what I have at the moment and it can find the radio button(when I debug it) but doesnt return the value because it continues on to the next controls. public static string FindControlRecursively(Control controlName) { foreach (Control Ctl in controlName.Controls) { if (Ctl is…
Last reply by Eduardo Lorenzo,
-
Who's Online 0 Members, 0 Anonymous, 52 Guests (See full list)
- There are no registered users currently online