|
|
hi friends
i have textbox .how can i pass another page in textbox value using querystring through javascript
this my javascript snipt
onclick=\"yih_idpop('check.aspx?');
how to add here in my textbox
regards
saravanan
|
|
|
|
|
you can do it in serverside code
Response.Redirect("'check.aspx?QueryString1=" + TextBox1.Text);
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Try with
Response.Redirect("'check.aspx?QueryString1=" + txtBox.Text);
Regards,
Satips.
|
|
|
|
|
Satips wrote: You can't do like this.
Why dude we can pass query string using javascript Whats the problem ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi Sandeep i have corrected it.
Regards,
Satips.
|
|
|
|
|
I thought you were suggesting not to use javascript thats why i asked
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Try This:
Assign the redirect() function to the onClick attribute of the button.
function redirect()
{
document.location.href = "check.aspx?t1=" + document.getElementByID("txtName").Value;
}
Regards,
Arun Kumar.A
|
|
|
|
|
Hi Freind
you can pass the Querystring from javascript in similar you used to pass in server side code
='check.aspx?QueryStringKey=QyerStringValue&QueryStringKey=QueryStringValue
Where QueryStringKey -> Key for query string
QyerStringValue -> Value that you wan to pass
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi this my code
if(oBw.ie5||oBw.ns6){document.write("<div id=\"instructions\" style=\"border: 1px solid #708090; background: #fff8dc; padding:4px; width: 200px;margin 0 0px 0;display:block\" align=\"center\" designtimesp=17632><input class=\"yihbtn\" type=\"button\" name=\"checkAvail\" value=\"Check Availability of UserName\" style=\"width:15em\" onclick=\"yih_idpop ('check.aspx?QueryString1=' + "txtuname.Text");return false;\" target=\"_blank\"></div>");}
it is not working
i dont need response.redirct .already i used in popup window
regards
saravanan
|
|
|
|
|
Yes i did say you to use Response.Redirect you can do it by using javascript
When are this calling this ? Where is the function ?
Only you want open a new window with query String value isn't it ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
i need to pass txtbox value onepage to another pop up window
|
|
|
|
|
Take a look now this should help you
var textBoxText=document.getElementById("TextBox1").value;
window.open('April24.aspx?QueryStrngValue='+textBoxText);
put this code in a function call that function when you want to open a new window
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi
In my application I a have many pages.So I thought of categorise pages to some groups and want to display their groups on the URL before the page name.
Ex:
http://localhost:1255/Website/Products/Pname.aspx
I have to insert Products/ in the URL in between Website and PName.aspx.
I think this can be done using URL Rewriting, but how?
Suggest me with an example.
Thank u
Chandu
|
|
|
|
|
|
Thanx for u r reply.
Do u have any one of ur example, I will start with that.
Thank u
Chandu
|
|
|
|
|
Get it[^].
Hope this will help you.
Regards,
Satips.
|
|
|
|
|
hi, you creat the categorise folder to your application. then put the categorise pages in categorise folder. the folder will show in the URL when visit the website
|
|
|
|
|
hi all,
i am doing a web application project using asp.net 2.0(vb).
i need to handle a scenario, when the user clicks on the browser's X button i need to prompt them with a popup message .
to handle this i have used the following code
---------------------------------------------------------------------------
function HandleOnClose() {
if (event.clientY < 0) {
event.returnValue = 'Are you sure you want to leave the page?';
}
}
-----------------------------------------------------------------------------------
it prompts the user with Ok and CANCEL button Message box.
when the user click the CANCEL button the page is not closed.
But if the user clicks on the OK button the window automatically closed.
Instead what i need to do is I have to open a popup window asking the user to fillup a feedback form when the user clicks on the OK button.
When the user submits the feedback the page should be closed.
can any one tell me how to handle the OK button click event on the above code to achieve my task.
Or if u know some other way help me.....
thank you all in advance
Regards
Senthilraj K
|
|
|
|
|
function unloadfun()
{
if (window.event.clientX < 0 && window.event.clientY < 0)
{
alert("in");
}
}
call this method in
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi Friend
i think calling javascript from unload function will have no meaning as you can't do anything as the page is unload event use onbeforeunload event there you have chance
Check this code i just tried and it working fine
function SomeFunctoin()
{
here i am checking 2 conditions
if(window.event.clientX > 500 && window.event.clientY < 0 || window.event.clientX > 1000 && window.event.clientY < 0)
{
var bool = confirm("Do you really want to close this window ");
if(bool)
{
// do the things that you want to do if user want to close the window
return true;
}
else
{
// do the things that when user don't want to close he window
return false;
}
}
call this function from
lt body onbeforeunload="return SomeFunctoin()"gt
-- modified at 4:41 Wednesday 20th June, 2007
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi Sandeep ,
i tried your code.its working finw for the if loop.
i.e
if(bool)
{
// do the things that you want to do if user want to close the window
return true;
}
but its not working fine for else part.
what i need to do is when they click cancel button in the confirm message box, i need to be in the same page.but the code closes the window for cancel option also.
give me the solution.
thanks
Regards
Senthilraj
|
|
|
|
|
hi all,
i implemented the concept.
we raised the issue to client and we changed the way of implementing it
thanks
|
|
|
|
|
A tracking device is sending data (in querystring format, suppose three parameters, p1, p2 & p3) to my server. How can read these data in ASP.NET?
|
|
|
|
|
Request.QueryString["p1"]
Request.QueryString["p2"]
Request.QueryString["p3"]
|
|
|
|