Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4567162
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:53:29+00:00 2026-05-21T18:53:29+00:00

I have an mvc project with a jqgrid that has an editting column, my

  • 0

I have an mvc project with a jqgrid that has an editting column, my problem is when i Try to link the edit in each row to a pop up window, when I add the code below a window pop up opens but I recieve a 402 unothorized error, here is my code in the controller

var jsonData = new
        {
            total = totalPages,
            page = page,
            records = totalRecords,

            rows = (
              from item in items

              select new
              {
                  id = item.Id,
                  cell = new string[] { 
                    "<A HREF=javascript: void(0)  onclick=window.open

                 ('/Views/viewname/Edit/'+"item.code+",'Edit','width=700,height=800'); >Edit</A>",

                            column2,
                           column3,
                           etc ...}
              }).ToArray()
        };

but if I just link the edit to a regular page through this code

var jsonData = new
        {
            total = totalPages,
            page = page,
            records = totalRecords,

            rows = (
              from item in items


              select new
              {
                  id = item.Id,
                  cell = new string[] { 
                    "<a href=viewfolder/Edit/"+item.Code +">Edit</a> "  ,
                            column2,
                           column3,
                           etc ...}
              }).ToArray()

I do not have any problems, I have a edit page which works fine if it is not a pop up window, has anybody faced this problem, or can anyone direct me to an example that is similar.Thnaks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T18:53:30+00:00Added an answer on May 21, 2026 at 6:53 pm

    Have you tried with quotes around your href and onclick attribute values?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MVC project that has a Linq to SQL dbml class. It
I have an MVC project that I would like to write in .NET 4.0
Facts I have an mvc project. I am using jquery. The problem $('#ModalData').empty(); is
I have a mvc web project where I try to render a list of
I have set up jqGrid with JSON in my .Net MVC project. The grid
I have this sample MVC project using jQuery grid. There is only one problem
I have started an MVC project and it has created the AccountController Class for
I have MVC project on Windows Azure. This project has WebRole with method OnStart.
I have a MVC project that uses foo.dll, but that foo.dll uses smu.dll so
I have standart MVC web project that register routes in global.asax. My MVC project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.