1 answer

C# MVC Routemap and Querystring

I'm building an MVC web application. I want to create a custom url of login to some page in my site, for example: www.mysite.com/sites/mycompany/mysite/GetLogin/myusername so I create a new ...

0 answers

Hover disappears after action perform

In my application I always use selenium action function to hover on websites menu and its working fine, today I get website that after perform action the menu shown and disappears. my code: Actions ...

1 answer

Binding an attribute to property of the itemssource collection

I have a data grid. the item source MySource is an observableCollection<myClass>. The class myClass has a property BackgroundOfRow - its type is Brush. I want to bind the RowBackground ...

1 answers | 2 mins ago by Tehila on Stack Overflow stackoverflow.com
1 answer

Displaying blob images in pdf using access data table

I want to display images from my access database which are stored as long binary data directly into a PDF file. I've searched a lot and finally found the following code, but it throws an error saying: ...

1 answers | 2 mins ago by Shridhar G on Stack Overflow stackoverflow.com
0 answers

Clicking a link in xslt opens a page based on the xml node

The title probably doesn't make sense. I don't even know how to phrase my problem... I have a page that lists data from an xml file using xslt foreach into a table. The "name" of each childnode is a ...

0 answers

Update Umbraco user's user type, based on the roles from external identity

In the last few days I have been working on integrating Umbraco Backoffice with IdentityServer v3. I have managed to get to the point, where I authenticate user externally and have Umbraco create a ...

0 answers

How add custom progress bar in wix

I need to perform some actions before installing the product. How to show the progress in the dialogue? Is it possible in wix toolset?

3 mins ago by Oleh on Stack Overflow stackoverflow.com
23 answers

Splitting a string into chunks of a certain size

Suppose I had a string: string str = "1111222233334444"; How can I break this string into chunks of some size? e.g., breaking this into sizes of 4 would return strings: "1111" "2222" "3333" ...

23 answers | 4 mins ago by red_Amazon on Stack Overflow stackoverflow.com
5 answers

ConcurrentBag(Of MyType) Vs List(Of MyType)

What is the advantage of using a ConcurrentBag(Of MyType) against just using a List(Of MyType)? The MSDN page on the CB (http://msdn.microsoft.com/en-us/library/dd381779(v=VS.100).aspx) states that ...

5 answers | 4 mins ago by Ben on Stack Overflow stackoverflow.com
0 answers

How to keep one of duplicate entries in list<T>

I have a list and in the list there are multiple entries. If the list contains an entry that is duplicated then I want to only keep one of the duplicates. I've tried many things, the ...

0 answers

Does anybody have experience in maintaining Sitecore MVC and Web Forms in a single solution?

We have a multi site project in Sitecore 6.5 Web Forms which requires decent refactoring, architecture redesign and we want to upgrade it to sitecore 8. Of course it will be easier to start something ...

0 answers

same ascx file with javascript used multiple times on the same page

we have an ascx file with some javascript on it that has some variables and functions defined. We need to add this ascx control twice on the same page and the problem we have is that the variables ...

0 answers

Oracle c# number function returns 0 always

I am trying to call an Oracle function which has a return type of number. I am calling from C# using OleDB and I understand that the mapping of type number in Oracle is a decimal. Whenever I call ...

2 answers

how to declare and update my class in my .cshtml file

I've create two classes for holding objects in my cshtml file, as below public GroupBlock groupTemplate = new GroupBlock(); public RuleBlock ruleTemplate = new RuleBlock(); public class ...

2 answers | 5 mins ago by user616076 on Stack Overflow stackoverflow.com
3 answers

Is it possible to determine which class the current class was instantiated from?

As the title suggests, it is possible to determine which class a particular object is instantiated from? Update: Example Code: Based on Tims suggestion, this will get me close to the answer, but the ...

3 answers | 6 mins ago by CJC on Stack Overflow stackoverflow.com
2 answers

Is a public readonly List<T> bad design?

I am currently writing an application that builds a connection to some sort of Service, gets Data in the form of a few DataTable objects and then is supposed to show it to the user. In order to store ...

2 answers | 6 mins ago by Wilsu on Stack Overflow stackoverflow.com
2 answers

Biometric finger scanner deserializing template from database C#

good day to all I just need some help. I was wondering if my code is correct so please guide if it is not. I have a Digital Personal Biometric Model U.ar.U 4500 using DPFP .NET (C#) SDK I was able to ...

2 answers

How to prevent usercontrol fill option from extending too far

I have a usercontrol that I'm adding as a control of a main form dynamically. The Mainform is basically empty, except it has a large status bar on bottom. Problem is, when I set the Dockstyle.Fill ...

2 answers | 8 mins ago by l46kok on Stack Overflow stackoverflow.com
1 answer

How to initialize WebClient using object initializers?

I have a WebClient like this: WebClient _webClient = new WebClient { UseDefaultCredentials = true, Encoding = System.Text.Encoding.UTF8, }; _webClient.Headers.Add("user-agent", ...

1 answers | 8 mins ago by MicahelMao on Stack Overflow stackoverflow.com
0 answers

How to avoid caching of layout while using DonutOutputCache

I use DonutOutputCache for caching data. My _Layout is set dynamically. In my view I don't want to cache _Layout, for this I use the code below: @{ @Html.Action(MVC.INDEX.ActionNames.GetLayout, ...

2 answers

while loop during awaiting for async task

I have a following problem. I have a synchronous .Save() action that takes quite a few minutes to complete. I cannot make it async (3rd party library), so to keep the UI responsive, I am using it all ...

2 answers

SQL Join 2 tables together command

I have 2 tables as outlined above and I want to pass the current teams name into the Previous_Club column of the Player table. I have the logged in Team user's Team_ID set as a session variable so I ...

2 answers | 8 mins ago by Haldamir on Stack Overflow stackoverflow.com
1 answer

C# Regex Retrieving String within String

I have these two strings: s = t [ f ] s = t and processing each with regex using this pattern: (?<=]).*(?==|:) My goal is trying to retrieve the " s " part (between the "]" and "="), ...

1 answers | 9 mins ago by Dean Reynolds on Stack Overflow stackoverflow.com
1 answer

Read excel table data using c#

I have excel file with several excel tables. I want to read all the data in excel tables for a given excel sheet and copy those to a different excel table. One excel sheet may have several tables I ...

1 answers | 10 mins ago by udaya726 on Stack Overflow stackoverflow.com
0 answers

Invalid length for a Base-64 char array or string c# mvc4 web Api

I am using swift 2.0 and Alamofire 3.0. I made a POST request with Alamofire. Parameters in my request contained text and a base64 encoded image. But I am getting a Message as response saying "An ...

0 answers

How to convert int to Object while reading

call is a complicated object, it has composition with Mobile. caller and reciver are Mobiles, but the field CallerCall and ReciverCall are int at the sqlServer tables (which are in connection with ...

1 answer

Slowing down IIS/SharePoint HTTP response over time

I've a single threaded C#/.NET crawler which downloads file from a SharePoint server (hosted on a VM). The server has about 345k files and uses default windows NTLM authentication. It used to take ...

2 answers

Get Windows user name from SessionID

Is there a method in C# to retrieve the user name from a given session id? (any session running on the system) The Win API function WTSQuerySessionInformation does this, but I'm searching for this ...

2 answers | 12 mins ago by joe on Stack Overflow stackoverflow.com
0 answers

C# WIndows CE Compact Framework 2.0 Set System Timezone

I want to change the system time zone programmatically in my windows CE Mobile ?? How do I do it ?? I read through some posts but i am not able to do it ?? Can someone give an sample code to acheive ...

2 answers

ASP.NET Identity 2 Invalidate Identity Difficulties

I have been updating my implementation of ASP.NET Identity all day today and I feel I'm on the last step, but just can't make it work. All I want to happen is to have the user's current session (if ...

15 30 50 per page
1 2 3