.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

MVC 2 doesn't display in IE

Posted By:      Posted Date: August 24, 2010    Points: 0   Category :ASP.Net
 

I started to learn MVC 2, VS 2010 ultimate created MVC application . using file not IIS 7. My application When I hit F5, I get an error.

IN IE bar, I have http://localhost:5388/views/home/index.asp

Then, in the page : The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

request url /views/home/index.

I searched some forums, understood that "views" should not be displayed. I tried http://localhost:5388/home/index.asp, it doesnt work, same error.

Am I missing any config or parameter.

Thanks in advance




View Complete Post


More Related Resource Links

Balloon Tooltip doesn't display at the correct position when form is maximized

  
Having a problem with display balloon tooltip at the right bottom of form, the balloon tooltip displays fine if form is not maximized. However, the balloon tooltip doesn't display at the correct location when form is maximized(I guess because there is no room to display it on the right bottom of screen, so it moves up a bit). Is there a way to correct it? Such as displaying the balloon tooltip box above the control with stem points to the control. It displays the tooltip box below  the control right now which might cause the issue. Any help will be great appreciated.

Balloon Tooltip doesn't display at the correct position when form is maximized

  
Having a problem with display balloon tooltip at the right bottom of form, the balloon tooltip displays fine if form is not maximized. However, the balloon tooltip doesn't display at the correct location when form is maximized(I guess because there is no room to display it on the right bottom of screen, so it moves up a bit). Is there a way to correct it? Such as displaying the balloon tooltip box above the control with stem points to the control. It displays the tooltip box below the control which might cause the issue. Any help will be great appreciated.

ajax accordion with gridview doesn't display data

  

hi guys,

im trying to display some data using a gridview inside ajax accordion. i have called the method accordion1_itemBound at the accordion properties but it still doesnt show me any data at the gridview... i check all my query string and everything seems find. would really appreciate if someone could check my code and teach me how to solve it.

below are my codes at the source page

<body>
    <form id="form1" runat="server">
    <div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ProrsumDBConnectionString %>" 
            SelectCommand="SELECT [reviewID], [comments], [reviewDate] FROM [Review]">
        </asp:SqlDataSource>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
       
    </div>
    
        <asp:DataList ID="dlProdCatalog" runat="server">
            <ItemTemplate>
                <asp:Image ID="Image2" runat="server" ImageUrl='<%# Eval("pictureURL") %>' />
                <br />
                Tour Title:
                <asp:Label ID="tourTitle

AsyncFileUpload doesn't display in ModalPopupExtender

  

As far as I can see, the following code should make an AsyncFileUpload display in ModalPopupExtender. The MPE shows fine but the AsyncFileUpload doesn't load inside it. Please let me know if you see anything amiss. I also tried removing the update panel and putting the divs both inside and outside of the update panel, all with the same (lack of) results. And the AsyncFileUpload displays and works outside of the MPE.

In ListView EditItemTemplate:

<asp:UpdatePanel ID="udpUpload" UpdateMode="Conditional" runat="server">
    <ContentTemplate>
        <div class="profile-with-border">
            <asp:Button ID="btnUpload" Font-Bold="False" TabIndex="160" Text="Upload/Change Photo"
                OnClick="btnUpload_Click" UseSubmitBehavior="False" runat="server" />
            <br />
            <atk:ModalPopupExtender ID="mpeUpload" BackgroundCssClass="modalBackground" DropShadow="true"
                OkControlID="btnOK" CancelControlID="btnClose" PopupControlID="pnlPopup" TargetControlID="btnUpload"
                OnOkScript="mpeUpload_OK" runat="server" />
        </div>
   

datetime problem when save into table, doesn't display currentdate

  

Hi.
I have a gridview. in this gridview, I can checked a row to select the row. And I can save the row into database. I also have datetime (current date) and idsubject 
out of this gridview. I want to save date and idsubject in database, simultanously with save the checked field in gridview. I write the following code
and can save all three of them. But I have problem with the date. it doesnt save the current date, instead it appears 01/01/00 0:00:00 in table.
I dont know what is the problem.

Hi.


I have a gridview. in this gridview, I can checked a row to selec

Image doesn't display in the TextBlock!

  

This is my code.

 

   Image imgMessage = new Image();
      BitmapImage bi = new BitmapImage();

      bi.BeginInit();
      bi.UriSource = new Uri(@"/imgMessage.png", UriKind.RelativeOrAbsolute);
      bi.EndInit();

      imgMessage.Source = bi;


      TextBlock tb = new TextBlock();
      InlineUIContainer iuc = new InlineUIContainer(imgMessage);
      tb.Inlines.Add(iuc);
      Grid1.Children.Add(tb);

 

 

that code is image shows a TextBlock within the code.


But, isn`t work!

SharePoint 2010 - Photo Displays in MySite - Photo Doesn't Display in Contact List

  

MySite is up and running fine.  I am adding photos through Central Administration > Manage User Profiles.  All photos are syncing and showing up in contact lists whenever someone is added to a "Person or Group" Name (with picture) column. 

I recently added someone, uploaded their photo.  It syncs fine with AD, can see it in the thumbnailPhoto attribute for this user.  I looked in the UserProfile_Full.PictureURL column in the Profile DB.  It is there as well (http://sharepoint:80/my/User Photos/Profile Pictures/DOMAIN_USERNAME_MThumb.jpg).  The photo refuses to display in the contact list. 

This is only happening for one user.  Any ideas?


Local IIS doesn't serve up or (IE doesn't display) any XML based documents.

  

I can not display any XML based documents hosted on my local IIS. It refuses to serve even the simples for xml documents. I cannot, for example, run 'svcutil.exe http://localhost/my.wsdl' but I can 'svcutil.exe C:\Intetpub\wwwroot\my.wsdl'. None of my websites display properly. I may add that I'm running IIS 7 on Win2008R2, 64bit hosted in VM.


GridView inline Master/Detail record display

  
This code drop is part of a smash and grab series. If you're in a rush, you can just grab this code and insert it into your application, no understanding is required. When you have some time (ya, right) you may want to review the source code.

Display data in gridview dynamicallay

  
I have AD domain which has 100000 users, I want to display all the users in gridview controls.Actually it is displaying users in gridview after parsing entire domain which takes around 30 min. I want to display the users while loading itself.It is continously getting user information from AD domain and getting each user details, I want to display the users information which already queried instead of waiting till getting all users information

asp.net display data in gridview

  
i want to display data in gridview binded to a sql datasource
but the problem part is i want to bind a field of that datasource to a dropdownlist and when a item is selected in that dropdownlist then correcposnding to that data will be displayed in gridview...

display data into GridView from excel sheet

  
I have to display data from excel sheet into my gridview and also I need to figure out a way to store data into excel files from my web page. I am using C# 3.5, VS 2008.

Display Related Data in an ASP.NET GridView

  
Typically when you display a datagrid you will want to show data from a related table. There are 3 different ways to accomplish this with NetTiers. You can use a custom stored procedure, deepload functionality from the code behind, or a strongly typed datasource control. We'll provide an example of each

Store and Display Images from MS Access Database Using C#

  
There is only the difference of coding syntax to stream the binary data of image content type to upload it into MS Access Database using C#/VB in ASP.Net 2.0

Namespaces required:-
using System.Data.OleDb;

OleDb is used to connect the web site forms with MS Access Database using Microsoft.Jet.OLEDB.4.0

Beginner: this doesn't make sense to me

  

Do you need and "empty" script tag in the head to run scripts that are in the body?  Also, can you run JQuery scripts if they're in the <head> tag?  The first sample only works if the JQuery script is in the form (and body) tag, not in the head - even if I add $(document).ready(function() { });

This works

<head runat="server">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" />
<script type="text/javascript">
</script>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<a href="">Here is a link</a>
</div>
<script type="text/javascript">
$('a').click(function () {
alert("you clicked me!");
});
</script>
</form>
</body>
</html>

 

This doesn't work.  Notice I removed the second <script> tag from the head

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="serve

divs do not display side by side

  

I have two divs. I want them to display side by side, on the same row. Using display:inline-block I can do that. But as soon as I position some text in the bottom right corner of div1, the two divs do not have the same vertical position. They are side by side, but the 2nd div starts at the vertical position of the positioned text in the 1st div.   Why would it do that?  Both Chrome and IE8 render it the same way.

( I am doing the nesting of the divs on the left side so that I can position absolutely within a div and not the page. I can't get text to position in the lower right corner of a div any other way. )


thanks,

  <div style="border:2px solid black;">
    <div style="display:inline-block;">
      <div style="width:10em; height:4em; background:orange;color:White;
           position:relative;">
        <span style="position:absolute;bottom:0px;right:0px;">
        login message
        </span>
      </div>
    </div>

    <div s

Display column from child table. Possible ?

  

Hello,

I'am using dnamic entity with EF4. On a list page of a table, I would like to display a column containing information from a child table of the current element. Sample :

Order List :

Order Data | Required Date | Shipped Date | etc... | ... | Customer Name (foreign key with tostring() method override) | Customer Postal Code (Column that I want to add) |

I don't known how to do that. Is it possible ? Maybe I have to to create my own Metadata proxy that will add dynamicly a column on the MetaColumn list of the table.

Does someone have an easier or better idea ?


Thank you for any help.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend