|
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
|
|
|
|
|
Beware Univoter is active...He does not want to listen You Can't
himanshu
|
|
|
|
|
himanshu2561 wrote: Beware Univoter is active.
You got 1 again From him I believe.
|
|
|
|
|
Yes. He is
|
|
|
|
|
My requirement is to search the data from the database.But here one problem is whenever I click for search the data,It will take the trip to database server.Instead of that Is there any other solution where I can keep my data from database and search for it..
1.Is it possible to do with transfer the data to XML file and search in tht only?
2.Or there is another solution to do this?
Please help me..
|
|
|
|
|
Deepml wrote: 1.Is it possible to do with transfer the data to XML file and search in tht only?
Yes you can. at load time make XML and then search only that XML.
Deepml wrote: 2.Or there is another solution to do this?
You can use ajax to search data.
|
|
|
|
|
How can i use ajax for this??
|
|
|
|