.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 popup problem

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

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


View Complete Post

More Related Resource Links

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 when displaying a popup window

Hi all,
I am working on a project in which when I clicked a hyperlink a pop up window has to be displayed for 2 pages.
But at first when i did this in javascript it worked, later after i finished the whole coding suddenly an error box displayed that there is an error in webpage and want to debug

Dropdown model popup in MOSS site



In MOSS site, if we click on MyLinks, it shows model pop(Dropdown). My requirement is to provide on one ASP.NET drodowm control and on click on that, the same window should open which comes if you click on MyLinks link.


How to achieve this? Please suggest

model popup open very slow with gridview

hi i m using a model pop up to take input and show data. I place it on my master page. As i add a gridview with more than 20 rows it start taking time in opeing. as row increase time also increase.   plz help me.

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 Extender


hi all

i have used a model popup extender for a login screen

here are the codes

<asp:LinkButton ID="loginbtn" runat="server" Text="Login"></asp:LinkButton><asp:LinkButton
                    ID="logoutbtn" runat="server" Visible="false" PostBackUrl="~/UI/Pages/Customer/SingOutCustomer.aspx">Log Out</asp:LinkButton>
                <cc1:ModalPopupExtender ID="loginbtn_ModalPopupExtender" runat="server"
                    DynamicServicePath="" Enabled="True" TargetControlID="loginbtn" CancelControlID="ImageButton1" PopupControlID="Panel1" BackgroundCssClass="modalBackground" DropShadow="true">

<asp:Panel ID="Panel1" runat="server">

Model Pop Up Problem 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

Problem with a Javascript Popup Window Minimizing itself


I am new to Javascript.  I have seen other posts about this, but I have not been able to resolve my problem. I have a WebPage that allows a user to click a LinkButton. When the LinkButton is clicked. I execute the following Javascript code after registering the ClientScriptBlock:

<script language='Javascript'>
PopupWindow = window.open('StandardImageLookupPage.aspx','PopupWindow');
PopupWindow.resizeTo(screen.width, screen.height);

No matter what I do the popup window comes up for a brief second and then minimizes itself. I prefer that the window stays maximized.

I am stumped. Any help would be much appreciated.

ps. I am not sure if this makes a difference, but the WebForm that calls this javascript is a user control.

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..

ToolTip popup Problem


<script type="text/javascript">

        $(document).ready(function () {

            $('.show-tooltip').each(function () {

                $(this).hover(function () {

                    $(this).after($('<span id=\"stest\"/>').attr('class', 'show-tooltip-text').html($(this).attr('title'))).attr('title', '');


               function () {







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

model popup position



i want to set the relative postion of model popup

i mean to say, as popup extender display popup just beside its target control id

i want to do the same for model popup extender

plz help its urgent


drop down list in modal popup problem


i have a drop down list in modal popup extender.... modal popup appears on click of a link button which is inside grid view..

update panel is for entire grid view... problem is that other control's postback event is not getting fired because of drop downs in popup...when i comment the code for drop downs other links' on click event gets fired...but as soon as insert drop down code...click event is not fired...

what might be the solution...

any help??

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

Problem with the modal popup within a asp updatepanel


Where is the Problem with the popup within a asp updatepanel.

It works fine in IE8. But in FireFox (Version 3.6.11) it works only sometimes.

ASP-Control for PopUp (PopUp.ascx):

<asp:UpdatePanel ID="UIUpdatePanel" runat="server" UpdateMode="Conditional">
			<div class="sectionheader">
				<asp:Label ID="UILabelHeadLine" runat="server" />
			<table class="exportPopupTable">
					<td style="width:200px;">
						<asp:RadioButton ID="UIRadioButton1" runat="server" Checked="true" />
					<td rowspan="6" class="helptextcolumn">
						<asp:Label ID="UILabelInfoText" runat="server" />
						<asp:RadioButton ID="UIRadioButton2" runat="server" />
					<td align="right" colspan="2">
						<asp:Button ID="UIButtonOk" runat="server" OnClick="UIButtonOk_Click" ValidationGroup="FinishDateTime" />
						<asp:Button ID="UIButtonCancel"
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