- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 21
- Posts with Upvotes
- 18
- Upvoting Members
- 20
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
I browsed google and found nothing so thought i would put my efforts up here. hope this all helps. this function will allow you to return the number of days between two dates minus saturdays and sundays. (including the start date) | |
Re: you cant hide the textbox but if you set the display style property of the FORM element to 'none' and create another element of type button then using javascript you can open the dialog onClick of the button e.g. [CODE] <form name="form1"/> <input type="file" name="filediag" style="display:none" /> <input type="button" value="browse..." … | |
Re: Just out of curiosity why would you want to do this? You can change your theme programmatically by changing the registry values found at... [I]HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes[/I] | |
Re: 1. Don't use ID like you do. ID's are meant to be unique but your first section use "qa1" and "qa2" twice in both anchors and is then used in the divs as part of the second section. 2. You dont need the "OnClick" attribute if using jQuery (it is … | |
Re: you would do the following. Hope it helps. [CODE=html]<html> <head> </head> <body> <table id="countit"> <tr> <td class="count-me">12</td> <td>Some value</td> </tr> <tr> <td class="count-me">2</td> <td>Some value</td> </tr> <tr> <td class="count-me">17</td> <td>Some value</td> </tr> </table> <script language="javascript" type="text/javascript"> var tds = document.getElementById('countit').getElementsByTagName('td'); var sum = 0; for(var i = 0; i < … | |
below is a very simple encryption class which shows how to encrypt sensitive data (very simply) this example converts a string to hexadecimal form and back again with some simple error handling. please leave some feedback if you find this useful | |
Re: an application that suggests final year projects maybe ? really pick something youll enjoy (you will do a much better job) | |
Hi Guys, I have a gigabit switch which supports auto MDIX, is there any performance overhead using this feature to connect for instance a router to it via a patch cable rather than a crossover cable? Help much appreciated. | |
Hi Guys/Gals, Setting up my home network (I am not a networking guru) and wanted your expert opinion on the best configuration for my hardware. I have the following [I]generalized [/I] pieces of gear... [LIST=1] [*]Gigabit Switch#1 [*]Gigabit Switch#2 [*]Wireless N Router Supporting Gigabit [*]PC#1 [*]PC#2 [*]XBOX [*]AV Receiver [*]HTPC … | |
Re: You want to use the following... [CODE=JavaScript]var session = <%=Session["username"] != null ? "true" : "false"%>;[/CODE] Now for as to why you would want to do this is beyond me? If you can check this when the page is being processed on the server you can simply force a redirect … | |
Re: given a file structure as follows... [CODE]DirectoryA -- SubDirA -- SubDirB DirectoryB -- SubDirA -- SubDirA1 -- SubDirB[/CODE] If your page (lets say "Default.aspx") is in "DirectoryA/SubDirB" like so... [CODE]DirectoryA -- SubDirA -- SubDirB [COLOR="Red"]-- Default.aspx[/COLOR] DirectoryB -- SubDirA -- SubDirA1 -- SubDirB[/CODE] And you want to map the path … | |
Re: Try using the new HTML5 attribute [URL="http://www.w3schools.com/html5/att_input_placeholder.asp"]placeholder[/URL], this will only work in modern browsers. [CODE=html]<input type="text" name="myinput" placeholder="enter something" />[/CODE] | |
Re: If you just want to keep remembering values then use a List as it dynamically resizes for you. [CODE=VB.Net]Public anscapp As New List<Double>()[/CODE] Then you can add elements like so... [CODE=VB.Net]anscapp.Add(Double.Parse(Combocapp.Text) * 2.35);[/CODE] | |
Re: Also the script tag should be written as... [CODE=HTML]<script type="text/javascript"> ... </script>[/CODE] The attribute [b]language[/b] has been deprecated a while now. | |
Re: so your linking a html file to a button in flash ? or is it another type of file. Post the actionscript here ? | |
hello all, i have a belkin 54g router connected to 3 devices via ethernet. And a Netgear WGR614 router upstairs that connects 3 devices via ethernet. They are within range of each other and i know for a fact that the Belkin can be set up as an access point. … | |
does anyone knwo of any good online services that will allow me to view my email stored on my exchange server at a static IP address away from my network with an internet connection ? | |
Re: Im not sure you will be able to check if excel has a specific file open but you could easily close all Excel instances from your application with something along the lines of. [CODE=VB] Dim instances() As Process = Process.GetProcessesByName("EXCEL.EXE") For Each instance As System.Diagnostics.Process In instances instance.Kill() Next [/CODE] … | |
Hi all. I have a requirement to collect a bitmap image directly from a given AVI file. Does anyone know of any decent .Net only libraries that by any chance can achieve this? I would like to avoid any COM interops if possible but if you have had experience using … | |
Re: A simpler approach would be to iterate through all the comboboxes on your form (or control that holds combo boxes e.g. a Panel), build up a collection of these comboboxes then compare them accordingly. The following code contains two methods, [B]AreSelectedComboBoxValuesDuplicated[/B] and [B]GetComboBoxes[/B]. [B]GetComboBoxes[/B] does exactly what it says on … | |
i have created websites for clients for some time now but recently i have found it difficult to add that little extra to a project to make it unique from all those that surround it. I wanted to know what you lot do to get the old juices flowing and … | |
Re: [QUOTE=himanjim;622826]I'm really having hard time importing ASPNETDB.mdf to remote server running sqlserver 2005.. I'm using sql server express edition (along with visual web developer 2008) I use the same string <add name="aspnetusers" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /> No connection can be established.... Then I changed that to <add name="aspnetusers" … | |
Re: [QUOTE=sreekiran;432736]using javascript[/QUOTE] are you talkin about validating it to check whether it is REAL or whether the format is correct ? | |
Re: [quote=sidereal;350879]Hi all, I have a dropdown and a textbox and I want to be able to change the textbox to a dropdown control, after a certain value in the dropdown is selected. I have a problem in changing the controls from textbox to dropdown. Any help???[/quote] ok this could be … | |
Re: why not use a function like [CODE] function getchecked() { var newtxt = ''; var chkbx = document.getElementsByTagName('input'); for(var i = 0; i < chkbx.length; i ++) { if(chkbx[i].type == 'checkbox' && chkbx[i].checked === true) { if(newtxt.length !== 0) { newtxt += ','; } newtxt += chkbx.innerHTML; } } document.form.marktext.value … | |
hello all, the company i am working for (quite a small company) are looking to host our web applications suite on our internal server running windows server 2003 and IIS 6 and allow external access to it. We have a static IP from our ISP and currently can access the … | |
This is a very brief overview of how to achieve an ON-THE-FLY creation of an appointment in the clients outlook calendar. This will not force the user to add it to there calendar but gives them the option to add it automated. Using the older .vcs file extension for outlook … | |
Re: [QUOTE=achristov;875617]javascript is especially useful serverside, where ASP.NET is absolutely weak... ;) from this point on you can guess my answer. Or maybe we wouldn't need servers in the future...[/QUOTE] Are you saying that javascript is useful serverside? Or is it intended to be sarcastic, i hope so! I agree with … | |
Re: This should do the trick [CODE=CSHARP] // Split the values by comma String[] values = "a,b,c,d,-,,e,f".Split(','); // Create a new list to hold filtered content List<String> filtered = new List<String>(); // Create regex to check each value Regex reg = new Regex(@"^[a-zA-Z]+$", RegexOptions.IgnoreCase); // Loop through values foreach(String value in … | |
Re: what if popups are disabled ? i suppose you could check if the window is opened after calling the popup script but i would stick with the javascript confirm option as it is likely to cause you less grief. |