Click here to Skip to main content
15,895,142 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionLoading image in asp.net?? Pin
Karan_TN6-Nov-08 21:02
Karan_TN6-Nov-08 21:02 
AnswerRe: Loading image in asp.net?? Pin
eyeseetee6-Nov-08 22:05
eyeseetee6-Nov-08 22:05 
Questionhow to find age using java script.. Pin
raghvendrapanda6-Nov-08 20:57
raghvendrapanda6-Nov-08 20:57 
AnswerRe: how to find age using java script.. Pin
eyeseetee6-Nov-08 22:06
eyeseetee6-Nov-08 22:06 
QuestionStylesheet problem in asp.net web form Pin
Karan_TN6-Nov-08 20:56
Karan_TN6-Nov-08 20:56 
Questioncan we decrypt MD5 algorithm key to original string Pin
Piyush Vardhan Singh6-Nov-08 20:45
Piyush Vardhan Singh6-Nov-08 20:45 
AnswerRe: can we decrypt MD5 algorithm key to original string Pin
Piyush Vardhan Singh7-Nov-08 0:13
Piyush Vardhan Singh7-Nov-08 0:13 
QuestionSurvey kind of program in "Previous" & "Next" fashion [modified] Pin
LiYS6-Nov-08 20:40
LiYS6-Nov-08 20:40 
Hi all,

I'm working on a survey kind of program: There's a set of survey subjects and inside those survey subjects there comes a set of survey questions. What I wanted to do is chain those survey subjects together in a "previous" & "next" fashion, e.g. when I click the next button the page will display the next survey object and same thing happens to "previous" clicking. Is it possible to bind the data to some kind of navigate control or something like below (increment/decrement the VoteID and bind the radio list (survey questions) with another set of data)? What’s the standard way of doing this? Is there any samples? I’m completely new to ASP.net.

string strConn = ConfigurationSettings.AppSettings["ConnectionString"];
SqlConnection conn = new SqlConnection(strConn);
SqlCommand cmd = conn.CreateCommand();
cmd.CommandText = "GetOptions";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@vote_id", VoteID);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();

conn.Open();
da.Fill(ds);
rblOptions.DataSource = ds.Tables[0].DefaultView;
rblOptions.DataTextField = "content";
rblOptions.DataValueField = "id";
rblOptions.DataBind();

But the "increment/decrement the VoteID" method has drawback once the VoteID's value is not consecutive.

Thanks,




modified on Friday, November 7, 2008 3:04 AM

QuestionPoxy settings in the Application centre test Pin
sarada1236-Nov-08 20:22
sarada1236-Nov-08 20:22 
QuestionSending auto Email with attachment Pin
sachees1236-Nov-08 19:21
sachees1236-Nov-08 19:21 
Questionhow to Write Javascript Code for Dropdown Change in Asp.net 2.0 Pin
MallikarjunaGupta6-Nov-08 19:07
MallikarjunaGupta6-Nov-08 19:07 
AnswerRe: how to Write Javascript Code for Dropdown Change in Asp.net 2.0 Pin
Sandeep Akhare6-Nov-08 19:19
Sandeep Akhare6-Nov-08 19:19 
QuestionUserControl in asp.net Pin
RohiniTalks6-Nov-08 19:05
RohiniTalks6-Nov-08 19:05 
AnswerRe: UserControl in asp.net Pin
Sandeep Akhare6-Nov-08 19:16
Sandeep Akhare6-Nov-08 19:16 
GeneralRe: UserControl in asp.net Pin
RohiniTalks6-Nov-08 19:25
RohiniTalks6-Nov-08 19:25 
GeneralRe: UserControl in asp.net Pin
Sandeep Akhare6-Nov-08 19:32
Sandeep Akhare6-Nov-08 19:32 
QuestionDisplay Session Variable in HTML Text Pin
Arcdigital6-Nov-08 16:13
Arcdigital6-Nov-08 16:13 
AnswerRe: Display Session Variable in HTML Text Pin
Kannan Ar6-Nov-08 17:47
professionalKannan Ar6-Nov-08 17:47 
GeneralRe: Display Session Variable in HTML Text Pin
Arcdigital7-Nov-08 1:12
Arcdigital7-Nov-08 1:12 
QuestionHow to fire the target button(in a content page) when I press "Enter" key Pin
cwjcyberfox6-Nov-08 15:51
cwjcyberfox6-Nov-08 15:51 
AnswerRe: How to fire the target button(in a content page) when I press "Enter" key Pin
Sandeep Akhare6-Nov-08 19:25
Sandeep Akhare6-Nov-08 19:25 
GeneralRe: How to fire the target button(in a content page) when I press "Enter" key Pin
cwjcyberfox6-Nov-08 21:23
cwjcyberfox6-Nov-08 21:23 
GeneralRe: How to fire the target button(in a content page) when I press "Enter" key Pin
Sandeep Akhare6-Nov-08 21:42
Sandeep Akhare6-Nov-08 21:42 
GeneralRe: How to fire the target button(in a content page) when I press "Enter" key Pin
cwjcyberfox6-Nov-08 23:54
cwjcyberfox6-Nov-08 23:54 
GeneralRe: How to fire the target button(in a content page) when I press "Enter" key Pin
Sandeep Akhare7-Nov-08 0:37
Sandeep Akhare7-Nov-08 0:37 

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.