Passing value to other form
-
Hello All, I am using following hyperlink code to open a popup window using javascript. <pre><a href="javascript:;" onClick="window.open('SearchBOM.aspx','myWin','scrollbars=yes,width=500,height=500,resizable=no');" >Search</a></pre> I want to pass a querystring to SearchBOM.aspx page based on the value entered in a textbox. How can i achieve this? Thanks, Nagendra.
-
Hello All, I am using following hyperlink code to open a popup window using javascript. <pre><a href="javascript:;" onClick="window.open('SearchBOM.aspx','myWin','scrollbars=yes,width=500,height=500,resizable=no');" >Search</a></pre> I want to pass a querystring to SearchBOM.aspx page based on the value entered in a textbox. How can i achieve this? Thanks, Nagendra.
Why dont you use a Session for this ?
Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/
-
Hello All, I am using following hyperlink code to open a popup window using javascript. <pre><a href="javascript:;" onClick="window.open('SearchBOM.aspx','myWin','scrollbars=yes,width=500,height=500,resizable=no');" >Search</a></pre> I want to pass a querystring to SearchBOM.aspx page based on the value entered in a textbox. How can i achieve this? Thanks, Nagendra.
nagendrathecoder wrote:
onClick="window.open('SearchBOM.aspx','myWin'
Use this
="window.open('SearchBOM.aspx?id=1&name=xyz','myWin'
You can create a variable called parameter and add you query string to this and use following code..>="window.open('SearchBOM.aspx?" & parameter & "'" ,'myWin'
Be an Eagle, Sky is Yours.
-
Hello All, I am using following hyperlink code to open a popup window using javascript. <pre><a href="javascript:;" onClick="window.open('SearchBOM.aspx','myWin','scrollbars=yes,width=500,height=500,resizable=no');" >Search</a></pre> I want to pass a querystring to SearchBOM.aspx page based on the value entered in a textbox. How can i achieve this? Thanks, Nagendra.
Create a JavaScript function and use it.
<[ * * * only two letters away from being an asset ](MyClickHandler...)
-
Hello All, I am using following hyperlink code to open a popup window using javascript. <pre><a href="javascript:;" onClick="window.open('SearchBOM.aspx','myWin','scrollbars=yes,width=500,height=500,resizable=no');" >Search</a></pre> I want to pass a querystring to SearchBOM.aspx page based on the value entered in a textbox. How can i achieve this? Thanks, Nagendra.
nagendrathecoder wrote:
[Instead call javascript function on onClick of link
function OpenWindow()
{
var txtValue=document.getElementByID('textboxid').value;
window.open('SearchBOM.aspx&searchvalue=' + txtValue,'myWin','scrollbars=yes,width=500,height=500,resizable=no');}
HTH](javascript:;)
[Coding C#](javascript:;) ExciteTemplate
-
Why dont you use a Session for this ?
Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/
I declared a session variable as follows but its not showing value in next page.
<%Session["strSearch"] = txtSearch.Text;%>
-
I declared a session variable as follows but its not showing value in next page.
<%Session["strSearch"] = txtSearch.Text;%>
Why don't you do this on the Server Side ?
Session["strSearch"] = txtSearch.Text;
Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/