Click here to Skip to main content
15,902,636 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How Can I get The Previous Page URL??? Pin
Michael Sync28-Nov-07 18:52
Michael Sync28-Nov-07 18:52 
GeneralRe: How Can I get The Previous Page URL??? Pin
N a v a n e e t h28-Nov-07 19:49
N a v a n e e t h28-Nov-07 19:49 
AnswerRe: How Can I get The Previous Page URL??? Pin
Sun Rays28-Nov-07 18:53
Sun Rays28-Nov-07 18:53 
GeneralRe: How Can I get The Previous Page URL??? Pin
Vanamaindia28-Nov-07 19:25
Vanamaindia28-Nov-07 19:25 
GeneralRe: How Can I get The Previous Page URL??? Pin
Michael Sync28-Nov-07 19:33
Michael Sync28-Nov-07 19:33 
AnswerRe: How Can I get The Previous Page URL??? Pin
lakshmichawala28-Nov-07 22:02
lakshmichawala28-Nov-07 22:02 
GeneralRe: How Can I get The Previous Page URL??? Pin
Vanamaindia28-Nov-07 22:06
Vanamaindia28-Nov-07 22:06 
QuestionDetailsview Pin
dandamudi padma28-Nov-07 17:44
dandamudi padma28-Nov-07 17:44 
hai,

my req is i need to add items from database into dropdownlist my code follows this way:

form id="form1" runat="server">

<asp:detailsview id="DetailsViewEnquiryEdit" runat="server" autogeneraterows="False"
="" datasourceid="ObjectDataSource1" height="50px" width="188px">
<fields>
<asp:boundfield datafield="EnquiryId" headertext="EnquiryId" sortexpression="EnquiryId">
<asp:boundfield datafield="EnquiryName" headertext="EnquiryName" sortexpression="EnquiryName">
<asp:boundfield datafield="EnquiryStatus" headertext="EnquiryStatus" sortexpression="EnquiryStatus">
<asp:boundfield datafield="EnquiryDesc" headertext="EnquiryDesc" sortexpression="EnquiryDesc">
<asp:boundfield datafield="SourceId" headertext="SourceId" sortexpression="SourceId">
<asp:boundfield datafield="CustomerId" headertext="CustomerId" sortexpression="CustomerId">
<asp:boundfield datafield="ServiceId" headertext="ServiceId" sortexpression="ServiceId">
<asp:boundfield datafield="CountryId" headertext="CountryId" sortexpression="CountryId">
<asp:templatefield headertext="CountryName">
<edititemtemplate>
<asp:dropdownlist id="DropDownList1" runat="server" datasourceid="SqlDataSource1"
="" datatextfield="CountryName" datavaluefield="CountryName" selectedvalue="<%# Bind("CountryName") %>">
<asp:sqldatasource id="SqlDataSource2" runat="server" connectionstring="<%$ ConnectionStrings:System.Data.SqlClient %>"
="" selectcommand="SELECT [CountryName] FROM [tb_country]">

<itemtemplate>
<asp:label id="Label1" runat="server" text="<%# Bind("CountryName") %>">



<footertemplate>
<asp:button id="Button1" runat="server" text="Save" onclick="Button1_Click">
<asp:button id="Button2" runat="server" text="Cancel" onclick="Button2_Click">


.

<asp:objectdatasource id="ObjectDataSource1" runat="server" oldvaluesparameterformatstring="original_{0}"
="" selectmethod="GetEnquiry" typename="gfinFacade.EnquiryFacade">
<selectparameters>
<asp:sessionparameter name="enqId" sessionfield="enqId" type="Int32">


<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:gfinConnectionString %>"
="" selectcommand="SELECT [CountryName] FROM [tb_Country]">


but i am getting error like

'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value

can anybodu tell how to solve this

padma

AnswerRe: Detailsview Pin
komalcse28-Nov-07 19:12
komalcse28-Nov-07 19:12 
QuestionDetailsview Pin
dandamudi padma28-Nov-07 17:44
dandamudi padma28-Nov-07 17:44 
Questionhow to export a crystal report to pdf programatically Pin
chithra.r28-Nov-07 17:41
chithra.r28-Nov-07 17:41 
AnswerRe: how to export a crystal report to pdf programatically Pin
Laxmikant Lad28-Nov-07 18:08
Laxmikant Lad28-Nov-07 18:08 
QuestionConference chat problem Pin
SreejithAchutan28-Nov-07 17:34
SreejithAchutan28-Nov-07 17:34 
QuestionBenefit of make the business layer class as sealed class Pin
hogan.smith28-Nov-07 17:31
hogan.smith28-Nov-07 17:31 
AnswerRe: Benefit of make the business layer class as sealed class Pin
Michael Sync28-Nov-07 18:43
Michael Sync28-Nov-07 18:43 
GeneralRe: Benefit of make the business layer class as sealed class Pin
hogan.smith28-Nov-07 19:05
hogan.smith28-Nov-07 19:05 
Questionget SCOPE_IDENTITY() in asp.net Pin
AnhTin28-Nov-07 16:53
AnhTin28-Nov-07 16:53 
AnswerRe: get SCOPE_IDENTITY() in asp.net Pin
Michael Sync28-Nov-07 16:55
Michael Sync28-Nov-07 16:55 
GeneralRe: get SCOPE_IDENTITY() in asp.net Pin
AnhTin28-Nov-07 17:13
AnhTin28-Nov-07 17:13 
QuestionPushing Multiple Files In One Response Pin
RB@Emphasys28-Nov-07 12:29
RB@Emphasys28-Nov-07 12:29 
AnswerRe: Pushing Multiple Files In One Response Pin
Prateek G28-Nov-07 17:42
Prateek G28-Nov-07 17:42 
QuestionFloor Map Pin
alexfromto28-Nov-07 8:32
alexfromto28-Nov-07 8:32 
AnswerRe: Floor Map Pin
Paul Conrad28-Nov-07 16:24
professionalPaul Conrad28-Nov-07 16:24 
GeneralRe: Floor Map Pin
alexfromto29-Nov-07 2:51
alexfromto29-Nov-07 2:51 
QuestionMake connection to Excel Pin
raushan raj28-Nov-07 7:03
raushan raj28-Nov-07 7:03 

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.