.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

aspx.cs file needed

Posted By: priti     Posted Date: April 11, 2011    Points:5   Category :ASP.Net
i have made a product detais module as productdetails.aspx
i ned d productdetais.aspx.cs file in c#

aspx file:



<%@ Page Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true" CodeFile="Productdetails.aspx.cs" Inherits="Productdetails" Title="Product Details" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" language="javascript">
function Validate_ProductMaster()
{
var msg = "";
var str = "";
var ch = "";
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
var regex = /^[\w]*$/;

if((document.getElementById('ctl00_ContentPlaceHolder1_txtProductname').value)=="")
msg += "Product Name must be entered\n";
if((document.getElementById('ctl00_ContentPlaceHolder1_txtProductdescription').value)=="")
msg += "Product Description must be entered\n";
if((document.getElementById('ctl00_ContentPlaceHolder1_txtProductmake').value)=="")
msg += "Product Make must be selected\n";
if((document.getElementById('ctl00_ContentPlaceHolder1_txtProductmodel').value)=="")
msg += "Product Model must be selected\n";
if((document.getElementById('ctl00_ContentPlaceHolder1_ddlUnitid').value)=="")
msg += "Select Unit ID \n";
if((document.getElementById('ctl00_ContentPlaceHolder1_txtBarcodevalue').value)=="Select")
msg += "Barcode Value must be entered \n";
if((document.getElementById('ctl00_ContentPlaceHolder1_txtBarcode Caption').value)=="Select")
msg += "Barcode Caption must be entered \n";
if((document.getElementById('ctl00_ContentPlaceHolder1_txtSaleprice').value)=="Select")
msg += "Sale Price must be entered \n";
if((document.getElementById('ctl00_ContentPlaceHolder1_txtMRP').value)=="")
msg += "MRP must be entered \n";
if((document.getElementById('ctl00_ContentPlaceHolder1_txtPurchaseprice').value)=="")
msg += "Purchase Price must be entered\n";
if((document.getElementById('ctl00_ContentPlaceHolder1_txtReorderlevel').value)=="")
msg += "Reorder Level must be entered \n";
if((document.getElementById('ctl00_ContentPlaceHolder1_txtStockinhand').value)=="")
msg += "Stock In Hand must be entered \n";

if(msg != "")
{
alert("Please enter all the mandatory fields\n\n"+msg);
return false;
}
return true;
}
</script>


<asp:UpdatePanel id="UpdateProductDetails" runat="server">
<contenttemplate>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD style="WIDTH: 365px" vAlign=top><BR /><TABLE cellSpacing=0 cellPadding=0 width="95%" align=center border=0><TBODY><TR><TD><TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0><TBODY><TR><TD style="WIDTH: 16px; BORDER-BOTTOM: #ed9c00 3px solid"><IMG height=31 src="./Images/tbltop-left.gif" width=16 /></TD><TD style="WIDTH: 25%; BORDER-BOTTOM: #ed9c00 3px solid; HEIGHT: 31px" noWrap align=center bgColor=#003366><SPAN class="bigboldtext">Product&nbsp;Master -<asp:Label id="lblMessage" runat="server" __designer:wfdid="w56"></asp:Label> </SPAN></TD><TD style="BORDER-BOTTOM: #ed9c00 3px solid"><IMG height=31 src="./Images/tbltop-right.gif" width=16 /></TD></TR><TR><TD align=right colSpan=3 height=20><SPAN class="mandatory">* denotes mandatory fields</SPAN></TD></TR></TBODY></TABLE><asp:UpdateProgress id="UpdateP" runat="server" __designer:wfdid="w57" AssociatedUpdatePanelID="UpdateCustomerDetails"><ProgressTemplate>
<DIV align=center><asp:Image id="imgloading" runat="server" Width="400px" __designer:wfdid="w58" Height="168px" ImageUrl="E:\einventory\images\imagesblue.jpg"></asp:Image> </DIV>
</ProgressTemplate>
</asp:UpdateProgress> </TD></TR><TR><TD class="td_border"><TABLE class="tbl_border" cellSpacing=0 cellPadding=2 width="100%" align=center border=0><TBODY><TR><TD style="WIDTH: 49px">Product&nbsp;Name<SPAN class="mandatory">*</SPAN> </TD><TD style="WIDTH: 216px"><asp:TextBox id="txtProductname" runat="server" Width="220px" __designer:wfdid="w59" CssClass="flattxt" MaxLength="100"></asp:TextBox> </TD></TR><TR><TD style="WIDTH: 49px; HEIGHT: 23px">Product Description</TD><TD style="WIDTH: 216px; HEIGHT: 23px"><asp:TextBox id="txtProductdescription" runat="server" Width="220px" __designer:wfdid="w60" CssClass="flattxt" MaxLength="100" Height="16px" TextMode="MultiLine"></asp:TextBox> </TD></TR><TR><TD style="WIDTH: 49px">Product Make&nbsp;*</TD><TD style="WIDTH: 216px">&nbsp;<asp:TextBox id="txtProductmake" runat="server" Width="220px" __designer:wfdid="w84" CssClass="flattxt" MaxLength="100" Height="16px"></asp:TextBox></TD></TR><TR><TD style="WIDTH: 49px; HEIGHT: 31px">Product Model<SPAN class="mandatory">*</SPAN></TD><TD style="WIDTH: 216px; HEIGHT: 31px"><asp:TextBox id="txtProductmodel" runat="server" Width="220px" __designer:wfdid="w85" CssClass="flattxt" Height="16px"></asp:TextBox></TD></TR><TR><TD style="WIDTH: 49px">Unit ID<SPAN class="mandatory">*</SPAN></TD><TD style="WIDTH: 216px"><asp:DropDownList id="ddlUnitid" runat="server" Width="224px" __designer:wfdid="w65" CssClass="dropdown_list" AutoPostBack="True"><asp:ListItem Selected="True" Value="-">Select</asp:ListItem>
</asp:DropDownList> </TD></TR><TR><TD style="WIDTH: 49px">Barcode Value</TD><TD style="WIDTH: 216px"><asp:TextBox id="txtShipAdd1" runat="server" Width="220px" __designer:wfdid="w66" CssClass="flattxt" MaxLength="100">
</asp:TextBox> </TD></TR><TR><TD style="WIDTH: 49px; HEIGHT: 41px">Barcode Caption&nbsp;*</TD><TD style="WIDTH: 216px; HEIGHT: 41px">&nbsp;<asp:TextBox id="txtBarcodecaption" runat="server" Width="216px" __designer:wfdid="w87" CssClass="flattext"></asp:TextBox></TD></TR><TR><TD style="WIDTH: 49px">Sale Price</TD><TD style="WIDTH: 216px"><asp:TextBox id="txtSaleprice" runat="server" Width="220px" __designer:wfdid="w72" CssClass="flattxt" MaxLength="100"></asp:TextBox> </TD></TR><TR><TD style="WIDTH: 49px">MRP</TD><TD style="WIDTH: 216px"><asp:TextBox id="txtMRP" runat="server" Width="220px" __designer:wfdid="w73" CssClass="flattxt" MaxLength="100"></asp:TextBox> </TD></TR><TR><TD style="WIDTH: 49px">Purchase Price</TD><TD style="WIDTH: 216px"><asp:TextBox id="txtPurchaseprice" runat="server" Width="220px" __designer:wfdid="w74" CssClass="flattxt" MaxLength="100"></asp:TextBox> </TD></TR><TR><TD style="WIDTH: 49px">Reorder Level</TD><TD style="WIDTH: 216px"><asp:TextBox id="txtReorderlevel" runat="server" Width="220px" __designer:wfdid="w75" CssClass="flattxt" MaxLength="100"></asp:TextBox> </TD></TR><TR><TD style="WIDTH: 49px">Stock In Hand</TD><TD style="WIDTH: 216px"><asp:TextBox id="txtStockinhand" runat="server" Width="220px" __designer:wfdid="w76" CssClass="flattxt" MaxLength="100"></asp:TextBox> </TD></TR><TR><TD style="WIDTH: 49px">Company Code</TD><TD style="WIDTH: 216px"><asp:DropDownList id="ddlCompanycode" runat="server" Width="200px" __designer:wfdid="w77" CssClass="dropdown_list" AutoPostBack="True"><asp:ListItem Selected="True" Value="-">Select</asp:ListItem>
</asp:DropDownList> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><asp:HiddenField id="hndProductcode" runat="server" __designer:wfdid="w82"></asp:HiddenField> </TD></TR></TBODY></TABLE>
</contenttemplate>
</asp:UpdatePanel>
</asp:Content>




Responses
Author: Maverick             
Posted Date: April 11, 2011     Points: 20   

Hello,

Can you please clarify your requirements.

Thanks,
Maverick

Thanks,
Maverick
Author: hark             
Posted Date: April 09, 2013     Points: 20   

You need a product detais.aspx.cs file in c#? What does that suppose to mean?






_______________________________________________________
http://www.barcodelib.com/java_barcode/main.html

Author: lucy313             
Posted Date: November 20, 2013     Points: 20   

hey, i just find this more or less related to aspx. you may check it and find useful information .
http://www.keepautomation.com/products/aspx_generator_script/

Author: cindy313             
Posted Date: December 30, 2013     Points: 20   

not familiar to such a problem , check this site
http://www.keepautomation.com/



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend