Click here to Skip to main content
15,894,330 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: to add a flash file to a asp.net applcation Pin
Gaurav K Singh16-Feb-09 2:46
Gaurav K Singh16-Feb-09 2:46 
QuestionServer Transfer problem Pin
Bev Robins16-Feb-09 1:55
Bev Robins16-Feb-09 1:55 
Questionreading XMl through javascript and populating into a combobox Pin
rakeshs31216-Feb-09 1:54
rakeshs31216-Feb-09 1:54 
AnswerRe: reading XMl through javascript and populating into a combobox Pin
www.Developerof.NET16-Feb-09 2:15
www.Developerof.NET16-Feb-09 2:15 
GeneralRe: reading XMl through javascript and populating into a combobox Pin
rakeshs31216-Feb-09 17:08
rakeshs31216-Feb-09 17:08 
GeneralRe: reading XMl through javascript and populating into a combobox Pin
www.Developerof.NET16-Feb-09 23:14
www.Developerof.NET16-Feb-09 23:14 
Questionsession value and using that Pin
netsooz (Amir Hamidi)16-Feb-09 1:01
netsooz (Amir Hamidi)16-Feb-09 1:01 
AnswerRe: session value and using that Pin
Gaurav K Singh16-Feb-09 2:16
Gaurav K Singh16-Feb-09 2:16 
You are right, i also think the problem with

Session["news_id"]= (int)(dataList1.DataKeys[dataList1.SelectedIndex]);

First, dataList1.SelectedIndex is start with 0 and i think news_id is start with 1 (Its my guess).

This index of control never be similar with your id. you can use response.write to check this problem...

You can also use the similar type of things....

<asp:datalist id="DataList1" runat="server" backcolor="White" bordercolor="#E7E7FF" xmlns:asp="#unknown">
BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyField="id" DataMember="DefaultView"
DataSourceID="SqlDataSource1" GridLines="Horizontal" UseAccessibleHeader="True"
Width="100px">
<itemtemplate>
]]>
]]>


<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:ConnectionString %>" xmlns:asp="#unknown">
SelectCommand="SELECT [id], [title], [name] FROM [table]">


Here you pass news id as query string.

The miracle is this--the more we share, the more we have.

GeneralRe: session value and using that Pin
netsooz (Amir Hamidi)16-Feb-09 2:33
netsooz (Amir Hamidi)16-Feb-09 2:33 
GeneralRe: session value and using that Pin
Gaurav K Singh16-Feb-09 2:43
Gaurav K Singh16-Feb-09 2:43 
QuestionClick event in Textbox? Pin
Karthick_gc16-Feb-09 0:35
Karthick_gc16-Feb-09 0:35 
AnswerRe: Click event in Textbox? Pin
Calin Tatar16-Feb-09 0:53
Calin Tatar16-Feb-09 0:53 
AnswerRe: Click event in Textbox? Pin
Gaurav K Singh16-Feb-09 0:54
Gaurav K Singh16-Feb-09 0:54 
Questionhow to implement ReOrderList without binding datasource control Pin
ashok@techxygen16-Feb-09 0:22
ashok@techxygen16-Feb-09 0:22 
QuestionHow to add node one to another tree view on click of bottom? Pin
Piyush Vardhan Singh16-Feb-09 0:18
Piyush Vardhan Singh16-Feb-09 0:18 
AnswerRe: How to add node one to another tree view on click of bottom? Pin
Gaurav K Singh16-Feb-09 1:04
Gaurav K Singh16-Feb-09 1:04 
GeneralRe: How to add node one to another tree view on click of bottom? Pin
Piyush Vardhan Singh16-Feb-09 1:10
Piyush Vardhan Singh16-Feb-09 1:10 
GeneralRe: How to add node one to another tree view on click of bottom? Pin
Gaurav K Singh16-Feb-09 1:45
Gaurav K Singh16-Feb-09 1:45 
QuestionHow no to direct to a page aftr logging out ? Pin
Subin Alex15-Feb-09 23:47
Subin Alex15-Feb-09 23:47 
AnswerRe: How no to direct to a page aftr logging out ? Pin
rakeshs31215-Feb-09 23:50
rakeshs31215-Feb-09 23:50 
GeneralRe: How no to direct to a page aftr logging out ? Pin
Karthick_gc16-Feb-09 0:36
Karthick_gc16-Feb-09 0:36 
GeneralRe: How no to direct to a page aftr logging out ? Pin
rakeshs31216-Feb-09 1:18
rakeshs31216-Feb-09 1:18 
GeneralRe: How no to direct to a page aftr logging out ? Pin
Karthick_gc16-Feb-09 1:23
Karthick_gc16-Feb-09 1:23 
GeneralRe: How no to direct to a page aftr logging out ? Pin
rakeshs31216-Feb-09 1:35
rakeshs31216-Feb-09 1:35 
GeneralRe: How no to direct to a page aftr logging out ? Pin
Karthick_gc16-Feb-09 1:41
Karthick_gc16-Feb-09 1:41 

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.