By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,481 Members | 3,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,481 IT Pros & Developers. It's quick & easy.

Default Button in Asp.net

P: 6
I have some buttons in grid which is used to open a model popup(inside grid) .
I included Form.DefaultButton = SaveBtn.UniqueId in my code.
Finally i have a save button(default btn) to save the content in grid. when i hit enter button inside the form only one time the default button works , second time i hit the enter button its not working. I have set all the buttons Submit behaviour to false expect Save button. Please Help. Only one time the code executes fine second time its not working i.e iam not able save my content ... SaveButton is not firing the second time ...
Jan 4 '09 #1
Share this Question
Share on Google+
5 Replies


debasisdas
Expert 5K+
P: 8,127
Question moved to ASP.NET forum.
Jan 4 '09 #2

P: 6
Pls help me in this issue.. see thread
Jan 4 '09 #3

Frinavale
Expert Mod 5K+
P: 9,731
In your aspx code, have you tried setting the DefaultButton Property there...

For example
Expand|Select|Wrap|Line Numbers
  1.  <form id="form1" runat="server" defaultbutton="Save">
I have a feeling that using the UniqueID is not correct....it should just be the name of the button as you've named it in the form.
Jan 5 '09 #4

P: 6
will ajaxpro2 will work in visual studio 2008..
iam using it in vs2005 and is working fine...
Apr 11 '09 #5

Frinavale
Expert Mod 5K+
P: 9,731
Try it and find out?

I would assume that the since it's AjaxPro [b]2[/u], it requires the .NET Framework version 2. You may have to configure your Visual Studio 2008 project to target that platform instead of the 3.0 or 3.5 Framework.

Best way to find out is to try it.

AjaxPro 2 developed by a 3rd party and it is highly unlikely that any of the experts on this forum have used it before, so it is unlikely that you will receive an answer to this question. Once you have found the answer please feel free to share it with the rest of us so that others with the same question can find the solution.
Apr 13 '09 #6

Post your reply

Sign in to post your reply or Sign up for a free account.