Questions tagged as 'c#'

1
answer

How do I lock a pivot when the Holding event is triggered?

I'm wanting that when the Holding event is triggered, I can block the movement of my pivot . I have tried to use the IsEnable and IsHitTestVisible properties, however I can still do the swipe during the holding ....
asked by 19.05.2015 / 19:34
1
answer

Access denied when getting namespace binding time

I'm developing an application for Windows Phone and I'm using a namespace connection. The problem is that this namespace says that it does not have access to the resource, and that the declaration was made in the aplicaçã...
asked by 04.05.2015 / 21:45
1
answer

How to use event dynamically created buttons to redirect to another ASP.NET page?

I'm trying to call the event from buttons that were created dynamically with a foreach public void adicionarComanda() { List<Comanda> lc = ControllerComanda.getComanda(); foreach (Comanda comanda in lc) { Button bt =...
asked by 26.05.2015 / 04:05
1
answer

How to access Json object property?

I'm getting via Ajax a Json object, and would like to turn it into a C # object and access its properties. How can I do this? I ended up reversing the name of the variables ( objeto , itens ), the first are the items, and the se...
asked by 22.05.2015 / 14:10
1
answer

Convert DataTable to List Entity

I'm trying to use the code below to convert but it gives error everywhere that has T and where . What could it be? // function that set the given object from the given data row public static void SetItemFromRow(T item, DataRow row...
asked by 06.05.2015 / 00:49
2
answers

ASPNET Application does not send emails

I have an application that has a screen with sending emails, this application runs 100% on a virtual server (MANWEB10), including sending emails. When exporting to this new server (MANWEB01) the sending of emails simply does not work anymore, so...
asked by 23.04.2015 / 16:58
1
answer

MTA Thread Attribute Affects on Thread

Suppose I have the class static class Program{ [MTAThread] static void Main(string[] args){ Application.Run(new Form()); } } I simply want to apply a Thread.Sleep(1000); this keeps Form stable or locks the window equal to [STAThrea...
asked by 23.04.2015 / 01:19
1
answer

Retrieve property of an Anonymous Object C # Razor

I'm working with MVC4 and RestSharp for data access via API Rest, My return is an object of type Object but I can not retrieve a specific property of this object. How can I access the property? Here is the code for the view where...
asked by 23.04.2015 / 15:17
3
answers

How do I open a file from a specific directory in .PDF in Visual Basic 6?

I've created an application which saves files to a specific directory. What I would like is to click a button, I can open this .pdf file.     
asked by 30.04.2015 / 20:02
2
answers

Dynamic property in static class

I have a static class and I also have a method with static . The method returns a value that is cached, however this Key , it has the dynamic value: key = User.Identity.GetUserName(); public static class MeuHelper { public stat...
asked by 28.04.2015 / 14:57