0
votes
0answers
2 views
To set Asp Radio button attribute (value) to a string
In the below mentioned code iam adding the attribute 'value' to the radio button. I need to know how to set the radio button 'value' attribute to a string.
Thanks in advance.
protected void ...
0
votes
0answers
9 views
MVC OAuth sign in with Google not working when using URL rewrite
I use the standard OAuth functions that ship with MVC 4 to let users sign in with Google and Facebook. Everything was working fine until I used url rewrite to remove the virtual directory name from ...
0
votes
0answers
10 views
xml display in asp.net page
I have created xml with XElement, but when I display this on an aspx page the format is not what I would like which is:
c# code:
var persons = new[] {
new Person {
Name = "Patrick ...
0
votes
3answers
28 views
Handling concurrent attempts on a SQL transaction (special situation)
I have 3 tables in a SQL Server 2008R2 database, that I need to fill their records right after each other so I used transaction to do this job with no problem. basically I have 3 INSERT store ...
-1
votes
1answer
15 views
asp.net c# session logs out after form submit
Okay so I have an issue with my forms.
I have a collection of forms on one page. The active one dynamically changes depending on the option you have selected. However my issue is that whenever a ...
0
votes
1answer
35 views
How to select a menu item at run item?
Say I have this code in the click event:
MenuItem myItem = new MenuItem("Tab", TabIndex);
Menu1.Items.AddAt(TabIndex, myItem);
myItem.Selected = true;
Now for example I click on a button with this ...
0
votes
0answers
26 views
Comparing against database value
What I am trying to do is grab the current logged in users username and compare that against a database which contains users, and also includes an Active flag and an Admin flag. I want to compare the ...
-1
votes
2answers
62 views
How to retrieve files from 2 different projects in the same solution without hard code the path? [closed]
I have 2 projects under 1 solution, 1 project called adminsite, and another 1 called publicsite. What i want to achieve is, i want to retrieve some files in publicsite sub folders and use those files ...
0
votes
2answers
2k views
Why can I access static class method in App_Code for an ASP.NET project NOT for an MVC2 Project?
In the same asp.net MVC2 project (no problem when it is a pure ASP.NET project), I have created 2 classes in App_Code without no namespace, one is normal class, the other is static.
I can access ...
0
votes
0answers
13 views
How to change the position of transfer icons in telerik listbox Control?
How to change the position of transfer icons in telerik list box Control from the right of the list box to the left?
1
vote
1answer
39 views
Adding controls programically
I am creating ASP.NET wep page. I have a world map and I want to add some image buttons (cities) controls in C#. I made the method:
I am using stored procedure to get data from database but when I ...
0
votes
0answers
11 views
How to consume wcf services which self-host on 127.0.0.1 through asp.net page
I have a windows form application A which host a wcf services on 127.0.0.1, by using this services, other appreciations can implement some automation work such as open a tab in A.
My question is that ...
0
votes
0answers
15 views
MVC3 Custom URL Rewriter HttpModule RouteData corruption
I am having some really strange behaviour in ASP.NET MVC3. Basically I've written an HttpModule that fires on BeginRequest which potentially rewrites my URL using HttpContext.RewritePath(string). This ...
4
votes
2answers
8k views
Problem writing HTML content to Word document in ASP.NET
I am trying to export the HTML page contents to Word.
My Html display page is:
What is your favourite color?
NA
List the top three school ?
one National
two Devs
three PS
And a button ...
0
votes
1answer
37 views
Accessing Abstract Class Methods C#,ASP.net
I have the following classes in my program and now I want to access the method M2() present in the class Y. I tried to access it by creating the object of class Z and then casting it with variable of ...