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

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Model Pop Up Problem asp.net

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

Hi Everybody,

I have taken a gridview and asp.net calender inside it. On clicking a button i have poped calender control up in modelpopup control. I want when i change month Modelpopup should not close. I have tried to put calender as well as gridview inside update panel but no solution comes out.

Please Help

Mohan Sharma

View Complete Post

More Related Resource Links

problem deploying report model to wss3 site

hi, im having trouble deploying my report model. when i click on deploy i have to enter a user name and password (i asume that it is the username and password i use to enter my wss 3 site) after that it begin to deploy then i get these 2 errors: Error 1 The required field UserName is missing from the input structure. c:\documents and settings\administrator\my documents\visual studio 2005\projects\essreportproject\essreportproject\ESSP.ds 0 0  Error 2 The path of the item '/Data Sources/ESSP' is not valid. The full path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash. c:\documents and settings\administrator\my documents\visual studio 2005\projects\essreportproject\essreportproject\ESSP.smdl 0 0  when i go to my page in wss3 i can see the datasource and model directory, but i cant use them can someone help me with this and explain it for me.  

Problem with parsing Model

Action: var agendas = from agenda in this.db.Agenda where agenda.EventId == id select agenda; var modelToPass = from agenda in agendas.AsEnumerable() select new { ID = agenda.AgendaId.ToString(), Name = agenda.Name, From = agenda.From.HasValue? agenda.From.ToString():"", To = agenda.To.HasValue? agenda.To.ToString():"", Description = agenda.Description, Speaker = agenda.Speakers.Name}; return View(modelToPass.ToList()); View: <% foreach (var item in Model) { %> <%: item.Name %> From: <%: item.From %> To: <%: item.To %><br /> Speaker: <%: item.Speaker %><br /> <pre><%: item.Description %></pre><br /> <% } %> But error raised "object does not have property Name". Why?

model popup problem


I have a user control containing a gridview

now i am using that user control with a model pop in aspx page

i have three gridview in aspx page, and for each gridview i have to popup the user control

for first two all things are fine

but for the third one all gridview lost


Problem with SQL server 2008 UDF and model data entities


Hi everyone. I'm very new with this technology and still have to learn lot's of stuff...

I managed to start with basic MVC design but i'm now stuck on adding functions to model..

I created view in mssql

SELECT table1.Field1, table2.Field2
FROM table1 INNER JOIN table2 ON table1.Field1 = table2.Field1

and function

CREATE FUNCTION fnGetMyViewResult(@paramField nvarchar)
RETURN SELECT * FROM MyFirstView WHERE MyFirsView.Field1 = @paramField

but when i run entity data model wizzard from VS 2010 i can chose only from tables, views and stored procedures. There is no way (atleast no way i know about) to add my sql function to MVC model...

I can see function in ServerExplorer but not in wizzard....

Can someone help me with this?

Thanks in advance..

hi problem with grid paging when grid is placed in ajax model popup extender


hi i had one ajax tab containeer.in that i placed a grid on click of the grid i am showing another grid which has pagination in a popup. the popup grid has the pagination(custom) which iam showing prev and next button in middle drop downlist the code is as fllows


<asp:ImageButton ID="imgbtnOPrev" runat="server" CommandArgument="prev" CommandName="Page"

 ImageUrl="~/Images/prev.gif" OnCommand="imgbtnOPre

Problem binding a collection to a view model on POST when manipulating the DOM with javascript.


Hi, i'm currently working on a strongly typed view and i'm binding a collection to a table like this:


for (int i = 0; i < Model.Cars.Count; i++)





<%= Html.Hidden(String.Format("Cars[{0}].Id", i),




<%= HtmlTextBox(String.Format("Cars[{0}].CarModel", i),



MVC Model to View autogeneration problem


Hi all,

Here is the thing. I have the Model "Assignment" created through LINQtoSQL. The Model has an boolean attribute and I would like to associate an Image to each option (true: imgA.png;false: imgB.png) and make it a radio button set.

To do this, I came up with this AssignmentViewModel:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ePortafolioMVC.Models;
using System.Web.Mvc;
using ePortafolioMVC.ViewModels.Classes;

namespace ePortafolioMVC.ViewModels
    public class AssignmentViewModel
        public Assignment Assignment {get;set;}
        public SelectList IsGrupal { get; set; }

        public AssignmentViewModel(Assignment assignment)
            Assignment = assignment;
            var AssignmentValues = new List<AssignmentValue>();
            AssignmentValues.Add(new AssignmentValue(true,"<img src=\"../../Content/images/imgGrupal.png\" />"));
            AssignmentValues.Add(new AssignmentValue(false,"<img src=\"../../Content/images/imgIndividual.png\" />"));

            IsGrupal = new SelectList(AssignmentValues, "ID", "Description", Assignment.IsGrupal);


using System;
using Sys

Validation problem with EF model, before annotation validation is evaluated


Hi folks, it's me agian with more EF validation issues...

I am developing a web app in Portuguese, using MVC 2 and EF 4 for the model.

I created a MetadataType class to define the model's validation annotations, where I enter my custom Portuguese messages, like this:


public partial class Property { }

public class PropertyMetaData {

[DisplayName("Status do Projeto:")]

[Required(ErrorMessage = "O status do projeto deve ser selecionado.")]

public object PropertyStatus { get; set; }

[RegularExpression (Regular Expression is blocked by ASP.NET Forum to prevent XSS)]

[Range(0.01, 200000.0, ErrorMessage="A área da propriedade, se fornecida deve ser um número decimal entre 0.01 e 200000")]

[DisplayName("Área Registro (ha):")]

public object Area { get; set; }

Area is a double in my Model. If I enter an invalid number for this field, I receive a standard MVC English error message on the error summary section of my page, and the regular express

SSRS AdHoc model project: Entity Name - lable problem



I have created AdHoc model project. I have few entities, designed as parent-child (to handle one to many and many to many relation)

Parent1 has Child_Entity11, Child_Entity12, Child_Entity13 and

Parent2 has Child_Entity21, Child_Entity22, Child_Entity23 and

Parent3 has Child_Entity31, Child_Entity32, Child_Entity33.

Parent1, Parent2 and Parent3 are connected to each other but not the other parent's child directly.


Now, when I deploy this model to report server and access in Report Builder 2.0, it looks good when nothing is on report design. but when I drag one field and when it will filter entity list and show only related entity only. then it's Child name label are not populating correctly. It is showing Child2, Child3 instead of ChildEntity11 or ChildEntity12.

Any help would be appreciated!

iframe model window problem


i am using the and model window



and demo



when we click on demo page i click outside the iframe

the iframe is close

what is the jquery  code for clicking  outside of the iframe then iframe is not close

and how can load iframe useing jquery ajex


Binding WPF Controls to an Entity Data Model

In this interview, programming writer, McLean Schofield, demonstrates how to bind WPF controls to an entity data model, using Visual Studio 2010 Beta 1. You can also learn more in the topic: Walkthrough: Binding WPF Controls to an Entity Data Model.

Model View Controller (MVC) for ASP.NET

Model View Controller (MVC) architectures, immediately wonder how the MVC pattern can be applied in an ASP.NET world. This article will demonstrate how the MVC pattern can be applied to an ASP.NET web application and still maintain the basic Microsoft supplied architecture.

Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

Dynamic Systems Development Model (DSDM) Methodology

The Dynamic Systems Development Model was developed in the U.K. in the mid-1990s. It is the evolution of rapid application development (RAD) practices. DSDM boasts the best-supported training and documentation of any of the agile software development techniques, at least in Europe. DSDM favors the philosophy that nothing is built perfectly the first time and looks to software development as an exploratory endeavor.

Overview of SharePoint Object Model

SharePoint offers a set of structured server-side objects those are widely used to program SharePoint Applications. These objects are hierarchically arranged and you can drill down through the object hierarchy to obtain the object that contains the components of SharePoint Application you need to use in your code.

Binding WPF Controls to an Entity Data Model

In this interview, programming writer, McLean Schofield, demonstrates how to bind WPF controls to an entity data model, using Visual Studio 2010 Beta 1. You can also learn more in the topic: Walkthrough: Binding WPF Controls to an Entity Data Model.

Regrading Sharpoint 2010 problem and solutions

We can write your question and problem on this blogger.you get ans.use.
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