Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I thought that if I had a checkbox, when it is clicked, it should postbaclk to the server. It is not working like that though, when you press the update button, then the checkbox is checked and the update to the form view is changed according to the checkbox. I want the change to take effect when the checkbox is clicked on like a windows app. Any ideas?

 

Thanks, Chester

____________________________________________

http://www.pophamcafe.com

I am starting a developers section, more tutorials than anything.

Posted

You might want to look in the properties area when you have the check box in focus and check to see what the AutoPostBack is set to. I am just starting to work with ASP.NET and C#, and noticed that is an option you have when you place a checkbox on the webform.

 

Naturally though I'd be careful about doing this since when the box changes you take a hit back to the webserver to update things.

 

Hope this helps out, and like I said, just working on learning this stuff myself so if I have spoken incorrectly those more knowledgable will have to let me know.

Ira Richard Smith

IraRichardSmith.Net

Posted
You might want to look in the properties area when you have the check box in focus and check to see what the AutoPostBack is set to. I am just starting to work with ASP.NET and C#, and noticed that is an option you have when you place a checkbox on the webform.

 

Naturally though I'd be careful about doing this since when the box changes you take a hit back to the webserver to update things.

 

Hope this helps out, and like I said, just working on learning this stuff myself so if I have spoken incorrectly those more knowledgable will have to let me know.

i'm not sure where your code is, but after a postback, what you want it to do then should go back to the page_load sub. it's really confusing, but try that.

Posted
i'm not sure where your code is' date=' but after a postback, what you want it to do then should go back to the page_load sub. it's really confusing, but try that.[/quote']

 

everytime you post back it automatically uses the page_load event, so you don't have to do anything special (except probably add a "if not page.ispostback then" if statement to the top of the sub)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...