|
hi all
i have master page and the content page, in my content page i show some product details in the gridview.there will be more product in the future, so i need to do is show some of product time to time without refresh the page (Asynchronously), i tried with using XMLHttpRequest request but how can set the timeout period for that, it should change details each 1 min in the page.
Pls help me to do this, What is the best way to do this
Thanks
|
|
|
|
|
|
hi
is there any control to do that in ajax, becous i want refresh those product details without any interact(without any user click any button).its should change the content automatically.
Pls reply to me this bit urgent.
Thanks
|
|
|
|
|
indSoftware wrote: is there any control to do that in ajax, becous i want refresh those product details without any interact(without any user click any button).
Yes !
Ajax Timer Control and Update Panel.
Have a look on my reply for details !
|
|
|
|
|
hii
Yes that right, this is working. thankss very much.
by the way cant we do that usign XMLHttpRequest, becous i think its light weight to the page also,this is just have a idea.
Thanks again
|
|
|
|
|
indSoftware wrote: by the way cant we do that usign XMLHttpRequest
Yes, That because AJAX is all about XMLHttpRequest
|
|
|
|
|
but scriptmanager holdd lots of resource of particular page,
what i mean using XmlHttpRequest is i tried with small javascript function create object of XmlHttpRequest and execute the page like that, but my problem is i couldn't give interval time to execute again that page.
|
|
|
|
|
You could quite easily do it using a javascript timer to control requesting every minute.
|
|
|
|
|
Explore UpdatePanel and Timer controls of Ajax and that will do your trick.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
hii
first of all i thank you very much for ur consider, yes this is wht i need.
but i hope to show some sliding way like using javascript when changing my content, i think i cant do that since im using this thanks again freind
|
|
|
|
|
I am agree what Blue_Boy suggested. You have to use AjaX Update Panel and TimerControl.
Bellow if the codesnippet, where I am updating the lblComments Value after a specific time
<asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer_Tick">
</asp:Timer>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" />
</Triggers>
<ContentTemplate>
<asp:Label ID="lblComments" runat="server"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
In the code behind
protected void Timer_Tick(object sender, EventArgs e)
{
// Set the label content data.
}
|
|
|
|
|
Good example to get clue for him/her.
Steps will be:
1 GridView inside UpdatePanel
2 TimerControl interval = 1minute
3 In Tick event of Timer bind GridView with select statement which is ordered by column's desceding
That's all.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
|
What are you trying to say?!
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Blue_Boy wrote: What are you trying to say?
Ohh..Sorry !! I was just asking to the person who vote your message as 1, though all of your points was valid .
|
|
|
|
|
Abhijit Jana wrote: who vote your message as 1
I'm glad that I can help to someone.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
hellow
Thanks this is working,
|
|
|
|
|
Ive been trying to find a way to access a drop down list value that is within the item template in a details view. This drop down list is conected to a database and i want to recover the value that is loaded when the page loads.
So can anyone help me with some clues on how to go about this??
|
|
|
|
|
Do this:
DropDownList ddl = (DropDownList)dtv.Rows[index].FindControl("ddlTemplate");
ddl gets the reference to the dropdown in the item template, i.e ddlTemplate.
Let me know how it goes.
|
|
|
|
|
yeah thanks that worked like a charm
now i get that find control returns the controls reference.
|
|
|
|
|
Glad that worked for you
|
|
|
|
|
Hi to All..!
Please Help me to solve my problem.
I have uploaded my website on server. In my web application i have used tree view whose nodes are filled through database. It is kept on Master Page. Database is also on the server. My Problem is When i open my website through server, after login, i switch to home page where tree view is loaded but cannot view the tree structure it shows the blank page only i can view the banner of my website where as the same project is on my IIS connected to the same database. Here i can view the tree structure and the contents of the home page.
So please tell me how to solve this problem.
Thanks!
.
|
|
|
|
|
Hello everyone,
I want to secure view source so that client can't copy it.
I want to restrict client to save pages, save view sources.
It is very urgent.
Pls help me. I shall be grateful to you forever.
Thank You
Vinod Kumar Prajapati
Software Engineer
EBC Publishing Pvt. Ltd.
|
|
|
|
|
Hi,
You cannot...
BTW why do you want to do that?
himanshu
|
|
|
|
|
vinodkrebc wrote: I want to secure view source so that client can't copy it.
I want to restrict client to save pages, save view sources.
You Can't
For More Info Read this Thread
vinodkrebc wrote: It is very urgent.
Not for all !!
modified on Monday, July 6, 2009 3:53 AM
|
|
|
|