|
but EnableEventValidation is for aspx file only.. im using ascx file
jyn
|
|
|
|
|
i am using nested update panels
updatepanel2 and inside it updatepanel1
i am trying to refresh update panel2 using following code.
__doPostBack('<%=btn1.ClientID%>','');
<asp:AsyncPostBackTrigger ControlID="btn1" EventName="Click" />
other values on page are cleared
i want to keep update panel 2 control values and want to refresh only panel1 please guide...
umerumerumer
modified on Saturday, December 20, 2008 3:00 AM
|
|
|
|
|
mr_muskurahat wrote: i am trying to refresh update panel2 using following code.
__doPostBack('<%=btn1.ClientID%>','');
<asp:asyncpostbacktrigger controlid="btn1" eventname="Click" xmlns:asp="#unknown">
Why in this way ? You can Change the UpdateMode to Conditional and update the panel as UpdatePanel2.Update() ,
cheers,
Abhijit
|
|
|
|
|
actually i want to refresh update panel from javascript not from server side...
updatepanel.update() is server side code.
umerumerumer
modified on Saturday, December 20, 2008 3:21 AM
|
|
|
|
|
mr_muskurahat wrote: updatepenel2.update(); is it a javascript function???
No.
Your Requirement is to update only updatepanel2 which is inside updatepanel1.
So, You can just simple do it.
Set The UpdateMode property of Both the panel to "Conditional" and then you can update any one of them when you wish by UpdatePanel1.update() or Updatepanel2.update()
It will update only particular panel. You don't need any JavaScript for that.
cheers,
Abhijit
|
|
|
|
|
actually i it is my limitation i m assigning some texbox and dropdown values from javascript so in such a case i need to update that panel from javascript server side is not my requirement
any ways thanks for reply.
umerumerumer
|
|
|
|
|
mr_muskurahat wrote: server side is not my requirement
oho... Sorry about that. I have just give an option.
mr_muskurahat wrote: need to update that panel from javascript
Ya..That can also be done.
onclick="__doPostBack('UpdatePanel2', '');"
But keep in mind , Set there UpdateMode="Conditional"
Just have a look ,This for your reference.
Easily refresh an UpdatePanel, using JavaScript[^]
Hope you will like it
cheers,
Abhijit
|
|
|
|
|
ok it works fine when i use with button can i use it independently???
without any button
just like __dopostback(updatepanel);
umerumerumer
|
|
|
|
|
mr_muskurahat wrote: without any button
just like __dopostback(updatepanel);
You need an event to fire it up na ??
cheers,
Abhijit
|
|
|
|
|
mr_muskurahat wrote: actually i want to refresh update panel from javascript not from server side...
updatepanel.update() is server side code.
When you are updating your post, don't erase original one. It can make the person wrong who answer it.
You had Written some thing like that
"is updatepanel.update() is javascript function " and I said No.
But now you have change your post totaly.
So rather than delete , just do like
This is my old post
[/Added] This my new post [Added]
cheers,
Abhijit
|
|
|
|
|
For refreshing updatepanel using Javascipt use _doPastBack as
__doPostBack('UpdatePanel2', '');
Cheers!!
Brij
|
|
|
|
|
it is doing full post back
umerumerumer
|
|
|
|
|
update panel1 start
some textboxes-----
updatepanel2 start
some controls here...
updatepanel2 closed
updatepanel1 closed
__dopostback('updatepanel2',''); update panel two is refreshed..
but problem it also refresh update panel1 i have set updatemode to conditional....
umerumerumer
|
|
|
|
|
As Abhijit replied,Tell me when you want to postback the updatepanel2 after any specific time or any click event.
Cheers!!
Brij
|
|
|
|
|
not on any click event i just want to raise it like __dopostback('updatepanelname','');
and actually which update panel i want to refresh through javascript is in another update panel and iusing syntax given above refreshes given update panel but also clears values of controls like textboxes which are placed inside parent update panel.
that is what i am facing right now and another thing when i remove parent update panel everthing works fine with full post back but i want to use parent ajax update panel aswell
umerumerumer
|
|
|
|
|
Hi All,
Being a novice in and have learned C# / ASP.NET for the past year , i would like to find out what is required to start up a good website.
Is there a checklist of things that I need to be able start a website for an idea I have, or is it better that I wait a few years after a few years experience and then pursue that path. Is there such a checklist for things that have to be met when designing a website, and if so what are they?
Kind Regards
|
|
|
|
|
CrimeanTurtle2008 wrote: what is required to start up a good website.
1 - A good concept
2 - A good hosting provider with enough bandwidth and HDD storage.
3 - Friendly UI and interactive design
4 - Database. I'd suggest SQL Server or MySQL.
CrimeanTurtle2008 wrote: or is it better that I wait a few years after a few years experience and then pursue that path
No. Start straight away. That is the best way to get expertise.
|
|
|
|
|
So it doesnt really matter how much experience you have?
If my coding skills are not superior then does it still matter?
Ie if I have basic coding skills then is that suffice?
|
|
|
|
|
It matters when you are developing a website for a customer which is going to help them for their business or something like that. But it doesn't really matter if you are doing it for learning. And that is the best way to learn things.
All the best
|
|
|
|
|
Thanks very much for the advice! Navaneeth
|
|
|
|
|
You are welcome
|
|
|
|
|
Well, I would say that so long as you're willing to learn, and remember you can ask questions here when you get stuck, the only way it matters is that it might take you a bit longer than someone more experienced to get things the way you want them to. The core thing is that you have a great idea and the willingness to work until your execution of that idea is to a good standard.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: I would say that so long as you're willing to learn
That's is the important point and most of the posters here are missing this
|
|
|
|
|
Yeah, it's really exciting to see someone who wants to learn instead of to be given code they are being paid to write.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thats the thing, I try to learn it myself then if I get stuck then I resort to asking someone, and try to learn it again.
|
|
|
|