Questions tagged as 'c#'

1
answer

get the namespace in a variable in c #

Currently I develop an app in C # (business layer) where I need to get in a variable of type string, the namespace of the function that is running. This I get in the following way; using System; using System.Collections.Generic; using Syste...
asked by 05.03.2018 / 23:33
1
answer

How to paint a date that comes from a Sql table in a calendar in C #?

I have a calendar, in which I am coloring the rest days in Orange, based on the start date of the employee's day and the type of day. What I want to do now, is to bring a date ( FechaSalida ) from my database, this date tells me if I work...
asked by 31.05.2017 / 22:44
1
answer

Reload a partial view from JQuery or JavaScript

This time I find a doubt that looking in several forums I have not managed to solve, I have a list of notifications, which I post in a partial view, then I invoke this view in a layout. up there all right. Then I have a script that whe...
asked by 28.06.2017 / 20:09
1
answer

C # - Reference to objects and vectors

I have a problem where by installing a new object and then this object to be part of a vector of objects of this same type, but when I request a return data of 2 different indexes of the vector, it returns the same information. Note: vectermi...
asked by 29.06.2017 / 10:39
1
answer

How to combine two byte arrays with a delimiter between them, in C #

My question is simply how I could put two byte arrays together and delimit them. In the following example, I write them and write them as a single file. But, First I do not know how I could join them with a delimiter, a comma or something to sep...
asked by 09.05.2017 / 01:34
1
answer

Vector of objects (Doubt) - C #

In the next 2 cases I find it hard to understand the execution flow. Look at the Line marked with %%%%%%%%%%%%%% is the line where my question is presented, Initially I put that line out of for but I got a output in which on...
asked by 17.05.2017 / 07:32
2
answers

How to show an image before ending an event? - C #

I'm trying to make a loading for a section start form. I have put an animated gif to make the loading effect. What happens is that when I use the property loading.Visible = true it is not visible until the event click ends. H...
asked by 22.07.2017 / 17:22
1
answer

Save Excel ASP file c #

Good Night I would like you to help me. I'm doing an application and if I save the route correctly but when I want to run again, everything is deleted and created again. I would like it to be created in the same folder as well as copy and not be...
asked by 24.03.2017 / 01:51
2
answers

How do I call a javascript file on my sitemaster? C #

As I command to call a .js file from my site master so that it is the first to be executed within my application. SiteMaster code: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="sitemaster.master.cs" Inherits="sitemaster" %>...
asked by 24.03.2017 / 19:55
1
answer

LogIn UWP C # + MySQL + PHP

Hello again guys; How can I consume a PHP web service from a universal application in C #? I searched through many codes until I found this Microsoft it works very well, everything is in the MainPage.cs. What I'm trying to do is creat...
asked by 20.04.2017 / 00:27