|
blooper02 wrote: Do you or others in the developement field face this problem?
This is not a problem. Actually we are discussing about which is the right way to do such a thing. my point here is it's unnecessary to have 2 server-round trips to save the data.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi Jon,
I feel that your advice is correct.
Therefore I tried to call the confirm box at OnClientClick.
My Server Validation still runs and triggers fine. But my Validation controls like regular expressions validator did not fire. You know why?
thanks
|
|
|
|
|
Check Whether the CausesValidation Property of the Button Control is set to True
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi Jon,
Yes it is set to true....
But it just does not fire...
Any other possibilities?
|
|
|
|
|
Are you calling any JavaScript function on the Button Click? If yes then it will skip the script validation of the validation Controls. One Alternate to this problem to add the following Code at the end of JavaScript function which you have written.
if (typeof(Page_ClientValidate) == 'function'){ <br />
Page_ClientValidate();<br />
return true;<br />
}
This will call the JavaScript Validation code generated for the Validation Controls.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi Jon,
I am putting the code as
return confirm('Do you want to confirm this application?');
in the onclientclick property as in the visual studio GUI.
I hope to be able to do it this was as I will be using more of the confirm boxes for my buttons in my gridview.
|
|
|
|
|
Yes Yes Yes Finally....
It should be like this:
<asp:button id="btnUpdate" runat="server" causesvalidation="true" commandname="Update" text="Update" validationgroup="EditValidate" onclientclick="if (!confirm('Update?')) return false">
Solution courtesy of :
http://aspalliance.com/699_Solving_the_Challenges_of_ASPNET_Validation.6
Finally after 2 weeks.....zzzzzzz
|
|
|
|
|
I have web site with Macromedia Flash menu. After clicking on each menu item I would like to display different page, but I want to avoid redrawing flash control after each postback. What is the best way to achieve this ? I dont want to use frames.
|
|
|
|
|
hi friend
I am not sure about this but using AJAX may solve this problem so each time you click menu item the page will not refreshed from the server and you can avoid redrawing flash control.
Prakash Mishra(Banglore,India)
|
|
|
|
|
Yes I was thinking about this as probably the best solution, but I'm not sure how to implement this. I was hoping somebody points me to some good tutorial as I colud not find any.
|
|
|
|
|
You can't find a tutorial on Ajax techniques?
17 million of them here...[^]
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Well all tutorials on Ajax I found show how to get some data asynchronnly. But there is none to show how to asynchonnly redraw whole page except some part (for example my flash menu). I'm not wery strong in ASP.Net, I do mostly Winforms development so I need "good description" .
|
|
|
|
|
hi there
can any one help to create the database driven menus in asp.net
thanks in advance
|
|
|
|
|
which version of ASP.NET are you using?
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
|
|
Hi,
you have to get datafrom database and have to add MenuItem at runtime.
and if Item contains child Items then when creating New MenuItem, you have to add all child items in that MenuItem.
Hope this will help you.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
Hi..
I have a user control . in that i have a text box..
in a web form i am using another text box and button.. along with user control.
now as soon as i type the text in user control text box, and click the button in web form , the text should be displayed in web form text box..
I am able to do it using Session..
Is there any other option of getting done??
Aswini
|
|
|
|
|
aswini07 wrote: Is there any other option of getting done??
TextBoxweb.text = Ctype(ucl.FindControl("textBoxcul"),TextBox).Text
Session Objects are not meant for assigning value from one textBox to another. I recommend you to read a good ASP.NET Book to learn how to do such a thing.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi,
Write a public property for the user control
Sherin Iranimose
|
|
|
|
|
Hi friends,
I am using datalist controls.I want to access that control using javascript.Is it possible ? How can do this. plz help me
Thank& Regards
Vijay s
|
|
|
|
|
A datalist control will be rendered as HTML table or div tags. Why do you want to access them through JS ?
|
|
|
|
|
Because I am using checkbox in DataList.If i click checkall button all checkbox are selected.I have done this in server side.but i like to do this in client side
Thank& Regards
Vijay s
|
|
|
|
|
Vijayitsb wrote: but i like to do this in client side
In the "Check all" check box call a JS function from Onclick event. Loop through all datalist records and check the other checkboxes. To get how many rows datalist have, keep a public variable and assign the row count to there. You can take this variable value to JS and start loop.
|
|
|
|
|
Hi,
can you explain for what purpose you want to do so ?
Descriptive message plz....
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|