Click here to Skip to main content
15,906,567 members

Comments by Sajad Taheri (Top 5 by date)

Sajad Taheri 26-May-14 13:22pm View    
smruti,I get value of textbox using js in Master page by this code:
<head>
<script type="text/javascript">
function basicPopup() {
var text = document.getElementById('text1').value;
var url = "search.aspx?search=" +text;
popupWindow = window.open(url, 'popUpWindow');
}
</script>
</head>

<body>
<div style="margin-removed 5px; float: left">
<form name="searchform" method="get" class="searchform">
<input type="hidden" name="do" value="search" />
<input type="hidden" name="subaction" value="search" />
<input name="story" id="story" type="text" />
<button type="submit" önclick="basicPopup()">search</button>
</form>
</body>
now when for example search "smruti" in search box in master page,my browser redirect to this address in search.aspx page:
http://localhost:2391/search.aspx?search=smruti
i get get the value of text using javascript...now how bind grid view and text(top url)?!
(As I said before search.aspx page works fine separate)
Sajad Taheri 26-May-14 11:01am View    
No i use java/jquery only in gallery slide show(light box)and change background text box...
Sajad Taheri 26-May-14 6:17am View    
i don't have code behind in master page(i use html tags). where i insert this code:

Response.Redirect("~/SearchResult.aspx?name=smruti");

how i can Put the search criteria into query string?

how i can bind the grid view with the result data?

this is my grid view in search.aspx page:

http://8pic.ir/images/24063714045552871721.jpg

I apologize smruti,im so beginner...TNX
Sajad Taheri 26-May-14 2:48am View    
thanks my friend,please give me code of your 3steps(prefer by query string)
Sajad Taheri 25-May-14 18:00pm View    
thanks.I improved my question...