There are a button, radiobuttonlist, and dropdownlist control in my own page. And I set the AutoPostBack = true to the radiobuttonlist, and dropdownlist control. When the selectedItem of radiobuttonlist or dropdownlist is changed, the following action will be triggered:
and When the button is clicked, the following action is triggered:
What my problems are when you change the selected item of radiobutton or dropdownlist, It will prompts the file download dialog box. At that time, after I clicked "Save" or "Cancel", then click the button on the page. The result should print "hello" on the page. However, The result is prompting the "download" dialog box again. Why? Is that a bug in asp.net?
The following is my whole code
VB.NET:
Response.Redirect"www.lib.berkeley.edu/TeachingLib/Guides/Internet/limiting.pdf")
and When the button is clicked, the following action is triggered:
VB.NET:
Response.Write("hello")
What my problems are when you change the selected item of radiobutton or dropdownlist, It will prompts the file download dialog box. At that time, after I clicked "Save" or "Cancel", then click the button on the page. The result should print "hello" on the page. However, The result is prompting the "download" dialog box again. Why? Is that a bug in asp.net?
The following is my whole code
VB.NET:
Partial Class RadioTest
Inherits System.Web.UI.Page
Protected Sub RadioButtonList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButtonList1.SelectedIndexChanged
Response.Redirect("http://www.un.org/sc/committees/1518/pdf/List_of_Entities.pdf")
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Response.Write(sender.GetType)
End Sub
Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
Response.Redirect("http://www.un.org/sc/committees/1518/pdf/List_of_Entities.pdf")
End Sub
End Class