Question : Making baby steps with ASP.NET

I have been in the Winforms world so long, I can not even quickly see how to create a page with a label and a button.

I'd like the label to be given an initialization text on first showing.  I'd like to use the IsPostBack property of the Page to write different text the second time.  And I'd like a button to force the page to be "submitted" to the server.

Can someone please explain how to do this?

Thanks,
newbieweb

Answer : Making baby steps with ASP.NET

You put one button on your page. Write the below code in page load event to change the text of your label

If Page.Ispostback then
        lable1.text = "postback done on button click"
End If

Now you click on button. it will submit the page on server and write the above text on your label.
Random Solutions  
 
programming4us programming4us