Click here to Skip to main content
15,913,055 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAJAX Calender and dropdown list problem Pin
swpnilekh15-Aug-07 22:00
swpnilekh15-Aug-07 22:00 
AnswerRe: AJAX Calender and dropdown list problem Pin
Mark Churchill16-Aug-07 16:44
Mark Churchill16-Aug-07 16:44 
QuestionGridView Edit through codebehind Pin
dhulipudi15-Aug-07 21:42
dhulipudi15-Aug-07 21:42 
QuestionHow to raise events while clicking a datalist item or a particular Row?? Pin
bijeshputhalath15-Aug-07 21:40
bijeshputhalath15-Aug-07 21:40 
AnswerRe: How to raise events while clicking a datalist item or a particular Row?? Pin
Michael Sync15-Aug-07 21:59
Michael Sync15-Aug-07 21:59 
GeneralRe: How to raise events while clicking a datalist item or a particular Row?? Pin
bijeshputhalath15-Aug-07 23:35
bijeshputhalath15-Aug-07 23:35 
GeneralRe: How to raise events while clicking a datalist item or a particular Row?? Pin
Michael Sync15-Aug-07 23:51
Michael Sync15-Aug-07 23:51 
GeneralRe: How to raise events while clicking a datalist item or a particular Row?? Pin
bijeshputhalath16-Aug-07 1:21
bijeshputhalath16-Aug-07 1:21 
Hello,

Thank you so much....i use the first method.....it is working fine.....But in my query string, i send 3 parameters(Becoz if i send only one parameter if any records with same data i,it will display the first record)...But i cant retrieve it all the three and getting some error .


----------------------------------------------------------------------------
i used the following code in html



>
<asp:button
="" style="display:none;" commandargument="<%# DataBinder.Eval(Container.DataItem,"AD_TITLE")%>" id="HiddenButton" runat="server" text="View">


,price=<%# DataBinder.Eval(Container.DataItem,"PRICE") %>,type=<%# DataBinder.Eval(Container.DataItem,"AD_TYPE") %>">
<%# DataBinder.Eval(Container.DataItem,"AD_TITLE") %>

<%# DataBinder.Eval(Container.DataItem,"AD_TYPE") %>


<%# DataBinder.Eval(Container.DataItem,"AD_DESCRIPTION") %>


Price:
<%# DataBinder.Eval(Container.DataItem,"PRICE") %>


Location:
<%# DataBinder.Eval(Container.DataItem,"LOCATION") %>



----------------------------------------------------------------------------
and in my target page i use


string search,type1,price;

search=Request.QueryString["li"].ToString();
type1=Request.QueryString["type"].ToString();
price=Request.QueryString["price"].ToString();
Label1.Text=search;
string sstr="select * FROM ads where AD_TITLE='"+search+"' && PRICE='"+price+"' && AD_TYPE='"+type1+"'";
sdr=conobj.reader(sstr);
----------------------------------------------------------------------------
But i get the following error



Server Error in '/approvedplotfinal' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 45:
Line 46: search=Request.QueryString["li"].ToString();
Line 47: type1=Request.QueryString["type"].ToString();
Line 48: price=Request.QueryString["price"].ToString();
Line 49: Label1.Text=search;


----------------------------------------------------------------------------
Please help me to trace out.......
thanks again....
Biju
GeneralRe: How to raise events while clicking a datalist item or a particular Row?? Pin
Michael Sync16-Aug-07 1:27
Michael Sync16-Aug-07 1:27 
GeneralRe: How to raise events while clicking a datalist item or a particular Row?? Pin
bijeshputhalath16-Aug-07 2:41
bijeshputhalath16-Aug-07 2:41 
GeneralRe: How to raise events while clicking a datalist item or a particular Row?? Pin
Michael Sync16-Aug-07 4:18
Michael Sync16-Aug-07 4:18 
GeneralRe: How to raise events while clicking a datalist item or a particular Row?? Pin
bijeshputhalath16-Aug-07 5:30
bijeshputhalath16-Aug-07 5:30 
GeneralRe: How to raise events while clicking a datalist item or a particular Row?? Pin
Michael Sync16-Aug-07 6:33
Michael Sync16-Aug-07 6:33 
GeneralRe: How to raise events while clicking a datalist item or a particular Row?? Pin
bijeshputhalath16-Aug-07 19:25
bijeshputhalath16-Aug-07 19:25 
GeneralRe: How to raise events while clicking a datalist item or a particular Row?? Pin
Michael Sync16-Aug-07 20:09
Michael Sync16-Aug-07 20:09 
GeneralRe: How to raise events while clicking a datalist item or a particular Row?? Pin
bijeshputhalath16-Aug-07 23:39
bijeshputhalath16-Aug-07 23:39 
GeneralRe: How to raise events while clicking a datalist item or a particular Row?? Pin
Michael Sync16-Aug-07 23:48
Michael Sync16-Aug-07 23:48 
Questionphoto gallery (urgent!) Pin
Milind Panchal15-Aug-07 21:34
Milind Panchal15-Aug-07 21:34 
AnswerRe: photo gallery (urgent!) Pin
N a v a n e e t h15-Aug-07 21:40
N a v a n e e t h15-Aug-07 21:40 
GeneralRe: photo gallery (urgent!) Pin
Milind Panchal15-Aug-07 21:42
Milind Panchal15-Aug-07 21:42 
GeneralRe: photo gallery (urgent!) Pin
Michael Sync15-Aug-07 22:02
Michael Sync15-Aug-07 22:02 
Questionhow do i Filter extensions in FileUpload Control Pin
Amit.Amit.Amit...15-Aug-07 21:22
Amit.Amit.Amit...15-Aug-07 21:22 
AnswerRe: how do i Filter extensions in FileUpload Control Pin
Michael Sync15-Aug-07 21:25
Michael Sync15-Aug-07 21:25 
AnswerRe: how do i Filter extensions in FileUpload Control Pin
N a v a n e e t h15-Aug-07 21:33
N a v a n e e t h15-Aug-07 21:33 
AnswerRe: how do i Filter extensions in FileUpload Control Pin
metallica_rock1015-Aug-07 23:09
metallica_rock1015-Aug-07 23:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.