如何在运行时传递参数服务器变量和文本框值 [英] How to pass the parameter at run time the server variable and the textbox value

查看:63
本文介绍了如何在运行时传递参数服务器变量和文本框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

这是我的客户端部分,我应该传递参数,这里strCompanyid是我在cs代码中使用的变量,最后一个参数txtcallerid应该是文本框值。



Hi all,
this is my client side part where i should pass parameter , here the strCompanyid is the variables which i use in cs code,and the last parameter txtcallerid should be the text box value.

<div id="tabs" >
<ul>
  <li><a href="#tabs-1">Preloaded</a></li>
    <li><a href="Grid.aspx?strCompanyid=<%= strCompanyid %>&strGelocationid=<%= strGelocationid%>&strRoleid=<%=strRoleid %>&strUsername=<%= strUsername %>>&txtcallerid=<%= strCallerid %>">Tab 3 (slow)</a>
    </li>
  <li><a href="accordioncheck.aspx">Tab 4 (broken)</a></li>
</ul>
</div>



jquery:


jquery:

$(function() {
   $( "#tabs" ).tabs({
     beforeLoad: function( event, ui ) {
       ui.jqXHR.error(function() {
         ui.panel.html(
           "Couldn't load this tab. We'll try to fix this as soon as possible. " +
           "If this wouldn't be a demo." );
       });
     }
   });
 });



Cs:


Cs:

protected void btnHistory_Click(object sender, EventArgs e)
   {
       fnLoadHistory(txtcallerid.Text);
--> after function only i need to set the parameter to the ahref:grid.aspx
       LoadListData();

     
   }


$ b函数fnLoadHistory(txtcallerid.Text)之后的$ b;只需要将参数设置为ahref:grid.aspx。

我在div中使用它,我不能将我的div设置为runat = server ,因为我的jquery不起作用。



请帮助我。


after function fnLoadHistory(txtcallerid.Text); only i need to set the parameter to the ahref:grid.aspx.
Iam using it inside my div, i cannot set my div as runat=server,because my jquery doesnt works.

pls helpe me out.

推荐答案

(function(){
(function() {


#tabs)。tabs({
beforeLoad:function( event ,ui){
ui.jqXHR.error(function(){
ui.panel.html(
无法加载此标签。我们会尽快解决这个问题。 +
如果这不是演示。) ;
});
}
});
});
( "#tabs" ).tabs({ beforeLoad: function( event, ui ) { ui.jqXHR.error(function() { ui.panel.html( "Couldn't load this tab. We'll try to fix this as soon as possible. " + "If this wouldn't be a demo." ); }); } }); });



Cs:


Cs:

protected void btnHistory_Click(object sender, EventArgs e)
   {
       fnLoadHistory(txtcallerid.Text);
--> after function only i need to set the parameter to the ahref:grid.aspx
       LoadListData();

     
   }


$ b函数fnLoadHistory(txtcallerid.Text)之后的$ b;只需要将参数设置为ahref:grid.aspx。

我在div中使用它,我不能将我的div设置为runat = server ,因为我的jquery不起作用。



请帮助我。


after function fnLoadHistory(txtcallerid.Text); only i need to set the parameter to the ahref:grid.aspx.
Iam using it inside my div, i cannot set my div as runat=server,because my jquery doesnt works.

pls helpe me out.


这篇关于如何在运行时传递参数服务器变量和文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆