Click here to Skip to main content
16,006,006 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: about TreeView in .net 2005 Pin
prameelapydi14-Nov-06 16:47
prameelapydi14-Nov-06 16:47 
GeneralRe: about TreeView in .net 2005 Pin
Grapes-R-Fun15-Nov-06 3:11
Grapes-R-Fun15-Nov-06 3:11 
QuestionReports based on xml Pin
ManickaSudar13-Nov-06 16:53
ManickaSudar13-Nov-06 16:53 
AnswerRe: Reports based on xml Pin
Christian Graus13-Nov-06 17:20
protectorChristian Graus13-Nov-06 17:20 
QuestionMouselick Event Pin
Manithar13-Nov-06 16:12
Manithar13-Nov-06 16:12 
AnswerRe: Mouselick Event Pin
Not Active13-Nov-06 16:16
mentorNot Active13-Nov-06 16:16 
QuestionHow to access cell values in GridView in edit mode? Pin
HappyASPNETCoding13-Nov-06 15:08
HappyASPNETCoding13-Nov-06 15:08 
QuestionButton Click Pin
shapper13-Nov-06 13:57
shapper13-Nov-06 13:57 
Hello,

I am creating a custom control where I have a button.
Somehow my button click event is not being raised.
I tried to place different codes inside MyButton_Click and nothing runs.
Then I added Context.Response.Redirect("http://www.google.com").
When I click the button postback is done but the page google is not called.

I am on this for days. I looked everywhere in Google and everything seems ok.

Could someone, please, tell me what to do to try to figure what is the problem?

I don't know what else to try.

Thank You,
Miguel

Here is my code:
...
Public Class Contact
Inherits WebControl

Dim MyButton As New WebControls.Button

Private Sub MyButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Context.Response.Redirect("http://www.google.com")
End Sub

Private Sub MyButton_Init(ByVal sender As Object, ByVal e As System.EventArgs)
MyButton.ID = Me.ID & "_bSubmit"
MyButton.Text = "Submit"
End Sub

Protected Overrides Sub CreateChildControls()
AddHandler MyButton.Init, AddressOf MyButton_Init
AddHandler MyButton.Click, AddressOf MyButton_Click
MyBase.Controls.Add(MyButton)
MyBase.CreateChildControls()
Me.ChildControlsCreated = True
End Sub

End Class
AnswerRe: Button Click Pin
Not Active13-Nov-06 16:07
mentorNot Active13-Nov-06 16:07 
Questioncalendar deselect date Pin
ozeegers13-Nov-06 12:40
ozeegers13-Nov-06 12:40 
AnswerRe: calendar deselect date Pin
minhpc_bk13-Nov-06 13:56
minhpc_bk13-Nov-06 13:56 
QuestionCan't display file in Browser. Need help please! Thank you. Pin
shapper13-Nov-06 12:19
shapper13-Nov-06 12:19 
QuestionEmbed resource Pin
shapper13-Nov-06 10:47
shapper13-Nov-06 10:47 
AnswerRe: Embed resource Pin
Not Active13-Nov-06 16:13
mentorNot Active13-Nov-06 16:13 
QuestionLogin Pin
eagertolearn13-Nov-06 6:57
eagertolearn13-Nov-06 6:57 
AnswerRe: Login Pin
Sam Heller13-Nov-06 13:02
Sam Heller13-Nov-06 13:02 
GeneralRe: Login Pin
Not Active13-Nov-06 16:10
mentorNot Active13-Nov-06 16:10 
QuestionASP.Net 1.1 with AJAX Pin
madnar13-Nov-06 6:55
madnar13-Nov-06 6:55 
AnswerRe: ASP.Net 1.1 with AJAX Pin
indianet13-Nov-06 8:03
indianet13-Nov-06 8:03 
GeneralRe: ASP.Net 1.1 with AJAX Pin
Sam Heller13-Nov-06 12:51
Sam Heller13-Nov-06 12:51 
QuestionCatching Embedded Events Pin
Sam Heller13-Nov-06 6:07
Sam Heller13-Nov-06 6:07 
AnswerRe: Catching Embedded Events Pin
indianet13-Nov-06 8:14
indianet13-Nov-06 8:14 
QuestionCreate DataGrid from Excel File Pin
alexfromto13-Nov-06 5:59
alexfromto13-Nov-06 5:59 
AnswerRe: Create DataGrid from Excel File Pin
Sam Heller13-Nov-06 6:10
Sam Heller13-Nov-06 6:10 
GeneralRe: Create DataGrid from Excel File Pin
alexfromto13-Nov-06 6:16
alexfromto13-Nov-06 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.