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 8224755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:10:49+00:00 2026-06-07T15:10:49+00:00

How to open ShowModalDialog of Javascript from asp.net code behind (C#). Please provide me

  • 0

How to open ShowModalDialog of Javascript from asp.net code behind (C#). Please provide me the code if possible and one more thing which i want to mention that , i m using Script manager on my page from where i want to open the pop up.

  • 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-06-07T15:10:51+00:00Added an answer on June 7, 2026 at 3:10 pm

    call javascript function from code behind ….

    ClientScript.RegisterStartupScript(GetType(),"hwa","Samplefn();",true);
    

    write the following code …in javascript:

    function samplefn()
    {
     $("#dialog-form").dialog("open");
    }
    

    the above code used to open model dialog

    $(function() {
                $("#dialog-form").dialog({
                    autoOpen: false,
                    minHeight: 50,
                    position: [300, 50],
                    height: 'auto',
                    width: 400,
                    modal: true
                });
            }); 
    

    otherwise you can directly open model dialog from code behind..

       ClientScript.RegisterStartupScript(GetType(),"hwa"," $('#dialog-form').dialog('open');",true);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view in asp.net mvc 3, and I need to open it
Using showModalDialog or window.open in JS to open a URL from the same domain
I'm using dialog in my asp.net app, replacing of previously used 'window.showModalDialog' whats why
When open a query in Microsoft project, the start date changes. Please note that,
I open several files in Vim by, for example, running vim a/*.php which opens
open(my $fh, '>', $path) || die $!; my_sub($fh); Can my_sub() somehow extrapolate $path from
Bloomberg Open API announced recently - is it just the Bloomberg SDK which had
Which open source wysiwyg editor allows the functionality of uploading images to the server
As my current project demands: I'm developing an ASP.net 3.0 website with Internet Explorer
File open with fopen() fails when I provide a relative path. I am running

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.