Click here to Skip to main content
15,910,009 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Plans, Guidelines and Decisions for a Charity Web Application Project Pin
Voulnet12-Oct-09 11:16
Voulnet12-Oct-09 11:16 
GeneralRe: Plans, Guidelines and Decisions for a Charity Web Application Project Pin
Not Active12-Oct-09 12:49
mentorNot Active12-Oct-09 12:49 
GeneralRe: Plans, Guidelines and Decisions for a Charity Web Application Project Pin
Voulnet12-Oct-09 14:21
Voulnet12-Oct-09 14:21 
QuestionFavicon problem? Pin
keyur satyadev12-Oct-09 2:56
keyur satyadev12-Oct-09 2:56 
AnswerRe: Favicon problem? Pin
Abhijit Jana12-Oct-09 3:09
professionalAbhijit Jana12-Oct-09 3:09 
GeneralRe: Favicon problem? Pin
keyur satyadev12-Oct-09 4:13
keyur satyadev12-Oct-09 4:13 
GeneralRe: Favicon problem? Pin
sashidhar12-Oct-09 5:54
sashidhar12-Oct-09 5:54 
Questiondynamic control in separate class Pin
dkosasih12-Oct-09 2:22
dkosasih12-Oct-09 2:22 
Hi All,
I have been stuck with this problem for a long time and have not found any solution.
suppose I have a page called a.aspx.vb and a class file called B.vb.
in a.aspx.vb I create a new instance of B:

protected sub page_load()
     dim cls as new B
     dim lit as new literal
     lit = b.createbutton
end sub



then say inside the B.vb I have:

protected function createbutton() as literal
     dim lit as new literal
     dim butt as new Button()
     'this is where my problem is
     addhandler butt.click, addressof method
     lit.controls.add(butt)
     return lit
end function



I want my code to do something on click. like...assign some value to some variables on a.aspx.
say again in the a.aspx I want
something like:

sub method
    'on button click
    dim something as string
    something = "the button has been clicked"
end sub


But obviously it won't work just like that. so how do I do that???

I hope this explains what I need. Thanks for helping in advance.
QuestionDBA Pin
AndyInUK12-Oct-09 2:10
AndyInUK12-Oct-09 2:10 
AnswerRe: DBA Pin
sashidhar12-Oct-09 2:32
sashidhar12-Oct-09 2:32 
AnswerRe: DBA Pin
keyur satyadev12-Oct-09 2:59
keyur satyadev12-Oct-09 2:59 
GeneralRe: DBA Pin
AndyInUK12-Oct-09 3:43
AndyInUK12-Oct-09 3:43 
GeneralRe: DBA Pin
Abhijit Jana12-Oct-09 4:32
professionalAbhijit Jana12-Oct-09 4:32 
AnswerRe: DBA Pin
David Mujica12-Oct-09 3:18
David Mujica12-Oct-09 3:18 
GeneralRe: DBA Pin
AndyInUK12-Oct-09 3:30
AndyInUK12-Oct-09 3:30 
AnswerRe: DBA Pin
Abhijit Jana12-Oct-09 3:20
professionalAbhijit Jana12-Oct-09 3:20 
AnswerRe: DBA Pin
chandni patel12-Oct-09 4:13
chandni patel12-Oct-09 4:13 
GeneralRe: DBA Pin
AndyInUK12-Oct-09 4:14
AndyInUK12-Oct-09 4:14 
GeneralRe: DBA Pin
Abhijit Jana12-Oct-09 4:31
professionalAbhijit Jana12-Oct-09 4:31 
GeneralIntellisense Simulator! Pin
tunsten12-Oct-09 1:52
tunsten12-Oct-09 1:52 
GeneralRe: Intellisense Simulator! Pin
Abhijit Jana12-Oct-09 2:04
professionalAbhijit Jana12-Oct-09 2:04 
QuestionHow to remove Request.QueryString from an URL paht in IE Pin
thomasa12-Oct-09 1:32
thomasa12-Oct-09 1:32 
AnswerRe: How to remove Request.QueryString from an URL paht in IE Pin
April Fans13-Oct-09 0:47
April Fans13-Oct-09 0:47 
QuestionHow to redirect on first and last page of gridview using object datasource? Pin
Ravi Mori12-Oct-09 1:26
Ravi Mori12-Oct-09 1:26 
AnswerRe: How to redirect on first and last page of gridview using object datasource? Pin
Abhijit Jana12-Oct-09 1:59
professionalAbhijit Jana12-Oct-09 1:59 

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.