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

ASP.NET

 
GeneralHidden field Pin
kavinnagarajan10-Aug-09 21:05
kavinnagarajan10-Aug-09 21:05 
GeneralHidden field Pin
kavinnagarajan10-Aug-09 20:37
kavinnagarajan10-Aug-09 20:37 
QuestionFiltering bulk data Pin
333soori10-Aug-09 18:55
333soori10-Aug-09 18:55 
AnswerRe: Filtering bulk data Pin
Suresh Suthar10-Aug-09 19:05
professionalSuresh Suthar10-Aug-09 19:05 
GeneralRe: Filtering bulk data Pin
333soori10-Aug-09 19:21
333soori10-Aug-09 19:21 
GeneralRe: Filtering bulk data Pin
Abhijit Jana10-Aug-09 19:32
professionalAbhijit Jana10-Aug-09 19:32 
GeneralRe: Filtering bulk data Pin
Suresh Suthar10-Aug-09 20:00
professionalSuresh Suthar10-Aug-09 20:00 
Questiondifferent ValueField and TextField for a dropdownlist Pin
haleemasher10-Aug-09 18:07
haleemasher10-Aug-09 18:07 
i have a dropdownlist i bind it such like that it has different valuefield and different textfield. i want that i select textfield from dropdown and the value correspond that valuefield will insert in the database i write a code for it, it show datatype error.Failed to convert parameter value from string to a byte
<asp:DropDownList ID="ddlCType" runat="server" 
    DataSourceID="SqlDataSource1" DataTextField="CouponName" 
    DataValueField="CouponTypeID" 
    
        style="top: 309px; left: 389px; position: absolute; height: 11px; width: 97px; z-index: 1" 
        AutoPostBack="True" ontextchanged="DropDownList1_TextChanged">
</asp:DropDownList>

try
{
    ErrorMessage.Text = "";
    cnx.Open();
    SqlCommand insertCmd = new SqlCommand("insert into CouponTransaction(CouponTypeID)values(@Id)", cnx);
    insertCmd.Parameters.Add("@Id", SqlDbType.TinyInt);
    insertCmd.Parameters["@Id"].Value = ddlCType.Text;insertCmd.ExecuteNonQuery();
    ErrorMessage.Text = "Records inserted successfully";
    cnx.Close();
}

AnswerRe: different ValueField and TextField for a dropdownlist Pin
Suresh Suthar10-Aug-09 18:20
professionalSuresh Suthar10-Aug-09 18:20 
GeneralRe: different ValueField and TextField for a dropdownlist Pin
haleemasher10-Aug-09 18:28
haleemasher10-Aug-09 18:28 
AnswerRe: different ValueField and TextField for a dropdownlist Pin
Usharva10-Aug-09 18:48
Usharva10-Aug-09 18:48 
AnswerRe: different ValueField and TextField for a dropdownlist Pin
Viral Upadhyay10-Aug-09 18:49
Viral Upadhyay10-Aug-09 18:49 
GeneralRe: different ValueField and TextField for a dropdownlist Pin
haleemasher10-Aug-09 19:19
haleemasher10-Aug-09 19:19 
GeneralRe: different ValueField and TextField for a dropdownlist Pin
Viral Upadhyay10-Aug-09 19:25
Viral Upadhyay10-Aug-09 19:25 
QuestionConfermation Message in asp.net Pin
Dushan12310-Aug-09 17:58
Dushan12310-Aug-09 17:58 
AnswerRe: Confermation Message in asp.net Pin
Suresh Suthar10-Aug-09 18:10
professionalSuresh Suthar10-Aug-09 18:10 
AnswerRe: Confermation Message in asp.net Pin
Parwej Ahamad10-Aug-09 18:10
professionalParwej Ahamad10-Aug-09 18:10 
AnswerRe: Confermation Message in asp.net Pin
Dushan12310-Aug-09 18:38
Dushan12310-Aug-09 18:38 
GeneralRe: Confermation Message in asp.net Pin
Abhijit Jana10-Aug-09 18:52
professionalAbhijit Jana10-Aug-09 18:52 
QuestionSoapException was unhandled by user code Pin
NewToAspDotNet10-Aug-09 7:41
NewToAspDotNet10-Aug-09 7:41 
AnswerRe: SoapException was unhandled by user code Pin
Leonardo Muzzi10-Aug-09 8:46
Leonardo Muzzi10-Aug-09 8:46 
AnswerRe: SoapException was unhandled by user code Pin
Gayani Devapriya10-Aug-09 16:50
Gayani Devapriya10-Aug-09 16:50 
GeneralRe: SoapException was unhandled by user code Pin
NewToAspDotNet10-Aug-09 21:38
NewToAspDotNet10-Aug-09 21:38 
AnswerRe: SoapException was unhandled by user code Pin
NewToAspDotNet10-Aug-09 22:21
NewToAspDotNet10-Aug-09 22:21 
Questionplease reply me Pin
amarnath n.n10-Aug-09 6:36
amarnath n.n10-Aug-09 6:36 

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.