|
Cheers!!
Brij
|
|
|
|
|
how to implement logarithmic functions in asp.net
|
|
|
|
|
How to use logarithms in asp.net
|
|
|
|
|
elci wrote: How to use logarithms in asp.net
How is it related with asp.net. Its just simply mathematical calculation.
cheers,
Abhijit
|
|
|
|
|
And besides, this is a crosspost
Regards,
Lev
|
|
|
|
|
You can't. ASP.NET is a framework for generating web pages, it has no knowledge of such things. Of course, it's built into C# and VB.NET but that not what you asked.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hello everyone...
i added GetPostBackClientHyperlink in ItemDataBound in ascx file and this is the code
Dim button As LinkButton = CType(e.Item.Cells(9).Controls(1), LinkButton)
If Not (button Is Nothing) Then
e.Item.Attributes("onclick") =
Page.ClientScript.GetPostBackClientHyperlink(button, "")
End If
and i got this error:
Invalid postback or callback argument. Event validation is enabled using
<pages enableeventvalidation="true"> in configuration or <%@ Page
EnableEventValidation="true" %> in a page. For security purposes, this
feature verifies that arguments to postback or callback events originate from
the server control that originally rendered them. If the data is valid and
expected, use the ClientScriptManager.RegisterForEventValidation method in
order to register the postback or callback data for validation.
please help how can i rid at this error
thanks in advance...
jyn
|
|
|
|
|
did you use AJAX on the page?
Cheers!!
Brij
|
|
|
|
|
thanks for your reply..
no, i didn't. i just added the above codes then when i click the grid, i got that error.
jyn
|
|
|
|
|
put EnableEventValidation as EnableEventValidation="false".
Cheers!!
Brij
|
|
|
|
|
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
|
|
|
|