Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
One aspx page has 2 sections, left section has static content say images. On load of this page I populate all of the data related to this page from sqlserver into a dataset.

on click of image1 from dataset based on a condition data needs to be filtered and shown in the grid on right hand side of the page. This has to happen without postback.

conditions vary depend on image.

Eg: data
ID Name URL GROUP
1 A a.aspx 1
2 B b.aspx 1
3 C c.aspx 1
4 D d.aspx 2
5 E e.aspx 2

upon click of image 1 the grid should show A,B,C in grid
and D,E when image 2 is clicked.

The most important thing here is it should happen without postback.

Regards
Posted
Comments
Sandeep Mewara 14-Jul-10 10:43am    
What do you mean by without postback here? What about using Update Panel?
perilbrain 14-Jul-10 23:24pm    
FIRST AND THE STRONGEST OPTION AJAX.NET
OTHERWISE USING SIMPLE JAVASCRIPT TRY,
"XMLHTTPREQUEST"
<code>function postdatain_background(var1,var2)
{
    oHttp = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
    oHttp.open("GET","www.yourpage.com?arg1="+var1+"& arg2="+var2, false);
    oHttp.send();
    
}


var1 and var2 are javascript variables or the custom elements that you want to post back

1 solution

FIRST AND THE STRONGEST OPTION AJAX.NET
OTHERWISE USING SIMPLE JAVASCRIPT TRY,
"XMLHTTPREQUEST"
function postdatain_background(var1,var2)
{
    oHttp = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
    oHttp.open("GET","www.yourpage.com?arg1="+var1+"& arg2="+var2, false);
    oHttp.send();
    
}


var1 and var2 are javascript variables or the custom elements that you want to post back
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900