Tagged Questions
1
vote
1answer
12 views
CSHTML Script - Display HTML if SQL Query Returns Null
I have a CSHTML Script a Pal has written, I am making some changes, I have a SQL Query as a variable and if this SQL query returns NULL then I want to display separate HTML than to if it returns ...
1
vote
1answer
22 views
Disposable Ajax.ActionLink like Ajax.BeginForm
I can write form and it's content like this:
@using(Ajax.BeginForm(...)){
// html content here
}
Rendered as:
<form>
// html content here
</form>
Is it possible to do same ...
0
votes
0answers
16 views
mvc3 saving html inside a cookie
as the title says I am trying to save HTML into a cookie and i am getting an error which says
A potentially dangerous Request.Cookies value was detected from the client . The value the cookie is ...
0
votes
1answer
60 views
Jquery variables not clearing values properley on vertical scrolling list
I have a list of addresses which is picked up when someone enters their postcode and distance from postcode in miles.
The list which is brought back is displayed in a vertical scrolling list using ...
0
votes
0answers
18 views
Display images in one row inside a div tag for IE 9.0
I am working on asp.net mvc3 application and the target browser is IE 9. I make a simple image gallery but I met this problem. I want images to be aligned horizontally. The div tag for the image ...
1
vote
1answer
32 views
Convert HTML form declaration to Razor
How can I convert this line:
<form action="[email protected]
(Request.QueryString["ReturnUrl"])" method="post" id="openid_form">
...to Razor, e.g. something ...
0
votes
1answer
46 views
“view page source” Page not starting with <!Doctype html>
I'm intergrating openId in already developed code (mvc3/razor)
I changed the default route to Account/LogOn from Home/Index
When I viewed "View page source" from browser(right click), _Layout.cshtml ...
1
vote
3answers
23 views
A link that doesn't work, even if the source is ok
I don't understand what is going on!
I have this page on my website with an url that point to the personal website of the user:
http://www.recettesmaison.ca/Profile/Details/Sandra
The url is ok in ...
0
votes
0answers
29 views
MVC 3, understanding the concept [closed]
I find it a little hard to understand the concept of MVC 3. Very often I tend to use solutions that I made up myself, which can result in many errors and strange behaviour of my site. It's hard to ...
0
votes
0answers
15 views
Form tag properties being set outside the Master Page
I have a master page in an MVC project that contains the opening tag for the form:
<body>
<form id="form1" runat="server">
but when I open a view and go to 'View Source' I get this:
...
1
vote
0answers
30 views
Set positioning of jQuery calendar
I'm working on a asp.net mvc 3 application. I use razor but I think in this case it's not relevant to the problem. I use an inherited jQuery datetime picker which works fine for all my pages where I ...
-1
votes
0answers
58 views
Store HTML page data in SQL database using AJAX in MVC project [closed]
I have MVC project in that i have one HTML page that include input box for email ID i want to store that Email ID in my database i don't khow the way to do this, Any suggestion
My HTML file code is
...
0
votes
1answer
76 views
The closing braces of my C# code are not recognized in a Razor partial view
I am working on a asp.net mvc 3 application. I use Razor for my views. I had this problem friday and thought I have fixed it but now I see that it was just some private case where the things worked ...
0
votes
0answers
31 views
Custom action view calendar in mvc3
I would like to create a custom mvc3 calendar that accepts Year and Month and generates a calendar in the view. I would have loved to use the date picker from jquery but each day must be sufficiently ...
-2
votes
1answer
41 views
call function from a separate file [closed]
I have some function, it's located another file: ../../functions.js for example.
i'm using "telerik grid" to show tables.
my function Designed to add num of row.
like:
function addNumbers(e) {
...