490 Posted Topics

Member Avatar for Hardz

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" …

Member Avatar for Hardz
0
175
Member Avatar for trippinz

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 …

Member Avatar for Geekitygeek
0
149
Member Avatar for AngelicOne

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 …

Member Avatar for Lusiphur
0
321
Member Avatar for jwmollman

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 …

Member Avatar for diafol
0
585
Member Avatar for AngelicOne

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 …

Member Avatar for AngelicOne
0
80
Member Avatar for loveforfire33

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.

Member Avatar for patelriki13
0
203
Member Avatar for glyvery.happy

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 …

Member Avatar for Lusiphur
0
177
Member Avatar for kayfar

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.

Member Avatar for patelriki13
0
93
Member Avatar for kellyA

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.

Member Avatar for darc.mosch
0
532
Member Avatar for AngelicOne

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 :)

Member Avatar for Lusiphur
0
143
Member Avatar for Candee89

I'm confused here... you have actual code and you want to convert it to pseudocode?

Member Avatar for Lusiphur
0
278
Member Avatar for kahaj

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 …

Member Avatar for kahaj
0
117
Member Avatar for blackbr

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 …

Member Avatar for CodeGorilla
0
2K
Member Avatar for nick3592

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 …

Member Avatar for almostbob
0
213
Member Avatar for TiZo

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 …

Member Avatar for TiZo
0
203
Member Avatar for Nivass

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] …

Member Avatar for Nivass
0
3K
Member Avatar for balinda_wilson

Welcome to the forums Balinda and hope you enjoy your stay :)

Member Avatar for maceman
0
153
Member Avatar for allstalls

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] …

Member Avatar for maceman
0
78
Member Avatar for ashishchashta09

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.

Member Avatar for maceman
0
174
Member Avatar for The Founder

[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 …

Member Avatar for VernonDozier
-5
171
Member Avatar for satiss7pwr

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 …

Member Avatar for Lusiphur
0
175
Member Avatar for iamchamith

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 …

Member Avatar for Ramesh S
0
258
Member Avatar for sadhawan

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 …

Member Avatar for sadhawan
0
154
Member Avatar for Jesi523

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 …

Member Avatar for Lusiphur
0
128
Member Avatar for macgurl70

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.

Member Avatar for macgurl70
0
176
Member Avatar for AngelicOne

[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 …

Member Avatar for AngelicOne
0
1K
Member Avatar for MARKAND911

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.

Member Avatar for Geekitygeek
0
4K
Member Avatar for akil007

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: ))

Member Avatar for akil007
0
66
Member Avatar for 0xCMD

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.

Member Avatar for Geekitygeek
0
283
Member Avatar for Rashakil Fol

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 …

Member Avatar for Rashakil Fol
0
92
Member Avatar for akssps011

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 …

Member Avatar for Lusiphur
0
74
Member Avatar for world_weapon

<-- less than a month here so don't know the history but glad to see ya here :) Edit: Woot!! Post 400!!

Member Avatar for Lusiphur
0
139
Member Avatar for Lusiphur

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 …

Member Avatar for Lusiphur
0
279
Member Avatar for pritesh2010

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 …

Member Avatar for pritesh2010
0
368
Member Avatar for Lusiphur

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 …

Member Avatar for Lusiphur
0
185
Member Avatar for Jackmartini

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 …

Member Avatar for Jackmartini
0
89
Member Avatar for johnwillyum

Welcome to the forums. I'm hoping for your wife and kids' sake you didn't list your hobbies in order of preference hehe.

Member Avatar for johnwillyum
0
218
Member Avatar for roezer

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, …

Member Avatar for roezer
0
131
Member Avatar for technology

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 …

Member Avatar for maceman
-1
52
Member Avatar for Sf siddiqui
Member Avatar for Lusiphur

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 …

Member Avatar for pritaeas
0
179
Member Avatar for mxadam

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++) …

Member Avatar for Lusiphur
0
705
Member Avatar for dinomark

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 …

Member Avatar for papanyquiL
0
101
Member Avatar for jacg4

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 …

Member Avatar for Geekitygeek
0
5K
Member Avatar for reibi

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 …

Member Avatar for Dandello
0
149
Member Avatar for markthien

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 …

Member Avatar for markthien
0
122
Member Avatar for tungnk1993

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 …

Member Avatar for tungnk1993
0
178
Member Avatar for ultimatebuster

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 …

Member Avatar for jrock2004
0
227
Member Avatar for jpallavi

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:

Member Avatar for prashantchalise
0
64
Member Avatar for Natique

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 …

Member Avatar for Lusiphur
0
69

The End.