719 Posted Topics

Member Avatar for vivosmith
Member Avatar for AleMonteiro
0
175
Member Avatar for mrkm1188

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

Member Avatar for AleMonteiro
0
3K
Member Avatar for Gl753

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 …

Member Avatar for AleMonteiro
0
206
Member Avatar for phpcake
Member Avatar for lps
0
334
Member Avatar for Dipanjana

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.

Member Avatar for AleMonteiro
1
1K
Member Avatar for jemdev03

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 …

Member Avatar for stbuchok
0
170
Member Avatar for rosario1990

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 …

Member Avatar for jim3472
-2
405
Member Avatar for tiredoy
Member Avatar for tiredoy
0
323
Member Avatar for dloj333

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 …

Member Avatar for AleMonteiro
0
95
Member Avatar for Niloofar24

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

Member Avatar for Niloofar24
0
4K
Member Avatar for Ivan_7
Member Avatar for RikTelner

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 …

Member Avatar for RikTelner
0
460
Member Avatar for AleMonteiro

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

Member Avatar for AleMonteiro
0
229
Member Avatar for zakn

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 …

Member Avatar for Reverend Jim
0
99
Member Avatar for Dragoonqueen

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?

Member Avatar for Troy III
0
4K
Member Avatar for Tcll
Member Avatar for AleMonteiro

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 …

Member Avatar for diafol
0
282
Member Avatar for altjen

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.

Member Avatar for AleMonteiro
0
184
Member Avatar for Swatantra_1

What's inner datalist? What is outter datalist? What language are you using? What are you trying to do? Where's your code?

Member Avatar for AleMonteiro
0
86
Member Avatar for olegb

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

Member Avatar for AleMonteiro
0
351
Member Avatar for mattyd

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 …

Member Avatar for AleMonteiro
0
1K
Member Avatar for dbissu2

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()); }); …

Member Avatar for AleMonteiro
0
126
Member Avatar for Yuki_1

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 …

Member Avatar for AleMonteiro
1
6K
Member Avatar for Suzie999

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 …

Member Avatar for DaveAmour
0
235
Member Avatar for piers

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

Member Avatar for piers
0
3K
Member Avatar for Niloofar24

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

Member Avatar for Niloofar24
0
1K
Member Avatar for Manish_9

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 …

Member Avatar for AleMonteiro
0
284
Member Avatar for tqmd1

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

Member Avatar for AleMonteiro
0
237
Member Avatar for elamigosam

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

Member Avatar for AleMonteiro
0
120
Member Avatar for Jasdeep11

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 …

Member Avatar for overwraith
0
238
Member Avatar for jonsan32

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.

Member Avatar for jonsan32
0
438
Member Avatar for rchawdhari

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

Member Avatar for AleMonteiro
0
177
Member Avatar for ashok_11

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.

Member Avatar for AleMonteiro
0
750
Member Avatar for Rustatic

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/

Member Avatar for AleMonteiro
0
706
Member Avatar for patricbensen

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 …

Member Avatar for AleMonteiro
0
280
Member Avatar for eetigu

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 …

Member Avatar for AleMonteiro
0
661
Member Avatar for AleMonteiro

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 …

2
399
Member Avatar for altjen

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 …

Member Avatar for AleMonteiro
0
204
Member Avatar for kathylum

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 …

Member Avatar for kathylum
0
201
Member Avatar for coder91

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

Member Avatar for pritaeas
0
129
Member Avatar for AleMonteiro

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 …

Member Avatar for AleMonteiro
0
236
Member Avatar for overwraith
Member Avatar for sepp2k
2
239
Member Avatar for get2tk

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(); }

Member Avatar for DaveAmour
0
1K
Member Avatar for divyakrishnan

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 …

Member Avatar for almostbob
0
4K
Member Avatar for Misklahr

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.

Member Avatar for AleMonteiro
0
273
Member Avatar for anejose

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/

Member Avatar for AleMonteiro
0
108
Member Avatar for nimz143
Member Avatar for AleMonteiro
0
156
Member Avatar for amogh.max

I'd go with [High Charts](http://www.highcharts.com/). It's easy and quite powerfull.

Member Avatar for AleMonteiro
0
65
Member Avatar for coder91

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 …

Member Avatar for AleMonteiro
0
126
Member Avatar for Stanny_1

Hey, if you're stuck in understand the phyton, you should try posting in the Phyton forum for help. Good luck.

Member Avatar for AleMonteiro
0
176

The End.