iframe src assignment problem (server side)

iframe src assignment problem (server side)
I encountered this problem today. I reassigned the src value of the iframe on the server side, added an ID to the iframe, and added runat=server

1. Assign a value to the src of the iframe via JS

2. If you need to change the src of the iframe when the page is loaded in the C# background, you can do

For example, <iframe id="ifram" runat=server > is applied as a server-side control and written in the program

Copy code
The code is as follows:

ifram.Attributes.Add("src",strUrl);

strUrl is a string and can be assigned any value.

<<:  MySQL Router implements MySQL read-write separation

>>:  Detailed explanation of the spacing problem between img tags

Recommend

A brief understanding of the differences between MySQL InnoDB and MyISAM

Preface MySQL supports many types of tables (i.e....

Talking about ContentType(s) from image/x-png

This also caused the inability to upload png files...

Detailed explanation of the use of filter properties in CSS3

Recently, when I was modifying the intranet porta...

CSS sets the box container (div) height to always be 100%

Preface Sometimes you need to keep the height of ...

CSS 3.0 text hover jump special effects code

Here is a text hovering and jumping effect implem...

KTL tool realizes the method of synchronizing data from MySQL to MySQL

Use ktl tool to synchronize data from mysql to my...

Samba server configuration under Centos7 (actual combat)

Samba Overview Samba is a free software that impl...

Linux Disk Quota Management Graphical Example

Disk quota is the storage limit of a specified di...

How to solve the 10060 unknow error when Navicat remotely connects to MySQL

Preface: Today I want to remotely connect to MySQ...

Linux Check the installation location of the software simple method

1. Check the software installation path: There is...

How to strike a balance between ease of use and security in the login interface

Whether you are a web designer or a UI designer, ...

Why is the scroll bar on the web page set on the right?

Why are the scroll bars of the browsers and word ...

Detailed explanation of the use of this.$set in Vue

Table of contents Use of this.$set in Vue use Why...