Tagged Questions
C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.
0
votes
0answers
2 views
MVC ActionLink issue
Im new to using MVC, so i thought i would give it a try.
I have a problem with my ActionLink:
foreach (var item in areaList)
{
using (Html.BeginForm())
{
<p>
...
0
votes
1answer
16 views
Writing a very generic method
I have a method like this
void Foo(IMyInterface obj)
{
}
Now, sometimes in this method I want to do this
obj.A++;
and sometimes I want to do this
obj.B--;
The question is, how can I pass ...
0
votes
1answer
11 views
Is there a way to see a history of function calls in visual studio?
Working on a project that keeps crashing. No errors and showing up, my memory monitor tells me that everything is normal and as far as I can see there is nothing aberrant in my code it just stops ...
0
votes
1answer
8 views
XPath - Select Node That Has Atrribute
Is is possible to select nodes IF they have a certain attribute? The nodes I require all have a "data-rel" attribute. I want to select only the nodes that have that attribute, irrespective of the ...
0
votes
0answers
8 views
How to get and save posted JSON file using AJAX to ASP.NET C#?
I'm trying to post a JSON file formatted file to ASP.net ! I'm trying to save the file on the Sever.
ajax code is calling a function called "Save()" in code behind to save the jSON file on server. ...
0
votes
1answer
5 views
Byte array to BitmapImage WP
I'm trying to get BitmapImage serialization working on Windows Phone 8, but it seems that a lot of libraries are missing from the WP SDK compared to desktop C# apps...
Basically I've got a Byte array ...
0
votes
0answers
5 views
Using AutoMapper to create a DTO object, which is a result of comparing two entity objects
Assume the following two classes:
public class MyEntity
{
public string FirstName;
public string LastName;
}
public class MyDTO
{
public string FirstName;
public string LastName;
}
...
0
votes
0answers
20 views
Unable to cast object of type WebControls.ContentPlaceHolder to type WebControls.GridViewRow
I have a Modal pop up that is triggered by a button in my gridview. Inside the panel I have ImageButton. I want to call the GridviewRow.here is my code
protected void ImageButton1_Click(object ...
0
votes
0answers
20 views
Error happened while connection to oracle via c#
I have a windows application that write with c# 4. in this windows application i get user name, password, server IP and etc from user and create a oracle connection string from this inputs and test ...
-2
votes
0answers
40 views
How to design project architectures?
I have tried to find out how to build architectures design for asp.net projects. But unable to come for a conclusion that in which situation to use which architecture design approach like 3tier, SOA, ...
0
votes
0answers
5 views
RestSharp - Authorization Header not coming across to WCF REST service
I am trying to call a locally hosted WCF REST service over HTTPS with basic auth.
This works and the Authorization header comes thru just fine and all is happy:
...
0
votes
0answers
6 views
Decision in regard to adding a new project independent of the application's layers
Hi I m in the process of refactoring an application for witch I was tasked to restructure the app because of the bad coding and architectural design.Fortunetly it is not that much work to be done ...
-5
votes
1answer
29 views
How do I use a class parents and children?
I have a Object called Person and I need to have values decided by other classes or objects, one of them will be whether the Object person is a boy or girl and the two classes will give back variables ...
0
votes
0answers
7 views
Youtube API - Direct Upload, File Upload full path
I use Youtube API to upload videos on youtube. I read the documentation here, but there is one problem. I want to use FileUpload asp.net control, so users can easily upload file. But youtube api ...
0
votes
1answer
17 views
Check SQL server name with textbox text
I am making a Windows Forms application, in which I have to check that
if (textBox1.text == ServerName)
but it's not getting the server name option. How can I get the server name here?
I am using ...