In your form load event you can check the IsPostBack variable. It is set to true when the page posts back to the web server. Each individual button probably should have it's own onClick event in your code behind.
I have a textbox that was firing Text_changed event when the user press Enter.but now it is not firing any more.But the handler for this event is executed when a postback occur(for example when I click a button).
The only change I made it was putting the asp:textbox in a <DIV> instead of a <table><tr><td>.
I observed when I press enter in the textbox I hear a sound(one of the windows usual sounds).
Could any one tell me how to solve this problem and make it working as before(when the user press Enter)?
If it used to work it was by error. The enter key was probably causing a button to get pressed, since that what it does on the web. I would guess a one point that button didn't have any code in your code behind so you didn't notice it. What you are trying to do doesn't work.
I need help, I am trying to print results loaded into a Datalist and I have not been able to make any headway. The datalist is loaded from a query and has the option of displaying detailed info or summary. I would like to print out (which ever is selected) the results as they are in the datalist.
I have a textbox, that records the file names of upload files, and seperates it out with a , I would like to create an array that would read this text box, and seperate it out, so I can create a link for each file. I could really use some examples in code. My codebehind is C#
If I understood any of this, I imagine I'd be in good shape. Pardon me, I've only been using .net for about 3 months before, that had never developed anything, and was given a full blown, huge ass project by my work, they know I can't code C# and I am still learning, they just elinated my job... I hate to be a pain in the ass, but could you explain a little further?
Thank you, and I am glad your willing to help such a newb like myself, but believe me, I am trying to help myself at the same time. Thanks for links to articles on this, will most definately read. I found some good help in my Visual C# .Net book as well.
This is going to be great for my upload on my main form that they upload on, but for the page I am doing this on, its just to view, they will not be allowed to upload any files, just vewing files attached to a helpdesk record.