Click here to Skip to main content
15,891,976 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionInsert data from girdview to sql server database ASP.NET c# Pin
VijayVishwakarma24-Jul-08 19:12
VijayVishwakarma24-Jul-08 19:12 
Questionmail server checking Pin
Member 387988124-Jul-08 18:33
Member 387988124-Jul-08 18:33 
AnswerRe: mail server checking Pin
Sam Xavier24-Jul-08 20:18
Sam Xavier24-Jul-08 20:18 
AnswerRe: mail server checking Pin
Abhijit Jana24-Jul-08 21:38
professionalAbhijit Jana24-Jul-08 21:38 
QuestionReading from access Pin
kamsabeti24-Jul-08 18:15
kamsabeti24-Jul-08 18:15 
Questionajax tabcontainer add new tabpanel with close button Pin
Bharani_Ram24-Jul-08 10:01
Bharani_Ram24-Jul-08 10:01 
QuestionHow to search data from database then populate at gridview? Pin
edwin7nice24-Jul-08 4:55
edwin7nice24-Jul-08 4:55 
AnswerRe: How to search data from database then populate at gridview? Pin
edwin7nice24-Jul-08 5:20
edwin7nice24-Jul-08 5:20 
I only can do the search function but at first page loading, i can't populate all the data from database. bbelow is my default3.aspx from northwind database with dbo.products table. Default3.aspx.vb does not has any code.

Default3.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" Inherits="Default3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
&nbsp;<asp:Button ID="Button1" runat="server" Text="Search" />

</div>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="True"
DataKeyNames="ProductID" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="ProductID" HeaderText="ProductID" ReadOnly="True"
SortExpression="ProductID" />
<asp:BoundField DataField="ProductName" HeaderText="ProductName"
SortExpression="ProductName" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConflictDetection="CompareAllValues"
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString3 %>"
DeleteCommand="DELETE FROM [Products] WHERE [ProductID] = @original_ProductID AND [ProductName] = @original_ProductName"
InsertCommand="INSERT INTO [Products] ([ProductName]) VALUES (@ProductName)"
OldValuesParameterFormatString="original_{0}"
SelectCommand="SELECT [ProductID], [ProductName] FROM [Products] WHERE ([ProductName] = @ProductName)"
UpdateCommand="UPDATE [Products] SET [ProductName] = @ProductName WHERE [ProductID] = @original_ProductID AND [ProductName] = @original_ProductName">
<SelectParameters>
<asp:ControlParameter ControlID="TextBox1" Name="ProductName"
PropertyName="Text" Type="String" />
</SelectParameters>
<DeleteParameters>
<asp:Parameter Name="original_ProductID" Type="Int32" />
<asp:Parameter Name="original_ProductName" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="ProductName" Type="String" />
<asp:Parameter Name="original_ProductID" Type="Int32" />
<asp:Parameter Name="original_ProductName" Type="String" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="ProductName" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
</form>
</body>
</html>
QuestionHow to update dropdownlist.selectedvalue into database? Pin
edwin7nice24-Jul-08 4:45
edwin7nice24-Jul-08 4:45 
AnswerRe: How to update dropdownlist.selectedvalue into database? Pin
Sherin Iranimose24-Jul-08 4:52
Sherin Iranimose24-Jul-08 4:52 
GeneralRe: How to update dropdownlist.selectedvalue into database? Pin
edwin7nice24-Jul-08 5:26
edwin7nice24-Jul-08 5:26 
GeneralRe: How to update dropdownlist.selectedvalue into database? Pin
Sherin Iranimose24-Jul-08 5:38
Sherin Iranimose24-Jul-08 5:38 
QuestionHow to add a contol(adrotator) in which pictures keep changing without refreshing the page?? Pin
diksha_g24-Jul-08 3:08
diksha_g24-Jul-08 3:08 
AnswerRe: How to add a contol(adrotator) in which pictures keep changing without refreshing the page?? Pin
windhopper24-Jul-08 20:46
windhopper24-Jul-08 20:46 
AnswerRe: How to add a contol(adrotator) in which pictures keep changing without refreshing the page?? Pin
drahmedgalal25-Jul-08 23:45
drahmedgalal25-Jul-08 23:45 
GeneralRe: How to add a contol(adrotator) in which pictures keep changing without refreshing the page?? Pin
Anudeep Jaiswal1-Aug-08 0:58
Anudeep Jaiswal1-Aug-08 0:58 
QuestionHow to provide database Search Functionality? Pin
vannapragada24-Jul-08 2:36
vannapragada24-Jul-08 2:36 
AnswerRe: How to provide database Search Functionality? Pin
Imran Khan Pathan24-Jul-08 2:58
Imran Khan Pathan24-Jul-08 2:58 
GeneralRe: How to provide database Search Functionality? Pin
Paddy Boyd24-Jul-08 3:29
Paddy Boyd24-Jul-08 3:29 
AnswerRe: How to provide database Search Functionality? Pin
www.Developerof.NET24-Jul-08 20:47
www.Developerof.NET24-Jul-08 20:47 
QuestionJavascript to convet english to french Pin
bommareddy20024-Jul-08 2:33
bommareddy20024-Jul-08 2:33 
AnswerRe: Javascript to convet english to french Pin
J4amieC24-Jul-08 4:34
J4amieC24-Jul-08 4:34 
AnswerRe: Javascript to convet english to french Pin
Christian Graus24-Jul-08 11:23
protectorChristian Graus24-Jul-08 11:23 
QuestionHow to store the userId and password in session and Killing the session? Pin
mcmilan24-Jul-08 2:11
mcmilan24-Jul-08 2:11 
AnswerRe: How to store the userId and password in session and Killing the session? Pin
Imran Khan Pathan24-Jul-08 2:38
Imran Khan Pathan24-Jul-08 2:38 

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.