719 Posted Topics
Re: The correct MIME type is application/x-bittorrent http://x-bittorrent.mime-application.com/ | |
![]() | Re: ASP.NET ViewState should take care of that for you. Just make sure that your page has `EnableViewState = true`. Some resources that can help you understand the issue: http://www.w3schools.com/aspnet/aspnet_viewstate.asp https://msdn.microsoft.com/en-us/library/ms972976.aspx http://www.codeproject.com/Articles/31701/ViewState-and-Postback |
Re: GI753, can you post the code where you use IsNumeric? It isn't in the code you posted. Could be something like this: if (age_val ==null || age_val =="" ) { alert("Please enter your age"); return false; } else if ( ! IsNumeric(age_val) ) { return false; } And I just … | |
Re: Your difficulty seems to be on the DataBase Schema, am I right? If so, you should post your DB tables. | |
Re: Hi dipanjana, have you tried something yet? If not you should take a look at those resources: http://www.codeproject.com/Articles/12666/GridView-Delete-with-Confirmation http://asp.net-informations.com/gridview/gridview-delete.htm If you already got something that is not working, paste your code so we can take a look. Good luck. | |
Re: To check if a var is a number you should use if ( Number(a) === a ) { // It's a number! } else { // It's not a number } Another detail, in you validateNumber function you may throw an error, but you are not handling that error when … ![]() | |
Re: Windows 8 interface is basically the same as Windows 7 with a optinal additional "square tiles"(forgot how they're calling it after "Metro") interface for shortcuts and search(that I don't like and don't use). Just press your windows-key to get back to the old desktop and, if you know Windows 7 … | |
Re: innerHTML will give you the HTML inside the node, if you want plain text use .innerText; | |
Re: I'm sure that manufactures tinker with the releases. I don't know if they all do it, but I'm certain that Samsung does it. I had an Galaxy SII and a Motorola Xsomething(can't remember the model) and both OS were pretty different from each other and from the one that comes … | |
Re: The confirmation box is quite simple: $(".btn_dlt").click(function(){ if ( ! confirm('Are you sure you want to delete this?') ) { return; } var btn_dlt = $(this); $.ajax({ type: "POST", url: "./delete-action.php", data: { id: btn_dlt.attr("id") } }).done(function( msg ) { alert(msg); if(msg == "Success"){ btn_dlt.closest('.tr').remove(); }else{ $('#err_msg').html(msg); err_msg field } … | |
Re: Hi Rik. Do you want just an website that will be consumed by a browser or do you want to build your own client as well? When browsing the web, your browser is client, that makes an request to port 80 on the server. In this server there will be … | |
Good night dani people. I'm current developing a project that needs an web API to list all directories and files, and also provide a method to search by name. I already got it working with Sytem.IO.DirectoryInfo at real time. //Folders foreach (DirectoryInfo info in _dirInfo.GetDirectories()) { } //and files IEnumerable<FileInfo> … | |
Re: zakn, it seems that you created 5 posts with one-line question in each one that actually are about the same project, that you probably didn't search about at all. If you really want our help, you should create only one post explaining what you're really trying to do, what you … | |
Re: hpox, "does not work" is not a clear definition of a problem. Did you open the developer console? Does it show any errors? Only local page doesn't work or any page? Did you check internet security options? | |
Hello hello. I'm remodeling my personal website, and I'd like to stack the links as flat icons, pretty much as facebook, linkedin and etc appears on here. So, instead of the badge I'd like to show an icon to keep the layout, but I couldn't find one for DaniWeb. Am … ![]() | |
Re: So where are your database going to be? Each client will have it's own DB? Will there be only one DB on the web for all clients? The IP you should use depends on where your app should find the DB. | |
Re: What's inner datalist? What is outter datalist? What language are you using? What are you trying to do? Where's your code? | |
Re: I'd go with something like this: SELECT id, answer_5, CASE WHEN answer_6 = 'Now' THEN cast(GETDATE() as date) WHEN answer_6 IS NULL THEN cast('1990-01-01' as date) ELSE cast(answer_6 as date) END AS new_answer_6 FROM tDataMult | |
Re: Why do you add two links to 'jquery.validate.min.js' and also setup .validate() two times? Just add the link one time and also call one time the .validate() method with all the rules that you want. And it really make it easier to us to help if you can setup a … | |
Re: dbissu, if I undertand correcly, you want to use the returned value of 'getTextValue()' and use it to set one label on the codebehind? If that's it, you can't do it, or at least, you shouldn't. Instead, why don't you set the label value from JavaScript? $(function() { $("#yourLabelId").text(getTextValue()); }); … | |
Re: Hi Yuki. `DataGridView.Columns` is a collection that you can manipulate as you wish. There's a couple ways of doing it, one way to just add one more columns is: this.myDataGrid.Columns.Add(new DataGridTextColumn() { HeaderText = "My Column", Name = "My Column", DataPropertyName = "MyDataName" }); Be aware that exists more than … | |
Re: Hi Suzie, It's nice that you decided to focus on a language, and it really saves time when you already got a lot done. But "base classes" are just the tip of the iceberg if you really want structured and reusable code. Just a quick example of why, in my … | |
Re: Hi piers, the selector on your attempt to update the ids is not valid. Try like this: $('div.innercontainer') .attr('set_1', firstset); .attr('set_2', secondset); | |
Re: Use sessions to stored the logged in user. When the users logs in you need to save that info(UserId for example) on the Session. And in every page load you must check if the session is valid. If there's no session it means that the user did not logged in, … | |
Re: Hi Manish. You want to display only months that have events but you're not checking if the current month has events or not. You could do something very simple, that'll just try another month if that one doesn't have an event, like this: $numEvents = 0; while( $numEvents == 0 … | |
Re: Hi tqmd1, what version of jquery and of cycle are you using? One thing that you can try it's to specify the size, like this: $('#slider1') .cycle({ fx: 'fade', //'scrollLeft,scrollDown,scrollRight,scrollUp',blindX, blindY, blindZ, cover, curtainX, curtainY, fade, fadeZoom, growX, growY, none, scrollUp,scrollDown,scrollLeft,scrollRight,scrollHorz,scrollVert,shuffle,slideX,slideY,toss,turnUp,turnDown,turnLeft,turnRight,uncover,ipe ,zoom speed: 'slow', timeout: 2000 , width: '625px', height: … | |
Re: If you know exactly what you want to remove, just use replace: $list = str_replace("5:1", "", $list); Some helpful links: http://php.net/manual/en/function.str-replace.php http://php.net/manual/en/function.substr-replace.php | |
Re: So... you just post some code... now what? Nobody here can read your mind to know what problems you are having with this code. Explain your self! At least say what you're trying to do and where you are stuck at. By the way, you are missing an '{' after … | |
Re: I didn't understand much of your problem... If the jsfiddle does what you want, you can just change it for update 'color' instead of 'background', it should work normally for words. | |
Re: Yes, it is. You can use `--replicate-ignore-table` and `--replicate-wild-ignore-table`. As explained here: http://dev.mysql.com/doc/refman/5.1/en/replication-features-temptables.html | |
Re: So... you posted some code, but what's your question or your problem? Don't just throw code, explain yourself, at least say what you got and want want. And your code seems duplicated. | |
Re: Hi Rustatic. The .NET Framework doesn't allow you to do it directly, but you can add an 'Hook' using User32.dll. Here are some resources that should walk you trought it: http://support.microsoft.com/en-us/kb/319524 https://sim0n.wordpress.com/2009/03/28/vbnet-mouse-hook-class/ | |
Re: What better way to learn than to run apps and see their code?! Every Android API version has a project name APIDemos, in there you'll find a tons of activities that uses almost every function available in the Android SDK. Apart from that, what you need to learn depends on … | |
Re: eetigu, just adding IsNull to your own logic it would be something like this: SELECT SUM((IsNull(receiptDetails.retailprice, 0) - IsNull(receiptDetails.purchaseprice, 0)) * IsNull(receiptDetails.itemcount,0) ) + ((IsNull(customerReceiptDetails.retailPrice, 0) - IsNull(customerReceiptDetails.purchasePrice, 0)) * isNull(customerReceiptDetails.itemCount, 0)) As Total FROM receiptDetails,customerReceiptDetails And as Jim said, you can use COALESCE instead of IsNull. The basic differences … | |
Hi all. This is somewhat the equivalent of .NET String.Format(String, Args); Usages: 'Hello {0}'.format('DaniWeb!'); String.format('{0} {1} {2}', 'Hi', 'Again', 'Good Fella'); String.format('Hello {prefix} {name}', { prefix: 'Sr.', name: 'HeyHeyHey'}); I know there's lots of String.formats out there(some simpler and some more complex), but this is the one i've been using … | |
Re: How do you publish your application? If you use the Visual Studio Wizard to publish it online, ClickOnce will handle updates for you and your users. About the connection string and settings, you can just save it in another file(that will not be overriden) and the next time your app … | |
Re: I don't think you'd wanna all this trouble, but the only time I worked with chats I ended up creating an XMPP server with Asterisk(Open Source). It already has those 'Sent, Recieved, Read' status for the messages. And if you wish you can enable SIP accounts for audio and video … | |
Re: >Personally I prefer a tool like Quartz, but you can use a regular timer. Does Quartz works normally with ASP.NET? I mean, if on Page_Load I set up a timer for 30 seconds, will it be triggered even if the HTTPResponse has already ended? Or it does not let the … | |
Hello all. Today when viewing a post with replies there's two displyed fields that deal with time: Discussion Span and Last Update. However, when viewing a post without replies yet, there's no display of the date that the post was created. Maybe I'm just blind and couldn't find it, if … | |
Re: Thanks man! It's seem really usefull. I'll tryit sometime. | |
Re: To see the real error, you could use: try { ... } catch(Exception ex) { //If the message failed at some point, let the user know lblResult.Text = "Your message failed to send, please try again. Details: " + ex.ToString(); } | |
Re: This is the basics for setting stroke color: directionsDisplay = new google.maps.DirectionsRenderer({ polylineOptions: { strokeColor: "red" } }); directionsDisplay.setMap(map); directionsService.route(request, function(response, status) { if (status == google.maps.DirectionsStatus.OK) { directionsDisplay.setDirections(response); } else alert ('failed to get directions'); }); But I guess this will set the color for all routs bound to … | |
Re: Did you try in an real android device? For me, even without graphics, simulators were always laggy and slow. About the graphics itself, I can't say much cause I've never used it. Good luck. | |
Re: It depends in how you organize your uploads. If they're already in year/month folder you can only list them. If they're not organized, you need to get all the dates of the files to create your list. Maybe those can help you: http://php.net/manual/en/function.scandir.php http://www.sitepoint.com/list-files-and-directories-with-php/ | |
Re: You can just use the MultiLine option for the TextBox. It'll become like a textarea. | |
![]() | Re: I'd go with [High Charts](http://www.highcharts.com/). It's easy and quite powerfull. |
Re: How can you access depends on where will the files be. If the files were in the same machine, or even in the same network, and the process running your website on IIS had permission to access the folder, it would be quite easy. You can set a timer and … | |
Re: Hey, if you're stuck in understand the phyton, you should try posting in the Phyton forum for help. Good luck. |
The End.