Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form's "target=_blank" causing problem! Please help. 1

Status
Not open for further replies.

jaikanthn

Programmer
Sep 1, 2006
8
US
Hi,

I have a Form which has 4 user controls. The Forms <form> tag has "target=_blank" set. Hence, any submit in any user control opens up a new window. This is fine & as per the requirement.

Now, I have a new user control I want to add, but I don't want the submit in this user control to open up a new window. How do I handle this? Is there any way I can get rid of target property of the parent form selectively, dynamically?

Thanks in advance.
 
Yes, if you get a reference to the form, you can use the Attribute.Remove method.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top