Posts by Ricardo Souza • 511 points
10 posts
-
1
votes2
answers247
viewsA: Parse HTML regex problem
Do not use Regex, use an HTML parser like simpleparser: http://simplehtmldom.sourceforge.net/ or the ganon: http://code.google.com/p/ganon/ The 2 are much quieter to work with HTML. An example with…
-
4
votes3
answers1517
viewsA: How to use Skip and Take with Pagedlist Helper
As our friend Maria pointed out, you can use the Skip()and Take(), but the PagedList already does it for you. The replacement would be: int pageSize = 3; int pageNumber = (page ?? 1); var grupos =…
-
11
votes2
answers9076
viewsA: MVC Asp.net paging
Just for the record, as an alternative for those who want to learn how to do it in the hand, in a simple way (not that the PagedList not be, just does not reveal what it does behind the scenes),…
-
1
votes4
answers2911
viewsA: Entity Foreign Key Framework
Because they are 2 relationships of 1 for many, it is best to associate to the list of elements of the context, using the ids of the past object. public void Salvar(SBE_ST_Curso curso) { var…
-
1
votes4
answers1496
viewsA: jquery datepicker error does not work
Your problem is that you are setting the variable text twice. var textbox = '<%=TextBoxDataInicial.ClientID%>'; var textbox = '<%=TextBoxDataFinal.ClientID%>';…
-
10
votes8
answers61967
viewsA: Should I use input type="Submit" or button type="Submit" in forms?
The pattern used by the majority was <input type="submit" />, due to being something used from the beginning of the forms. The current issue is more related to semantics than their actual…
htmlanswered Ricardo Souza 511 -
1
votes2
answers4041
viewsA: Image preview before Upload + Imageresizing.net
I believe your best bet in this direction would be to actually upload the image via AJAX to a temporary work directory and serve it on time, rather than load it with FileReference. This would also…
-
3
votes2
answers2905
viewsA: Automato for navigation in a Webforms application
You can also use the Selenium with the Selenium Toolkit for . NET. Just like Phantomjs, cited by Miguel Angelo, is a browser automation tool. From their homepage EN: Selenium Automates browsers.…
-
1
votes2
answers1057
viewsA: run/call a page remotely
You can use the class WebClient: http://msdn.microsoft.com/en-us/library/system.net.webclient.aspx using(var wc = new WebClient()) { wc.OpenRead("urlAqui"); // ou // wc.DownloadString("urlAqui"); }…
-
2
votes6
answers2374
viewsA: How to select all "empty" elements
The simplest way is input:not([value]),input[value='']: http://jsfiddle.net/4rB65/ <input type="text"> <input type="text" value> <input type="text" value=""> <input type="text"…