Basically its a Content management system.
I have a category page where i have categoryname and image
In next page i have subcategory where i have to select the entered category name in dropdownlist and
then add subcategory name , image and description .
can any one help me with the ado.net connections please as i am new to asp.net
My category page is below
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="category.aspx.cs" Inherits="_Default" %>
Add Category: | |
Select Image (Resolution 92*82): | |
ShowMessageBox="True" ShowSummary="False" ValidationGroup="v1" /> | onclick="Button2_Click" ValidationGroup="v1" /> |
onrowdeleting="GridView2_RowDeleting" DataKeyNames="id" CellPadding="8" CellSpacing="4" onselectedindexchanged="GridView2_SelectedIndexChanged"> |
Naveen BishtPosted Jun 18, 2013, 6:09 AM
1-Tbl_Category
Cat_ID CategoryName
1- Clothes
2- Tbl_SubCategory
SubCat_id Cat_Id ,subCatName, subcatDesc
1 1 Rbk t-shirt rbk
2 1 Lee t-shirt Lee
you have to bind drop down list with category and select category name and value will go cate id in tbl_subcategory.