Disable The Controls Of One Web Form From Other

A

Ahmad Jalil Qarshi

Hi!


I have a problem while developing some webpages.The Problem is that:-
How We Can Disable The Controls Of One Web Form From Other Web Form In
Asp.net?

Explanation:-
There Should Be Two Web Form,Web Form1.aspx and Web Form2.aspx,Now From Web
Form1.aspx When I Click One Button (Disable), Then Web Form2.aspx Buttons
And Other Text Boxes Etc
Should Be Disable. Means Now After Clicking The Button(Disable) From Web
form1.aspx If I click any Button on Web Form2.aspx then That
Button Should not Clicked Means The Buttons Should be Disable OR Doesn¡¦t Do
Any Work On Web Form2.aspx as The Whole Form Should Now
Be Disable For Any Working.
Remember One Thing That The Both Forms,Web Form1.aspx
and Web Form2.aspx Will Open In Browser and When the Both are running Then I
Would Click on Web Form1.aspx¡¦s Disable Button to
Disable Web Form2.aspx And After Disabled The Web Form2.aspx Should be There
In Its Browser Means It Should not Closed But Remained Open. And In Same Way
When I Click Alive Button On
Web Form1.aspx Then The Disabled Form Web Form2.aspx Should be
Alive.Regards,Ahmad Jalil Qarshi
 
G

Guest

Hi!


I have a problem while developing some webpages.The Problem is that:-
How We Can Disable The Controls Of One Web Form From Other Web Form In
Asp.net?

Use a session object to determine which controls to disable?
 
Joined
Oct 19, 2024
Messages
1
Reaction score
0
Use a session object to determine which controls to disable?
To disable the controls of one web form from another, access the controls of the target form via JavaScript. Use document.getElementById or document.forms to select elements. Then, set the disabled property of each control to true, making the form uneditable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,056
Messages
2,570,446
Members
47,096
Latest member
noshit.sherlock

Latest Threads

Top