13
Answers

How to open different forms with multiple radio button in C# GUI

Nits

Nits

13y
7.5k
1
I have created a simple form on which I have given two radio buttons & 1 button. So by selecting either of the radio buttons I want to open another two forms respectively on button click. 

I have tried but it opens only 1 form by selecting any of the radio button, So any help????
Answers (13)
0
Sandeep Singh Shekhawat
NA 22.4k 12m 12y
Server is property under "System.Web.UI" namespace and class is "Page". So are you sure that here we are using Page class (Inherit) of "System.Web.UI" namespace.

When we are working on .aspx.cs page that time this *.aspx.cs inherits System.Web.UI.Page class so we get Server.MapPath.

So please make sure that in your page you are using System.Web.UI.Page.

***************************************************************
Hi,

As per my understanding you are using Server.MapPath in your static method so Server.MapPath will not come in static method. 

Please check your method should not be static where you are using Server.MapPath.