微博第三方登陆时获取不到code值

就是划横线的那,我的授权地址是这样的https://api.weibo.com/2/oauth2/authorize?client_id=3678297756&redirect_uri=http://www.sina.com&response_type=code 不知道怎么解决。有没有人帮我啊,不胜感激。虽然我没有C币~图片

3个回答

不高兴,没人告诉我,呜呜~(>_<)~

解决了吗?没解决我给你讲,我毕业设计就用到了新浪微博API。已经能完全使用微博API了,有问题可以问我。

weixin_35517783
weixin_35517783 没解决,我怎么请教你啊,要不加个微信吧。2542148322
大约 3 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
php微博第三方登陆
简单实现php微博第三方登录功能:在config.php中填入key和secret,以及回调地址,可以weibolist.php查看微博用户信息。
laravel 实现微博第三方登陆
1: 首先到新浪微博申请加入开发者: http://open.weibo.com/ 右上角登录,登录后点击右上角头像,选第一个编辑开发者信息并提交审核 然后导航栏 微连接-&amp;gt;网站接入-&amp;gt;立即接入,添加一个应用 导航栏,我的应用-&amp;gt;应用信息-&amp;gt;高级信息 如果只是个人练手第三方登陆,可以不进行审核等操作,你会得到一个...
微博第三方登陆实现
1 引入基础pom文件 &amp;lt;dependency&amp;gt; &amp;lt;groupId&amp;gt;com.belerweb&amp;lt;/groupId&amp;gt; &amp;lt;artifactId&amp;gt;weibo4j-oauth2&amp;lt;/artifactId&amp;gt; &amp;lt;version&amp;gt;2.1.1-beta2-...
微博第三方登陆的实现
1,注册新浪微博账号,搜索微博开发者平台(http://open.weibo.com/),点击登陆。 2,注册开发者 注册进行“开发者注册”(如果没跳到“开发者注册页面”,将鼠标放到右上角用户名上,选择“注册开发者”即可到“开发者注册页面”) 3,设置回调地址(在jsp页面中的redirect_uril引用):“应用信息”-----&gt;“高级信息”,其中不可以用“localhost”,要使用1...
微博SDK第三方登陆
微博SDK第三方登陆
第三方登陆插件QQ,微博
第三方合作登录平台使用说明 为方便更多的开发朋友,本人特将当前市面上所有支持第三方联合登录的接口集为一体,以前需要多次开发才能完成的登录现在只需要一次即可搞定。再也不需要因为等待审核而耽误进度项目进度了。使用方便,操作简单,以下为本插件的具体使用方法:   申请使用 1、首先登录网站 http://open.51094.com/ 。 具体操作自己在网站上“使用说明”下载操作方法 2
第三方登陆包含qq微信微博
第三方登陆包含qq微信微博
关于微博等第三方登陆接口
各位大神,rn我在用微博登陆网站时,用了微博的demo,能够实现登陆,但是有几个问题:rn1、我的登陆特别慢,至少要5秒以上,其他网站如东方财富网,CSDN等都是秒登;rn2、在启用微博登陆时,我的网站提示“授权**网登陆您的微博”,但其他的网如CSDN论坛都是显示“试用你的微博账号登陆。。。”rnrn我是不是设置什么的有问题?我问了微博开放平台的客服,他们一直解答不出所以然来。rn我设置的授权回调页填的是open.weibo.com/apps/2127378056/privilege/oauth;取消授权回调页是我的网站首页。rn好像我能设置的就是这个。有人知道怎么办么?或者给我一个能成功登陆的demo。谢谢大神了!rnrn另外,谁知道微信登陆接口怎么弄?我找不到sdk或demo!谢谢!
使用微博作为第三方登陆 微博分享
My
微信公众号授权获取不到code
弹出授权窗口后,点击确定,直接跳转到自己设置的回调页面,获取不到code怎么回事呢? rn
GridView获取不到更新时的文本框的值???
[code=C#]rn protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)rn rn rn GridViewRow row = GridView1.Rows[e.RowIndex]; //获得当前行 rn int numCell = row.Cells.Count; //共几列单元格(包含Edit和Delete 2列) rn rn for (int i = 3; i < numCell; i++)rn rn //string cText = ((TextBox)row.Cells[i].Controls[0]).Text;//这样取值指定的参数已超出有效值的围。rn //string cText = row.Cells[i].Text 这样取值一直是空值rn rn rn rn rn[/code]rn是我取值的方法问题还是什么问题 在线等
JFinal 表单提交文件上传时获取不到值
作为一个菜鸟级别的程序员,初次写博客,只是简单的记录一下自己在工作过程中遇到的一些问题。大神勿喷。 先先交代一下背景:我使用的是JFinal框架(我也不清楚别的框架是不是也会出现这个问题)。因为表单中需要同时提交上传的文件,所以使用了enctype="multipart/form-data"这个属性,从而在后台获取数据的时候出现了一些小问题。 前台代码:
Extjs comboboxtree提交表单时获取不到值
从网上找到的一个扩展的comboboxtree,就一个问题就是form load数据了以后,如果不点击comboboxtree的tree,再提交form时,就获取不到comboboxtree被form load以后的值rn[code=javascript]Ext.define('Ext.ux.comboboxtree', rn extend: 'Ext.form.field.Picker',rn requires: ['Ext.tree.Panel'],rn alias: ['widget.comboboxtree'],rn multiSelect: false,rn multiCascade: true,rn submitValue:'',rn pathValue: '',rn pathArray: [],rn initComponent: function () rn var self = this;rn Ext.apply(self, rn fieldLabel: self.fieldLabel,rn labelWidth: self.labelWidthrn );rn self.callParent();rn ,rn createPicker: function () rn var self = this;rn var store = Ext.create('Ext.data.TreeStore', rn proxy: rn type: 'ajax',rn url: self.urlrn ,rn root: self.rootrn );rnrn self.picker = Ext.create('Ext.tree.Panel', rn height: self.treeHeight == null ? 300 : self.treeHeight,rn autoScroll: true,rn floating: true,rn focusOnToFront: false,rn shadow: true,rn ownerCt: this.ownerCt,rn useArrows: true,rn store: store,rn rootVisible: true,rn viewConfig: rn onCheckboxChange: function (e, t) rn if (self.multiSelect) rn var item = e.getTarget(this.getItemSelector(), this.getTargetEl()), record;rn if (item) rn record = this.getRecord(item);rn var check = !record.get('checked');rn record.set('checked', check);rn if (self.multiCascade) rn if (check) rn record.bubble(function (parentNode) rn if ('Root' != parentNode.get('text')) rn parentNode.set('checked', true);rn rn );rn record.cascadeBy(function (node) rn node.set('checked', true);rn node.expand(true);rn );rn else rn record.cascadeBy(function (node) rn node.set('checked', false);rn );rn record.bubble(function (parentNode) rn if ('Root' != parentNode.get('text')) rn var flag = true;rn for (var i = 0; i < parentNode.childNodes.length; i++) rn var child = parentNode.childNodes[i];rn if (child.get('checked')) rn flag = false;rn continue;rn rn rn if (flag) rn parentNode.set('checked', false);rn rn rn );rn rn rn rn var records = self.picker.getView().getChecked(), names = [], values = [];rn Ext.Array.each(records, function (rec) rn names.push(rec.get('text'));rn values.push(rec.get('id'));rn );rn self.submitValue = values.join(',');rn self.setValue(names.join(','));rn rn rn rn );rn self.picker.on(rn itemclick: function (view, recore, item, index, e, object) rn if (!self.multiSelect) rn self.submitValue = recore.get('id');rn self.setValue(recore.get('text'));rn self.eleJson = Ext.encode(recore.raw);rn self.collapse();rn rn rn );rn self.picker.expandAll();rn return self.picker;rn ,rn listeners: rn expand: function (field, eOpts) rn var picker = this.getPicker();rn if (!this.multiSelect) rn if (this.pathValue != '') rn picker.expandPath(this.pathValue, 'id', '/', function (bSucess, oLastNode) rn self.getSelectionModel().select(oLastNode);rn );rn rn else rn if (this.pathArray.length > 0) rn for (var m = 0; m < this.pathArray.length; m++) rn picker.expandPath(this.pathArray[m], 'id', '/', function (bSucess, oLastNode) rn oLastNode.set('checked', true);rn );rn rn rn rn rn ,rn clearValue: function () rn this.setDefaultValue('', '');rn ,rn getEleJson: function () rn if (this.eleJson == undefined) rn this.eleJson = [];rn rn return this.eleJson;rn ,rn getSubmitValue: function () rn if (this.submitValue == undefined) rn this.submitValue = '';rn rn return this.submitValue;rn ,rn getSubmitData: function () rn if (this.submitValue == undefined) rn this.submitValue = '';rn rn return this.submitValue;rn ,rn getDisplayValue: function () rn if (this.value == undefined) rn this.value = '';rn rn return this.value;rn ,rn setPathValue: function (pathValue) rn this.pathValue = pathValue;rn ,rn setPathArray: function (pathArray) rn this.pathArray = pathArray;rn ,rn setDefaultValue: function (submitValue, displayValue) rn this.submitValue = submitValue;rn this.setValue(displayValue);rn this.eleJson = undefined;rn this.pathArray = [];rn ,rn alignPicker: function () rn var me = this, picker, isAbove, aboveSfx = '-above';rn if (this.isExpanded) rn picker = me.getPicker();rn if (me.matchFieldWidth) picker.setWidth(me.bodyEl.getWidth()); rn if (picker.isFloating()) rn picker.alignTo(me.inputEl, "", me.pickerOffset); // ""->tlrn isAbove = picker.el.getY() < me.inputEl.getY();rn me.bodyEl[isAbove ? 'addCls' : 'removeCls'](me.openCls + aboveSfx);rn picker.el[isAbove ? 'addCls' : 'removeCls'](picker.baseCls + aboveSfx);rn rn rn rn);[/code]rnrn也就是我不重新选择这一项,这一项就获取不到值,再怎么改?求大神完善
微博登录接口入门开发上手 4-1获取code值
网站第三方微博登录接口开发实现,基于thinkPHP5框架实现
实体类获取不到值
enbuzApplyHome.setFuheTime(applyHomeAllInfo.getFuheTime()); 问题在于能得到值,却不能给实体类赋值,找了好长时间发现一个乌龙,在实体映射文件中将insert属性写成FALSE,导致不能插入值== 太悲催
获取不到combox 的值
比如我用一个combox控件,直接在里面写入,男,女 ,两个值,不是从数据库中载入进去的,也不是用控件贴上去的。rnrn我要 获取 选中的值,比如,男,或,女rnrn为了 string sql = string.Format("update users set nickname='0',[color=#FF0000]sex=1[/color],name='2',age=3,starid=4,bloodtypeid=5 where id=6", this.txtnickname.Text, [color=#FF0000]this.cobsex.SelectedIndex[/color], this.txtname.Text, this.txtage.Text, this.cbostar.SelectedIndex, this.cbobloodtype.SelectedIndex,int.Parse(this.txtid.Text));rnrn为了选 中一个值,去更新到数据库,数据库用的也是char型的。rnrn我现在获取不到combox 的值,请大家出个注意谢谢。rn
HttpWebResponse获取不到值
1.aspx通过POST把值传递给2.aspx,2.aspx处理后把结果返回给1.aspx,1.aspx在同一个页面把2.aspx结果显示出来。所有这些操作都在后台执行。rnrn1.aspx代码如下:rn Sub postData(ByVal url As String, ByVal data As String)rn If Not url Is Nothing AndAlso InStr(url, "http") > 0 Thenrn Dim myEncoding As Encoding = Encoding.GetEncoding("gb2312")rn Dim buff As Byte() = myEncoding.GetBytes(data)rn Dim myRequest As HttpWebRequest = CType(WebRequest.Create(url), HttpWebRequest)rn myRequest.Method = "POST"rn myRequest.ContentType = "application/x-www-form-urlencoded"rn myRequest.ContentLength = buff.Lengthrn Dim newStream As Stream = myRequest.GetRequestStream()rn newStream.Write(buff, 0, buff.Length)rn newStream.Close()rn '获取返回值rn Dim myResponse As HttpWebResponse = myRequest.GetResponsern Dim sr As StreamReader = New StreamReader(myResponse.GetResponseStream, System.Text.Encoding.GetEncoding("gb2312"))rn lbl_Status.Text = sr.ReadToEndrn sr.Close()rn End Ifrn End Subrnrn1.aspx值已经顺利POST至2.aspx,但2.aspx该如何把值返回给1.aspx呢?我在2.aspx上把值POST回1.aspx,但在1.aspx上通过myRequest.GetResponse获取不到值。请问该如何进行操作呢?谢谢!rn
获取不到值
[code=csharp]<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="sxzafcyy.WebForm3" %>rnrnrnrnrnrn rn rnrn rnrn rn rnrn rn rn rn rn rn rn <%#Eval("navigation") %>rn rn rn rn rn rn rn <%#Eval("navigation_Name") %>rn rn rn rn rn rn rn rnrn[/code]rnrn[code=csharp]rn public partial class WebForm3 : System.Web.UI.Pagern rn DB db = new DB();rn public int id;rn protected void Page_Load(object sender, EventArgs e)rn rn index_on();rn index_tw();rn rn //一级导航栏rn //navigation 名字rn public void index_on()rn rn string sql = "select id,navigation from navigation";rn DataTable dt = db.reDt(sql);rn index_one.DataSource = dt;rn index_one.DataBind();rn rn //二级导航栏rn //navigation_Name 名字rn //navigation_id 和一级 id 关联rn public void index_tw()rn rn id = string.IsNullOrEmpty(Request.QueryString["id"]) ? 0 : int.Parse(Request.QueryString["id"]);rn string sql = "select navigation_id,id,navigation_Name from navigation_Name where id = "+id;rn DataTable dts = db.reDt(sql);rnrn index_two.DataSource = dts;rn index_two.DataBind();rn rn[/code]rnocument.getElementById(<%#Eval("navigation_id")%>).innerHTML += data;rnrn我鼠标经过获取不到值.报错rnrn这个是错了?rnrn我前台改如何改?rnrn后台改如何改?rnrn求大神
Set方法获取不到值
这是我的servlet里的增删改的方法,但是在items.set*方法都获取不到值是为什么,其他地方都没问题,需要其他地方截图的说一下,求大神解答!!困了好久...
struts2拦截器获取不到值
[color=#FF0000]login.jsp[/color]rnrn rnrn用户名: rnrnrnrn[color=#FF0000]rnloginAction[/color]rnpublic class LoginAction extends ActionSupport rn private String name;rnrnrn public String getName() rn return name;rn rnrnrn public void setName(String name) rn this.name = name;rn rnrnrn public String execute() throws Exception rn ActionContext.getContext().getSession().put("user", "aa");rn return "success";rn rn rnrnrnrn[color=#FF0000]struts.xml[/color]rnrnrnrnrnrnindex.jsprnrnrnrnrnrnrn[color=#FF0000]拦截器:AuthorityIntercetor[/color]rnpublic class AuthorityIntercetor extends AbstractInterceptorrnrn @Overridern public String intercept(ActionInvocation invocation) throws Exception rn ActionContext ctx=invocation.getInvocationContext();rn rn Map session=ctx.getSession();rn //取出名位user的Session属性rn String user=(String)session.get("user");rn //如果没有登录,或者登录所用的用户名不是scoot,都返回重新登录rn if(user!=null && user.equals("scott"))rn return invocation.invoke();rn rn //没有登录,讲服务器提示设置成一个HttpServletRequest属性rn ctx.put("tip", "您还没有登录,请输入scott,tiger登录系统");rn return Action.SUCCESS;rn rn rnrnrnrn我调试发现拦截器中 [color=#FF0000]String user=(String)session.get("user"); 该 user获得为null[/color],麻烦各位高手指点指点,为什么不能获取到该值列rn
ajax获取不到值?
[img=https://img-bbs.csdn.net/upload/201312/03/1386052483_728635.jpg][/img]rnrn这个是连接的本地ajaxrn[img=https://img-bbs.csdn.net/upload/201312/03/1386052491_41041.jpg][/img]rn这个是连接的服务器上的rn[img=https://img-bbs.csdn.net/upload/201312/03/1386052496_379406.jpg][/img]rn这个是直接运行服务器的地址rnrn前台rn[code=javascript] $.get("webajax.ashx", phone: phone, category: category, validateCode: validateCode , function (data) rn alert(data);rn )rn[/code]rnrn后台rn[code=csharp]rnrn public void ProcessRequest(HttpContext context)rn rn context.Response.ContentType = "text/plain"; rn context.Response.Write("abc");rn rn[/code]rnrnrnajax,本地能正常获取,但是生成后方到服务器上就获取不到了?
textInput值获取不到?
rnrnrnrnrnrnrn我在中定义了一个方法rnprivate function getName(): void rn var textName:String = textname.text;rn Alert.show(textName)rnrnrnrnrn运行报错:访问的属性 textname未定义! rn我知道这么访问不行,但不知道应该怎么才能访问到TextInput 的值?(我是初学者,望有高手经过时,不吝赐教!)rn
@Value获取不到值
@Value有两种获取application.properties值得方法: 一、PlaceHolder方式:格式${...}@Component public class GetValue { @Value("${book.name}") private String name; public String getName() { return name
ConfigurationManager.ConnectionStrings获取不到值
在我的解决方案中我建了一个程序集,里面有2个文件:rnDataAccessProvider.classrn[code=C#]rnusing System;rnusing System.Collections.Generic;rnusing System.Text;rnusing System.Data.Common;rnusing System.Configuration;rnusing System.Data;rnusing System.Data.SqlClient;rnusing System.Data.OracleClient;rnusing System.Transactions;rnnamespace Taobao.SqlHelprnrn public class DataAccessProviderrn rn private static string connString;rn private static string providerName;rn static DataAccessProvider()rn rn ConnectionStringSettings setting = ConfigurationManager.ConnectionStrings["DSN"];rn connString = setting.ConnectionString;rn providerName = setting.ProviderName;rn System.Diagnostics.Debug.WriteLine(providerName);rn rn public static DbConnection GetConneciton()rn rn DbProviderFactory factroy = DbProviderFactories.GetFactory(providerName);rn DbConnection conn = factroy.CreateConnection();rn conn.ConnectionString = connString;rn return conn;rn rnrn private static DbDataAdapter GetDataAdapter()rn rn DbProviderFactory factroy = DbProviderFactories.GetFactory(providerName);rn DbDataAdapter da = factroy.CreateDataAdapter();rn return da;rn rnrn public static DbCommand GetCommand(string commandText, CommandType commandType)rn rn DbConnection conn = GetConneciton();rn DbCommand cmd = conn.CreateCommand();rn cmd.CommandText = commandText;rn cmd.CommandType = commandType;rn return cmd;rn rnrn public static DbDataReader GetDataReader(string commandText, CommandType commandType)rn rn DbCommand cmd = GetCommand(commandText, commandType);rn cmd.Connection.Open();rn DbDataReader reader = cmd.ExecuteReader(CommandBehavior.CloseConnection);rn return reader;rn rnrn public static bool ExecuteNonQuery(string commandText, CommandType commandType)rn rn DbCommand cmd = GetCommand(commandText, commandType);rn DbConnection conn = cmd.Connection;rn DbTransaction trans = null;rn bool result;rn tryrn rn conn.Open();rn trans = conn.BeginTransaction();rn cmd.ExecuteNonQuery();rn trans.Commit();rn result = true;rn rn catch (SqlException)rn rn if (trans != null)rn rn trans.Rollback();rn rn result = false;rn rn finallyrn rn if (conn != null && conn.State == ConnectionState.Open)rn rn conn.Close();rn rn rn return result;rn rnrn public static object ExecScalar(string commandText, CommandType commandType)rn rn DbCommand cmd = GetCommand(commandText, commandType);rn DbConnection conn = cmd.Connection;rn conn.Open();rn object obj = cmd.ExecuteScalar();rn conn.Close();rn return obj;rn rnrn public static DataTable GetDataTable(string commandText, CommandType commandType)rn rn return GetDataTable(commandText, commandType, 0, 0);rn rnrn public static DataTable GetDataTable(string commandText, CommandType commandType, int start, int count)rn rn DbDataAdapter da = GetDataAdapter();rn DbCommand cmd = GetCommand(commandText, commandType);rn da.SelectCommand = cmd;rn DataTable dt = new DataTable();rn DbConnection conn = cmd.Connection;rn conn.Open();rn if (start == 0 && count == 0)rn rn da.Fill(dt);rn rn elsern rn da.Fill(start, count, dt); rn rn conn.Close();rn return dt;rn rn rnrnrn[/code]rnrnApp.configrn[code=XML]rnrn rn rn rnrn[/code]rnrn然后再其他的程序集中引用这个程序集,结果报错:rn"***.DataAccessProvider”的类型初始值设定项引发异常rnrn后来通过断点发现,在rn[code=C#]rnConnectionStringSettings setting = ConfigurationManager.ConnectionStrings["DSN"];rn connString = setting.ConnectionString;rnrn[/code]rn根本没有获得到值,不知道问题出在哪里,请大家多帮忙,谢谢!!
获取不到post的值
[code=PHP]rnrn[/code]rn rn提交过去,却获取不到post的值,用get的方式就可以。。。
request.getAttribute获取不到值
[img=http://img.my.csdn.net/uploads/201211/09/1352438905_8123.jpg][/img]这是debug的request里面的值为什么用request.getAttribute("theme")得到的值为null,怎么获取到theme的值,在线等啊!!
GridView.SortExpression获取不到值??
请有经验的前辈帮帮忙,GridView1.SortExpression不能获取值???谢谢!!rn[code=C#]rn rn rn rn rn rn rn rn rn[/code]rn[code=C#]rn protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)rn rn string sqlstr = "select * from tb_GoodsInfo";rn SqlConnection sqlcon = new SqlConnection(ConnectionString);rn SqlDataAdapter adapter = new SqlDataAdapter(sqlstr, sqlcon);rn DataSet ds = new DataSet();rn sqlcon.Open();rn adapter.Fill(ds, "tb_GoodsInfo");rn DataView dv = new DataView(ds.Tables["tb_GoodsInfo"]);rn dv.Sort = e.SortExpression + " DESC";rnrn GridView1.DataSource = dv;rn GridView1.DataKeyNames = new string[] "GoodsID", "GoodsTypeID" ;//搬家rn GridView1.DataBind();rn sqlcon.Close();rnrn Response.Write(GridView1.SortExpression);//为什么还是获取不到值?????rn rn[/code]
获取不到textbox的值
tcheader[1].text="时间区间:"+this.textbox1.text + "到" +this.textbox2.text;rn这个代码是对的吗?rn在gridview中都有值,导出到excel时就没有值了?
获取不到存储过程值
存储过程rncreate PROC [dbo].[count_user_order]rn@email nvarchar(50), @all_count int OUTPUTrnASrnrnbeginrnSELECT @all_count=@all_count+COUNT(*) FROM dbo.GoldOrders WHERE CONVERT(NVARCHAR(11),CreateTime,120)=CONVERT(NVARCHAR(11),GETDATE(),120) AND Email=@emailrnSELECT @all_count=@all_count+COUNT(*) FROM dbo.PLOrders WHERE CONVERT(NVARCHAR(11),CreateTime,120)=CONVERT(NVARCHAR(11),GETDATE(),120) AND Email=@emailrnSELECT @all_count=@all_count+COUNT(*) FROM dbo.AccountOrders WHERE CONVERT(NVARCHAR(11),CreateTime,120)=CONVERT(NVARCHAR(11),GETDATE(),120) AND Email=@emailrnSELECT @all_count=@all_count+COUNT(*) FROM dbo.CDKOrders WHERE CONVERT(NVARCHAR(11),CreateTime,120)=CONVERT(NVARCHAR(11),GETDATE(),120) AND Email=@emailrnSELECT @all_count=@all_count+COUNT(*) FROM dbo.ItemOrders WHERE CONVERT(NVARCHAR(11),CreateTime,120)=CONVERT(NVARCHAR(11),GETDATE(),120) AND Email=@emailrnreturn @all_countrnendrnrn调用rn public static int exec_proc_2(string pro,string email,string outPut, string connString)rn rn using (SqlConnection conn = new SqlConnection(connString)) rn rn tryrn rn SqlCommand cmd = new SqlCommand("count_user_order", conn);rn cmd.CommandType = CommandType.StoredProcedure;rnrn SqlParameter email_ = cmd.Parameters.Add("@email", SqlDbType.NVarChar,50);rn SqlParameter rtnval = cmd.Parameters.Add("@all_count", SqlDbType.Int,4);rn email_.Value = email;rn rtnval.Value = 0;rnrn email_.Direction = ParameterDirection.Input; rn rtnval.Direction = ParameterDirection.Output;rnrn conn.Open();rn cmd.ExecuteScalar();rn rnrn int result= (int)cmd.Parameters["@all_count"].Value; rn conn.Close();rn return result;rn rn catch (Exception) rn rn return 0;rn rn rnrn rn那位仁兄告诉下那个地方出错了
datalist 获取不到值?
SqlDataAdapter ldylAdapter = new SqlDataAdapter("select * from a,b,c where (a.CardID=b.CardID) and (b.ModuleID=c.ModuleID) order by a.RevertCardID desc", mycon);rn DataSet ldylSet = new DataSet();rn ldylAdapter.Fill(ldylSet, "ldyl");rn DLl.DataSource = ldylSet;rn DLl.DataBind();rnrnrnrnrnrn数据存放在三张表abc:a有所有的信息,b有这些信息的分类ID,c是这些分类ID的名字rnrnDLl是datalist的 IDrnrn在前台rnrnrnrn提示DataBinding:“System.Data.DataRowView”不包含名为“ModuleID”的属性。rn也就是获取不到ModuleID的值....rn怎么解决?rn
$_GET获取不到值
通过数据库中的id选取图片的srcrnhtml[img=https://img-bbs.csdn.net/upload/201611/26/1480157305_709477.png][/img]rn在浏览器开发者工具里看到可以获取id值52rn[img=https://img-bbs.csdn.net/upload/201611/26/1480157385_196792.png][/img]rnphprn$id= $_GET ['id'];rnecho $_GET["id"];rn.........rn$sql1 = "SELECT *FROM permits_cards WHERE Staff_ID ='$_SESSION[modify_staffname]'AND Name='ARA_Permit' AND id='$id'";rnecho $sql1;rn结果[img=https://img-bbs.csdn.net/upload/201611/26/1480157495_443057.png][/img]rn$id没有值,$_GET也没有值,不知道什么原因rn
objXMLReq.responseText; 获取不到值
window.onload=function()//加载rn //alert("ddsdsd");rn var objXMLReq = new ActiveXObject("Microsoft.XMLHTTP");rn objXMLReq.open("POST", "show!notCheckCount.action?aa=" + Math.random(), true);rn objXMLReq.setRequestHeader("User-Agent", "Microsoft.XMLHTTP");rn objXMLReq.send(null);rn var strResultt;rn var tempString;rn if(objXMLReq.readyState==4)rn strResult = objXMLReq.responseText; [color=#FF0000] 此处strResult 一下没有执行,如果在之前增加一个alert,就能够正常运行,并获取到值 [/color] tempString = ""+strResult+"条审核未通过信息"; rn rn if(strResult>0)rn document.getElementById('news').outerHTML = tempString;rn document.getElementById('winpop').style.height='0px';rn tips_pop();rn rnrn
getMeasureHeight()获取不到值
最近需要根据view的宽度动态调整listview的高度,使用  adapter.getView()  获取到view后,调用  view.getMeasureHeight()  后获取不到高度, 通过查阅资料发小调用  view.measure(0,0)  方法后,再次调用  view.getMeasureHeight()  后就可以获取高度, 特此记录
获取不到自定义控件的值
我的自定义控件中有个DropDownList控件rnrnrnrnpublic partial class Ctrl_EmployeeSalesOut : System.Web.UI.UserControlrnrn protected void Page_Load(object sender, EventArgs e)rn rn BindData();rn rn public void BindData()rn rn BLEmployee blEmployee = new BLEmployee();rn this.ddlEmployee.DataSource = blEmployee.GetSalesOut();rn this.ddlEmployee.DataValueField = "WorkID";rn this.ddlEmployee.DataTextField = "Name";rn this.ddlEmployee.DataBind();rn rn public string WorkNamern rn get return this.ddlEmployee.SelectedItem.Text; rn rn public string WorkIDrn rn setthis.ddlEmployee.SelectedValue = value;rn getreturn this.ddlEmployee.SelectedValue;rn rnrnrnrnrn调用代码:test.aspxrnrn rnrnrn this.TextBox3.Text = EmploySalesIn1.WorkID;rn this.TextBox4.Text = EmploySalesIn1.WorkName;rnrn每次都获取不到选择的值,谁能告诉我为什么吗?rn
编辑器 获取不到值
下了个kindeditor编辑器 但是提交数据后,获取不到textarea的值。rn这是js代码rn rnrn这是rnrn用form提交 自己实在是弄不懂了,求高手给详细解答
context.Request.Form[""]获取不到值
有个结算的功能,从数据库获取数据然后用jquert ajax将数据填到table,将总价计算出来rn[code=JScript]rn$.each(data.TableInfo, function (key, val) rn$("¥" + Subtotal(val.OPrice, val.ONo) + "").appendTo("#jsSJ");rn);rn[/code]rnSubtotal()--计算总价的方法,因为js有浮点运算的bug所以想将数据通过ajax传输到后台用C#处理rn[code=JScript]rnfunction Subtotal(pric, No) rn var jieguo = 0;rn $.ajax(rn type: "post",rn url: "../ApplicationProcessing/Subtotal.ashx?time=" + new Date().valueOf(),rn dataType: "text",rn date: price: pric, shuLiang: No ,rn success: function (data) rn jieguo = data;rn );rn return jieguo;rnrn[/code]rn用Firgbug调试 date: price: pric, shuLiang: No 是有数据的 但是带传到后台使用context.Request.Form[""]获取数据数据就获取不到,这个是为什么?希望前辈们能帮帮忙。
apc_fectch()获取不到值
这是一个进度条的应用,apc的扩展我确定安装成功了.rnrn[code=PHP]$status=apc_fecth('upload_'.$_GET['key']);[/code]rnrn我用print_r输出$status,什么都没有显示,rnrn前台返回的值是NAn,可我在后台没有其他乱七八糟的输出啊rn[code=PHP]rnif(isset($_GET['key']))rnrn echo json_encode(getStatusAPC());rnrnfunction getStatusAPC()rnrn $response=false;rn if($status = apc_fetch('upload_'.$_GET['key'])) rn $response=apc_fetch('upload_'.$_GET['key']);rn rn return $response;rnrnif ($_SERVER['REQUEST_METHOD'] == 'POST')rn $myfile=$_FILES['upfile'];rn echo $myfile['size'];rn echo $myfile['size'];rn print_r($myfile);rn $tempf=$myfile['tmp_name'];rn $name=$myfile['name'];rn move_uploaded_file($tempf,'up/'.$name);rnrn[/code]rnrn不知问题出在哪里?求教了
document.when的值获取不到!!
[code=HTML]rn rn rn rn rn rn rn rn rn[/code]rn[code=JScript]rnwindow.onload=function()rnrn Defaults();rnrnfunction Defaults() rn if (!document.all)rn returnrn document.when.month.selectedIndex = Current_Month;rn rn[/code]rnrn这段代码在HTML里是正常的,但放到.NET里就说document.when.month无法获取属性“month”的值: 对象为 null 或未定义。。rn用IE调试的!rn这是怎么回事????
隐藏域的值 获取不到
新手学习中遇到了问题 有一个主页面index.jsp他用这个包含一个top.jsprnrn然后top.jsp这个中有一个隐藏域 value里面内容可以在top.jsp中显示出来(测试了)rnrn然后运行index.jsp中top.jsp的一个超链接提交到一个servlet 在servlet中 String name1=request.getParameter("name"); name1却值为空 为什么获取不到?
下拉菜单获取不到值
这是页面上的代码rn 商品分类:rn rn rn因为获取的是另一张表的值,所以EL表达式里面的值和name的值不一样rn跳转的处理rnthis.setResult("gory", this.service.loadGory(id));rnrndao方法rnpublic List loadGory(String gory)rn return this.select("goods.loadGory",gory);rn rnService方法rnpublic List loadGory(String gory)rn return this.dao.loadGory(gory);rn rnxml里面的SQL语句rn rn select * from v_category rn rn[img=https://img-bbs.csdn.net/upload/201506/09/1433821993_73299.png][/img]rn rn
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件