|
Hi,
I want to change my screen color at runtime,help me..
|
|
|
|
|
jaraldumary wrote: I want to change my screen color at runtime,
which screen color ? are you talking about theme change ? if yes the try to learn about css and skin in asp.net. There are lots of link will be available on that in google .
cheers,
Abhijit
|
|
|
|
|
yes theme color,how to change the color of the form in runtime, or else send some links to learn..
|
|
|
|
|
your basic issue is that you need to understand ASP.NET. It's an engine for HTML, HTML is what the browser shows. So, you need to learn how to set the color of a page of HTML. The web abounds with such info.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
jaraldumary wrote: ,how to change the color of the form in runtime
Yaa..if this is single page application, that can be done easily, but for applying to all over the sites you need to learn about HTTPHandler.
Search google. Lots of example are there .
cheers,
Abhijit
|
|
|
|
|
do you want ot change it on any event?
Cheers!!
Brij
|
|
|
|
|
when the page is loading, the color of the form should be changed..
|
|
|
|
|
for changing the color at runtime
If your body tag defined as runat="server" then you can change the style of that screen by accessing the id of body tag at server side code.if you want change it on any event then code like this
body1.Style.Add("background-color","color id");
you can also change it on Page_Load event
Cheers!!
Brij
|
|
|
|
|
|
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
|
|
|
|