Questions tagged as 'c#'

2
answers

Count number of checkboxes selected

I have a grid with repeater: <asp:Repeater ID="rtInlineBlock" runat="server"> <ItemTemplate> <div class="block"> <asp:HiddenField ID="id...
asked by 03.03.2015 / 21:30
1
answer

Convert VB6 application to C # WebForms with Entity

I have an application in VB 6 and would like to migrate it to WebForms preferably using c# with entity . I would like to know if there is any tool that will help me in this conversion (migration).     
asked by 23.02.2015 / 18:21
2
answers

Extension Methods in .NET does not work

I am trying to create a Extension Methods for class string . It is not appearing. My class with the extension method: namespace MEUPROJETO.Extension { public static class StringExtension { public static string P...
asked by 31.05.2015 / 00:54
1
answer

Why do I need to run this code twice to rotate the 3d object? [closed]

My code is a gambiarra, but I only managed it the way it is below. In addition I have to run twice to be able to rotate the object and I do not know why. I would like to understand what happens here. var device3d = helixViewport3D.Childr...
asked by 06.01.2017 / 23:38
2
answers

___ ___ Find erkimt values between two prefixes and exchange each other [closed] ______ qstntxt ___

I'm developing an application where you have to find a set value and literally walk 19 homes.

13000000 736363645C736363645F
6178747265653030311300000073
6363645F6178747265653030315F

  • Search for value from: 13000000
  • Floor of: 13000000 up to: 736363645C736363645F617874726565303031 (Or until you find another value 13)

Looking like this:

13000000 736363645C736363645F
617874726565303031 1300000073
6363645F6178747265653030315F

  • Search for another value: 13000000

Looking like this:

13000000736363645C736363645F
617874726565303031 13000000 73
6363645F6178747265653030315F

  • Floor of new value: 13000000 to the other value: 736363645F6178747265653030315F

Looking like this:

13000000736363645C736363645F
61787472656530303113000000 73
6363645F6178747265653030315F

Then, exchange one value for the other: 736363645C736363645F
61787472656530303 for 736363645F6178747265653030315F

Doing a loop by repeating the same function throughout the file.

======================== Edit

So:

13-00-00-00- 73-63-63-64-5C-73-63-63-64-5F-61-78-74-72-65-65-30-30- 31 -13-00-00-00- 73-63-63-64-5F-61-78-74-72-65-65-30-30-31-5F

Looking like this:

13-00-00-00- 73-63-63-64-5F-61-78-74-72-65-65-30-30-31-5F -13-00-00-00- 73-63-63-64-5C-73-63-63-64-5F-61-78-74-72-65-65-30-30-31

NOTE: I changed the value above after the "13-00-00-00" down

============================ @ I tried something similar to this:

%pre%     
______ azszpr140100 ___

A simple way is regular expression, using %code% :

%pre%

In the case, I made you a regular expression with two groups: one internal (to take the 19 values individually) and one external, to get all 19 values at once.

I made a Fiddle .

Note that in Fiddle, %code% is exactly what you're looking for.

About invert to %code% the simple way is to implement this function ( best answer from here ):

%pre%

Therefore:

%pre%

Now I understand what you want. You want to locate the groups two by two, and then invert them.

This changes the regular expression, because you need to necessarily find two groups:

%pre%

Find the largest group ( %code% ) and do another regular expression search on it. You will get two groups.

Just invert them and mount another %code% .

    
______ azszpr140105 ___

I tried to do something that seems to be what you want. You may have problems because the problem is not well defined. If I improve the setting, I can change it a bit and make a final, more organized version. I made a version with question originals and without the dashes as it was after the edit.

%pre%

See working on dotNetFiddle .

    
___

I'm developing an application where you have to find a set value and literally walk 19 homes. 13000000 736363645C736363645F 6178747265653030311300000073 6363645F6178747265653030315F Search for value from: 13000000 Floor of: 13000...
asked by 11.07.2016 / 22:16
2
answers

Error compiling program

I'm having these errors, it's working! I've added the reference, the BLL folder is right along the way. I've tried and researched everything but I do not understand what I have to do. I have re-created the project 3 times and can not get this...
asked by 18.03.2017 / 20:18
3
answers

How to write a date in type of ISO 8601

I'm doing a communication program with apis online and I'm using a header of type DateTime and I needed that date to be in type ISO 8601 how can I do that? I'm using this to create the header: var tempo = DateTime.UtcNow.ToStr...
asked by 08.09.2017 / 17:12
2
answers

Doubt with the C # language [closed]

I have a String any type "chair". Doubt How do I make a space between all letters in C# ?     
asked by 23.08.2018 / 12:51
1
answer

How to use MySQL in a common form?

I'm having trouble using a MySQL database that I have on a host (bluehost) in a C # application, I would like to view the tables in an application but I can not connect to the DB, I already installed the connector, only the following message app...
asked by 18.11.2014 / 15:38
1
answer

Query with PagedList

I'm using PagedList.Mvc for pagination of results. But when doing the following action with the querys: public ActionResult Index(int? page, string searchString) { int pageSize = 10; int pageNumber = (page ?? 1);...
asked by 24.12.2014 / 17:32