|
I don't see how this question makes any sense at all. If you don't access a cooke and/or your session object, then how are they 'enabled' ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi,
I have an asp.net page with update panel triggered with tick event of timer. The update panel contains 2 label controls and are used to show progress of a service running on the system.
I need a btn which should be disabled when the service is running and the task is in progress (onoff btn for service), otherwise when service is idle, it should be enabled. The btn is in a different portion of the page, so i added another updatepanel2 for it. i didn't assign any trigger to updatepanel2.
Now in tick event (trigger for updatepanel1), i want to enable/disable btn. Problem is that the btn gets disabled but it doesn't get enabled at tick event when service is idle. I hve tried all possible values for update mode of both the panels but couldn't solve this issue
Please provide help on how to solve this problem
Thanx in advance
|
|
|
|
|
When you're setting your button state also call updatepanel2.Update().
|
|
|
|
|
thanx.
Enable/Disable is working now, but after the button is enabled, it doesn't raise it's click event. Do i have to add a trigger for the event in the updatepanel.
|
|
|
|
|
Do you really need the extra update panel to set the button status? Couldn't this be accomplished with an Ajax call from the client-side? If I understand correctly all you need is a boolean response to set the disabled attribute on the button, correct?
only two letters away from being an asset
|
|
|
|
|
Hi
Thanx for replying. You are right that i need only a boolean response to enable/disable the btn. I am very new to ajax controls and am not familiar with ""Ajax call from the client-side". It would be nice of you, if u forward some more help on the topic.
Thanx
|
|
|
|
|
It doesn't involve an Ajax control, the controls just put a nice wrapper around Ajax functionality. Use a PageMethod in your code behind
[PageMethod]<br />
public static bool GetStatus()<br />
{<br />
return ?<br />
}
On the client-side
function CheckStatus()<br />
{<br />
btn.disabled = PageMethods.GetStatus();<br />
}
only two letters away from being an asset
|
|
|
|
|
Thanx
I am quite new to ajax and am unable to understand what to do with the code snippet u have forwarded me. it would be nice of you if u forward an article or may be a bit more detailed example.
Thanx again and sorry for inconvenience.
|
|
|
|
|
|
Thanx and sorry for inconvenience.
|
|
|
|
|
Wow - you sure got a lot of help for someone who doesn't even bother to upvote the people who answer. It seems to me like you're one of the army of people churning out outsourced websites, with no real idea of what they are doing. Why don't you rise above your peers, and buy a book or two and actually read it ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Well, I 5d you, you sure earned it.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
only two letters away from being an asset
|
|
|
|
|
oh, i am really sorry.
I appreciate and acknowledge all the help provided to me. Thankyou and thanks to all people who have helped me in this forum. I will try my best to acknowledge using rating from now...
Thankyou &
Sorry.
|
|
|
|
|
oh, i am really sorry.
I appreciate and acknowledge all the help provided to me. Thankyou to all people who have helped me in this forum. I will try my best to acknowledge using rating from now...
Thankyou &
Sorry.
|
|
|
|
|
Hello,
I am having a variable (of type Int32) declared in a SSIS package for which the value is passed as a parameter from the C# code when i am calling the package. I have also declared its scope as global variable for the package. There are three tasks which i am having in the package and all of them use the same variable. I have also given a default value as 0 (since it is of type int32) for the varibale.
Now when i run the package, for the first task it takes the value which is been passed as a parameter and executes the task well. But after that the variable gets reset to 0, which is the default value, and rest of the tasks execute for the value 0, which is wrong. Can anyone help me out in how to retain the value which is passed as the parameter to the variable throughout the package? Thanks in advance....
Benson
|
|
|
|
|
Hi All ,
I have one web site which is not ajax enabled and developed in vs2005 now we want to enable ajax i tried to find out the process in .net but i am not able to find out proper one can any one tell me about the process and where will i find the related software.
Thanks to all,
Amit Patel
|
|
|
|
|
Install the AJAX extension from here[^]
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Amit Patel1985 wrote: I have one web site which is not ajax enabled
Rubbish. Every website is 'AJAX enabled', AJAX happens in the browser, using javascript.
It would be wise for you to be one of the minority of people who actually understands what AJAX is, instead of blindly using a library. That you couldn't even google to find out where the ASP.NET AJAX library is downloaded from, does not give me hope.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Christian Graus wrote: blindly using a library
Very much true. People are so-much carried over by the so-called AJAX libraries that they are getting myopic and don't go a little deep into understanding what the technology that works behind it.
They just want to punch in a few keystrokes on the pretext of coding and enjoy an elusive escape.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
download the ajax extensions and install it
do the necessary settings in web.config
wrap ur controls in update panel
|
|
|
|
|
try here[^]
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
Hi All,
I have a Treviews cotrol which loads a menu from Database. I want the selected item of the menu to be separated by other menu items in color.
I have used a:active for this, but as soon as the page is loaded again it is going in the normal font. I want that a:active's color should be continued till the user selects another link.
Can anybody help me in this reagrds, it would be great help for me.
Thanks in advance,
Md Abdul Aleem,
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
I guess if you posted some code, we could try to work out what is wrong. If the postback changes it, I suspect it means you're not persisting which is the selected item.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi Christian,
Thats exactly right, I found it, the binding of the control is being called twice. So what I need now is I sould be able to maintain its selected status in postbacks. I am trying to do it as below
protected void treeId_Unload(object sender, EventArgs e)
{
new TreeViewState().SaveTreeView(treeId,
this.GetType().ToString());
}
It is saving the open and closing state of the menu but not saving the selected Item status.
Then I tried to set its seletedItem property as usual in .Net controls, but for TreeView that property is Read Only.
Please help me in this I would be really thankfull. Its killing all my time.
Thanks in advance,
Md Abdul Aleem,
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|