Hi,
I'm creating a blog in asp.net mvc for learning purpose so please no answers telling me i should use an open source blogengine. I need to understand how is the blog content going to work. So i have a table called "Blog" with a column called "Content". The "Content" will hold the blog i.e. text and images etc. Now i have the followin...
I have an Area called PlanningBoard which has a controller called PlanningBoardController and a view in \areas\PlanningBoard\Views\PlanningBoard\Index.aspx.
However my url says; http://localhost:55736/PlanningBoard/PlanningBoard but I'd like it to say http://localhost:55736/PlanningBoard.
I know I must be missing some rather large poin...
i have a temp data which i want to receive in javascript and then want to assign it to the tab selected? how would i do that?
var langid ="<% Tempdata["something"] %>";
$('#tabs').tabs('select', 'tabs' - langid);
...
Dear all,
I am using these technologies: SQL Server 2005, ASP.NET MVC, NHibernate/sharp architecture and would like to mine some text with the final aim of presenting some web based stats . I have several millions of keywords and several millions of documents and would like to run some queries based on these documents indexed by the key...
Hi guys
here is my problem.
I'm using MVC and in a lot of Index Views i have a 'Delete' button/logo with a URL. So I wanted to make this delete function work with jQuery and AJAX.
my button:
<a class="delbtn" href='<%= Url.Action("Delete", new {id=item.Vrst_ID}) %>'>
<img src="<%= Url.Content("~/img/cancel.pn...
Very simple I'm sure, but driving me up the wall! There is a component that I use in my web application that identifies itself during a web request by adding the header "XYZComponent=true" - the problem I'm having is, how do you check for this in your view?
The following wont work:
if (Request.Headers["XYZComponent"].Count() > 0)
Nor...
I am developing a public website on ASP.Net MVC and I am looking for open source libraries for SEO that give me following functionality.
Vanity URLs that have URL format like "mysite.com/<category>/<title>"
Sets Title of the page to something like "<site name>/<title>"
Sets Meta Tags in the HTML header
Puts H1 tag around page title in ...
Hi I have this code in my view..
<%=Html.DropDownList("ProductTemplate",new SelectList(Model.ProductTemplate,"Value","Text"))%>
I know if this dropdownlist box is in between BeginForm submit I can able to access the value in Controller using collection["ProductTemplate"];
if it is not in my beginForm still I can able to access this s...
We've been having a discussion at work about whether to use Domain Objects in our views (asp.net mvc 2) or should every view that requires data be sent a ViewModel?
I was wondering if anyone had any pros/cons on this subject that they could shed some light on?
Thank you
...
I am using jquery datatable in my asp.net mvc (C#) application
Radio button is not selected by default when using aoColumns of jquery datatable in google chrome and Firefox.
Html:
<td>
<%=Html.RadioButton("Password" + item.PasswordRequestId, RequestStatus.GRANT, true, new { @id = "RequestGt" + +item.PasswordRequestId })%>
</td>...
Hello everybody,
can I use it like this in View?
<%= Html.CheckBoxFor(user => user.Role, "Administrator")%>
and then just read a value of property in model if checkbox is checked:
string role = user.Role;
(role = "Administrator")
Help me please!
Take care,
Ragims
...
Please see at the end, as I constantly update with latest investigation data. Currently, I need help with server-side WireShark log.
I experience strange issues with ASP.NET MVC web application. Few users experience form post timeouts and hangs, so that after clicking submit it just lasts forever and does not advance to next page. The s...
Background: I currently have a Web Forms, ASP.NET 3.5/C# application which I'm interested in converting to MVC 2. It's a relatively tiny app so the exercise shouldn't take too long. The two primary functions the appliction does is allow users to
1) view and enter their data - metrics
2) view output reports of this data aggreggated at ...
Hi,
My question is simple.
How do I decode Html characters in mvc contrib grid? I want those to be rendered inside textarea after decoding. But unfortunately its all encoded information what I get inside textarea. Following is how I'm trying to do this...
column.For ( cust => Html.TextArea("Customer", new HtmlString(cust.Address), 4, ...
Hi all,
Can anyone give advice on filtering my Elmah (http://code.google.com/p/elmah/) exception logs?
Elmah has been a very valuable tool in highlighting my obvious mistakes and oversights in my web application.
However now .. most Elmah entries do not pertain to my own stupidity (well -- perhaps they do -- thus my question), but an...
I built a form in sales force and
added it to my site. The whole goal
of this is that the form on my site
submits to sales force.
I want to
add server-side validation to my
form like I have on other forms on
my site.
Sales force uses a weird
name for drop down lists that often
starts with a number. In my case,
the drop down list inp...
ASP.NET MVC has come a long way (compared to webforms) in becoming a unit testable framework. However, we are often faced with some remaining pigs like FormsAuthentication, which I usually wrap in some type of UserSession object to keep it clean and testable. The other day I realized I was using Server.MapPath in my controller action, an...
Everything works perfectly fine in debug but silently blows up on the live server.
Here's my jquery which checks to see what is selected in a dropdown box on the page:
<script type="text/javascript" >
$(document).ready(function () {
$("#Schools").change(function () {
if ($("#Schools").val() != "") {
...
I have a feeling this is something very obvious that I'm missing, but here goes.
I'm trying to set up multiple languages in an ASP.Net MVC project (C#, MVC2, .Net4.0). However, I have some cases where I want to have phrases translated within the Controller (error/success messages, mostly). However, it seems every method I try is eithe...
I'm pretty new to programming in general (really started only 2 1/2 years ago) and I'm trying to decide what the best way is to approach a web app I'm making at work.
A senior developer at work is encouraging me to get into MVC and after a good 24 hours of pouring over blogs, source code and other material on the subject I'm beginning to...