490 Posted Topics
Re: If pc2 is set up as a SQL server then most likely the sql server component can be accessed directly via the IP of that computer (depending on the network setup and the SQL setup. However, your scenario is very confusing to me. You indicate your pc1 is your "server" … | |
Re: First, is the above block of code EXACTLY repeated in every textchanged event? If so, the first step you can make towards reducing your code overhead is to take the above code block and place it into a separate function like so:[CODE]private [COLOR="Red"]void updRTB()[/COLOR] { string l_text[COLOR="Red"] = ""[/COLOR]; l_text … | |
Re: To expand on this a bit your two options are:[LIST] [*]Create a flat-file database that is portable within the application [*]Create a database connection string that points to the server/db location where your db will be hosted (for multi-user/multi-machine programs you will want a centralized database to share information vs … | |
Re: If you have any knowledge of ASP.Net coding at all you might look into having different tables in different <asp:panel> and simply making the appropriate panel(s) visible/invisible as needed based on combination of drop-down and button click. However, this does require a bit of coding knowledge in ASP.Net and a … ![]() | |
Re: It all depends on how each element of the table needs to be seen by the end-user and what abilities they need to have related to managing that information. If the end user just needs to be able to SEE the information (at a given point) then you can get … | |
Re: Have you considered calling the JavaScript alert function once confirmation of the data insert has been received? Something like [URL="http://archive.devnewz.com/devnewz-3-20061129JavaScriptAlertShowmessagefromASPNETCodebehind.html"]this example here[/URL] but modified as you need it for your purposes. Hope this helps :) Please remember to mark solved once your issue is resolved. | |
Re: To start this line is redundant:[CODE]c = System.Convert.ToInt32(Console.ReadLine());[/CODE]As it has no bearing on the result of the codeand prompts an extra readline. Secondly, as you already have:[CODE]using System;[/CODE]You don't need to preface everything with System. Third, prior to the end of your Main procedure you have an extra pair of … | |
Re: Have you tried [URL="http://www.google.com/#hl=en&q=ASP.Net+"Print+Button""]checking here[/URL]? Hope that helps :) Please remember to mark solved once your issue is resolved. | |
Re: First, (silly question but I have to ask) is the .css file saved? Second, try adding[CODE=HTML]<style type="text/css"> <!-- @import url("site_layout.css"); --> </style>[/CODE] For some reason I find @import works better than "<link href="/site_layout.css" rel="stylesheet" type="text/css">" for me. Hope this helps :) Please mark as solved if this resolves your issue. | |
Re: One method for changing the column header is to change the name of the column as it's pulled from the DB with the "AS" modifier. As for the width it can be dynamically set with the equivalent of:[CODE]dataGridView1.Columns[0].Width[/CODE]Hope that helps :) | |
Re: I'm confused here... you have actual code and you want to convert it to pseudocode? | |
Re: I tried to duplicate this with Fireworks CS4 to see if I could find a solution for you. What I did was typed some text onto a blank frame in Fw to see what was available for styles. Without doing anything additional I had 0 styles available in the properties … | |
Re: Please change your front end code to include this:[CODE]<asp:DropDownList id="ddlEmpName2" style="Z-INDEX: 138; LEFT: 192px; POSITION: absolute; TOP: 32px" runat="server" Width="152px" ForeColor="DarkBlue" DataValueField="EmployeeId" DataTextField="EmpLastFirst" DataSource="<%# dvEmpActiveList %>" Font-Size="X-Small" AutoPostBack="True" Enabled="False" AppendDataBoundItems="True" [COLOR="Green"]onselectedindexchanged="ddlEmpName2_SelectedIndexChanged" >[/COLOR] <asp:ListItem Selected="false" Text="Select" Value="0"></asp:ListItem> </asp:DropDownList>[/CODE]Your snippet at the top does not have both a closing bracket on your … | |
Re: I can't attest to whether there's anything that ASP.Net can do that php can't... What I can say is that for web development ASP.Net [B]is[/B] a very powerful language with a lot of built in functionality. If your focus is web development, it never hurts to have more languages under … | |
Re: You can also (if you, or someone you know, know ASP.Net programming at all) utilize [URL="http://www.aspfree.com/c/a/ASP.NET-Code/Read-Excel-files-from-ASPNET/"]this method[/URL] to read from your .xls file and use the data obtained to populate various ASP dynamic control types (gridview, etc) with the information or even use ASP Labels to populate the information in … | |
Re: I'm no expert in the draw process but from what little I know the standard Graphics.Draw methods tend to be 'static' in their positioning. In order to achieve a "zoom" effect I would do something like the following (pseudocode not C# code cus I don't know the processes required per-se)[LIST=1] … | |
Re: Stephen; Members are always happy to assist (from what I've seen) when others are in need with their coding, all that's usually asked in return is that you show some effort towards finding answers yourself before posting in the appropriate forums. That, and a brief perusal of the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]forum rules[/URL] … | |
Re: Now that brings back memories... the movie HACKERS was one of my all-time favorites, despite the drastically unrealistic graphics and the insanely hillarious attempts at tech-talk :twisted: Welcome to the forums. | |
Re: [QUOTE=The Founder;1276188]OTHER UPTIGHT MODERATORS who doesn't know proper grammar AKA ANCIENT DRAGON[/QUOTE]Normally I don't like to feed these types of posts with a response but I just had to put in my 2 cents since you seem to feel that it's that important to split your rant into two separate … | |
Re: Not so familiar with foxpro myself but I would assume that if you have the ability to read deleted and non-deleted table entries there must be a bool value somewhere that is associated with the deleted state? In that case, would it not be possible just to use the equivalent … | |
Re: Well, from first glance 1 of 2 things is happening here:[LIST=1] [*]You don't have rights set up correctly to access that directory via your webserver [*]A file already exists by that name in that directory and the rights haven't been set correctly to allow an overwrite of the file[/LIST]One way … | |
Re: As nick indicated (but I'll expand on a bit) if you're trying to match the character '' you need to write it as '\'. This is because '' is considered part of an escape sequence when identifying characters that are otherwise reserved for use within your coding. For more information … | |
Re: You could set a default URL string value on the page generated as the first value obtained at the time of the dropdown's population. Then set the dropdown selected item changed event handler to change that string value and use the string as your URL to load instead of using … | |
Re: Heya macgurl :) Seen you around the forums, you've got some of the most detailed and insightful posts I've seen. Glad to have you here. | |
Re: [QUOTE=hirenpatel53;1273135][CODE]Listview1.Datasource=ds[/CODE] ds must be your datasouce or datatable[/QUOTE]Interesting because when I pop open my trusty visual C# in VS and create a listView... it doesn't have a Datasource property. Which, was also indicated in the link that pritesh supplied :) By the way, good link pritesh, perhaps a bit confusing … | |
Re: This [URL="http://bytes.com/topic/c-sharp/answers/229440-referencing-control-mdi-parent"]reference[/URL] might help. :twisted: Looks like it addresses exactly what you're asking for here with about 2 lines of code. Hope this helps :) Please remember to mark this thread solved once your issue is resolved. | |
Re: Care to share the code driving your extender (specifically any areas you modified) so we can see if there's anything there to explain what you're saying is happening? ((And on that note, good people, good night :zzz: )) | |
Re: Should be able to use this to do what you want...[CODE] string path; path = System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase );[/CODE]Got that from [URL="http://msdn.microsoft.com/en-us/library/aa457089.aspx"]this source[/URL]. There's also a VB method there as well. Hope this helps :) Please mark as solved once your issue is resolved. | |
Re: Actually, in the subscribed threads links in the control panel if you click on the name of the person it shows as having replied to the thread it will take you directly to their post skipping all the earlier stuff. Granted, the [B]primary[/B] link does go to the top of … | |
Re: If the computers are all part of the same network you could theoretically tap into the host (server/host computer) of the network and derive all of it's client IPs... As a side note, perhaps [URL="http://www.daniweb.com/forums/thread191227.html"]this thread[/URL] (go go Google) might help you out a bit since you seem to be … | |
Re: <-- less than a month here so don't know the history but glad to see ya here :) Edit: Woot!! Post 400!! | |
I'm sorry if I'm just missing something here or perhaps it's glaringly obvious to everyone but me... I've been ALL over this site trying to find some way to 'customize' which forums appear within the "My Favorite Forums" (purple bar at the footer of DaniWeb). IMHO it should be the … | |
Re: What I might recommend is a dynamically populated set of repeater objects instead of a datagrid. Basically you set the "fields" of your repeater (labels, text areas, whichever) along with styles and colours of choice and you populate the repeater from your data. In that way you can have 2x … | |
Good day folks... This may seem like an odd question and I apologize in advance for the limited information to work with in this case but I'll do what I can to give the needed info... My website [url]http://www.bariby-quance.com[/url] has a journal/blog component that I built within it that, on … | |
Re: I just went through about a dozen of them and all came up fine. What I might suggest is you make sure your PDF viewer ([URL="http://get.adobe.com/uk/reader/"]Adobe Acrobat Reader[/URL]) is up to date with the latest version as sometimes version issues can cause viewing incompatibility. Alternately, it could just be latency … | |
Re: Welcome to the forums. I'm hoping for your wife and kids' sake you didn't list your hobbies in order of preference hehe. | |
Re: Not saying that it's [B]the reason[/B] why the specific sites you're referring to would do this but in some cases sites choose to use methods that bypass automation in their logins and authentications to prevent automated users (read: bots) from utilizing their sites. This can be common on some forums, … | |
Re: Welcome to DW technology :) Side note: Neg votes aren't just an attempt to break your spirit or make you feel bad... they're usually a result of a poorly constructed post or not following the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL] :twisted: But don't worry, I'm sure you'll catch on fast to how things work … | |
I'm just curious about the opinions of people in the programming industry as to what they would think of the following scenario:[LIST] [*]User is an active contributor within DaniWeb (granted only recently joined) [*]User has supplied a large number of working solutions or at the very least processes by which … | |
Re: All I can say is the information in the error message tells you where the error is (sort of)... "operator == cannot be applied to operands of type 'System.IntPtr' and 'int'" You have defined:[CODE]IntPtr handle = User32.WindowFromPoint(curpos); handle = User32.GetAncestor(handle, 2); for (int i = 0; i < listBoxTables.Items.Count; i++) … | |
Re: Well, Dw CS5 sells for US$399 on Adobe's website, Creative Suite 5 Web Premium for US$1,799. You might be able to find a discounted copy of CS4 at a software retailer but as CS5 is the current offering from Adobe I don't suspect you'll get any discounts on it anywhere … | |
![]() | Re: What you might want to consider is the following: Disable the X close option for form 2 and instead put a button within the form that will perform the tasks of re-showing the first form and closing the 2nd. Alternately, the FormClosing event SHOULD catch the close of the form … |
Re: You might find [URL="http://www.alistapart.com/articles/crosscolumn/"]this link[/URL] to be helpful in what you're looking to do... it goes step by step in how to have a span within your div that imitates the general effect you're talking about (I think). Some adjustment to the method they outline should do what you wanted … | |
Re: One thing to check (because I don't think that DESC is exclusionary to using DGVs) is that the table values in the database are what you expect them to be. For example, is the result 0 lines populated to the DGV or is it several lines with id's but no … | |
Re: For starters you would need to have a benchmark or base value to establish against the file to be tested. From there you would basically have to do a line by line string by string (or char by char) comparison between the two files to determine changes between the base … | |
Re: DIV height is determined by content length in non-absolute DIVs. What this means is:[LIST] [*]Only a DIV with "absolute" positioning can be forced to a specific height [*]DIVs with "absolute" positioning will always remain "locked" in place on the screen (no left/right float) [*]The only way to extend the height … | |
Re: If I had the answer to that, I think I'd be developing them right now instead of trolling the forum looking for people to help with random code issues :twisted: | |
Re: I don't have any specific examples for you but I might try a [URL="http://www.google.com/#hl=en&source=hp&q=css+hyperlink+color"]Google search[/URL] for CSS hyperlink color options and such because I think that's your best bet for having links that change colour based on pre-set properties/criteria... possibly coupling with javascript to actually catch the criteria as it … |
The End.