Latest developer linksBookmark and Share
 
HomeThis WeekTop MonthTop AlltimeSearchRegisterFAQ
  
 
Submit Your Link
Please login to submit your Link
 

In asp.net C# , Barcode Generation live working concept ???

Posted: Dec/16/2010   By: nikhil   Points:15   Category: .NET  - ASP.Net    Views:49   Vote Up (0)   Vote Down (0)    

This is my master Table
Category  Code  Porduct Code Weight Code
Soap 1234 Lux 2345 100g 3455
Shampoo 2345 Sunslik 3456 200g 3456
Powder 3456 Santoor 4567 500g 3457
Now let us consider :-
Powder+Santoor+500g= 345645673457   
1.If any new product comes for example:- Until now we dont have 'ponds' product in our Master.
So if its new product is coming then, How we can generate barcode for that product based on above master table structure
Ex:- Powder+Ponds+500g= ????? 
And we can insert the generated code into our master table.
2. How to create 12 Digit Barcode and print the code in sticker and paste it on an Item?
And also it should be work on hosting server also, without any problem ... (Need asp.net C# Live working code)
3.Based on the master table, We are purchasing Powder+Santoor+500g = 800 Qty on 05-Dec-2010. Then , what will be the 
structure of purchase table? Give live example purchase Qty as per the master table data.

Comments:
Be the first to comment this post.
 
Post Comment
Please login to post your comment
More Related Resources

Creating a Test server - Certain links getting redirected to live server.

  

Hi.

We had a website deployed on IIS server remotely say www.liveserver.com.

We recently decided to make a copy of the website internal to the organisation so we brought a server and copied all the code from live server and configured it and say it is http//archives-testserver.com


Everything seems to work fine but while navigating and clicking on certain module  links within  http//archives-testserver.com......the domain name is getting rewritten to www.liveserver.com and user is made to navigate on the live site. I wonder where this configuration is with in IIS...

I looked under properties under website identification and everything is referring it as http://arhives-testserver.com.  also thr is a file called securityRedirect.inc and ifor handling errors and all the references have been changed and couldn't find anything in web.config.


I would really appreciate if anyone can guide in right direction, where else to look for probable reference to live site?










How can i create Barcode for coupon???

  

 Hi all,

I am creating a web site that provide coupon for it's registered member. I want to set up barcoad for each coupon that the member printed. How can i create barcode and Print them in a html page that is used as my coupon page.

Is anybody can give me solution for that???? Please help me, its argent.

Bye

With regards

Sadequzzaman Monoj

Bangladesh


ajax script manager EnablePartialRenderring not working

  

All,

The below markup has the script manager EnablePartialRenderring set to true. However, the page flickers and does a full post back. Can anyone see something the matter in the markup? How can I get rid of the page flickering when the timer fires off the update panel?

Thanks for any feedback!

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ImportFile832.aspx.cs" Inherits="AccuPrice.Web.UI.ImportFile832" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!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 id="head1" runat="server">

<title>Import 832 Files</title>

<style>

.modalPopup

{

background-color:#ffffdd;

border-width:3px;

border-style:solid;

border-color:Gray;

padding:3px;

width:750px;

}

.modalBackground

{

background-color:Gray;

filter:alpha(opacity=70);

opacity:0.7;

}

</style>

</head>

<body bgcolor="#ffffff">

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

<div style=" background-color:Silver; color:Red;height: 860px; font-weight:bold " >

 

<div style="background-color:#990000; color:White; font-size:large">

<br /><br />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Choose a Vendor:&nbsp;&nbsp;&nbsp;&nbsp;

<asp:DropDownList ID="DrpDownVendors" runat="server" AutoPostBack="true"

Width="200px" DataTextField="VendorName" DataValueField="VendorId" >

</asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;

<asp:Button ID="btnProcess" Text="Begin Processing" runat="server" BorderStyle="Solid" ForeColor="Black" CausesValidation="false" />

<br />

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePartialRendering="true"></asp:ToolkitScriptManager>

<br />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Display 832 Status for this date:&nbsp;<asp:TextBox ID="txtProcessDate" runat="server"

Width="75px" AutoPostBack="true"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;<asp:CalendarExtender ID="ProcessDateExtender" TargetControlID="txtProcessDate" runat="server"></asp:CalendarExtender>

 

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode= "Always">

<ContentTemplate>

<asp:Timer ID="RefreshTimer" runat="server" Interval="5000" ontick="RefreshTimer_Tick" ></asp:Timer>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Processing Status:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<asp:Label ID="lblStatus" BackColor="White" BorderColor=White BorderStyle=None

width="655px" runat="server" ForeColor="Black"></asp:Label>

</ContentTemplate>

</asp:UpdatePanel>

<br />

</div>

<br />

<asp:Panel ID="Panel1" runat="server" ScrollBars="Vertical" Height="605px"

Width="1100px" HorizontalAlign="Center" style="margin-top: 5px; margin-left:40px" >

<asp:GridView ID="grd832" HorizontalAlign="Center" ForeColor="#333333" runat="server"

Width="1086px" Height="600px" CellPadding="4"

GridLines="Horizontal" AutoGenerateColumns="false" DataKeyNames="RIDN"

PageSize="40"

EmptyDataText="No information was found in the system for that date.">

<Columns>

<asp:BoundField HeaderText ="EDI File" DataField="EDIFileName" />

<asp:BoundField HeaderText ="Date Ran" DataField="StartTime" />

<asp:BoundField HeaderText ="Contract Number" DataField="ContractNumber" />

<asp:BoundField HeaderText ="Base Prices Updated"

DataField="TotalBa

Ajax Calender extender not working with ScriptManger

  

Hi everyone,

Does the Ajax Calander extender work with "ScriptManger" or Do I have to use ToolkitScriptManager?


For some reason calander extender doesnt work with script manager ..but does work with ToolkitScriptManager. ( But I do not want to use ToolkitScriptManager).


can anybody see anything wrong with the below code.

Any suggestions are highly appreciated...

<form id="form1" runat="server">
    <div>
        <div id="x">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:TextBox ID="TextBox2" runat="server" Width="200px"></asp:TextBox>
            <ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" PopupPosition="Right"
                PopupButtonID="TextBox2" TargetControlID="TextBox2" Format="dddd, MMMM dd, yyyy">
            </ajaxToolkit:CalendarExtender>
        </div>
    </div>
    </form>



Jquery is not working on Master page.

  

HI..I been using Jquery for image annotations in asp.net which is working fine on the Default.aspx page only and when I use the master page it stopped working.

I added all the JS files on the master page and put code below for testing:

<script language="javascript" type="text/javascript">
          $(document).ready(function () {
        $("#b1]").click(function () {
            alert("Welcome jQuery !");
        });
    });

The "b1" button  is on the master only.On page load it says "Microsoft Javascipt run time error object expected"..Why so..?

Secondly, how to call the element put on the content page ..?





Dropdown list working in IE, but not firefox...

  

Hello-

I have 2 drop down lists in a gridview. OnselectedIndexChanged for either of the dropdownlists, I would like to remove the value option from that dropdownlist, and add it into the other dropdownlist.

My code is working perfectly in internet explorer, but when I try to run in Firefox, it gives me the following error:"

"ddl2.options is undefined"


default.aspx

<ItemTemplate>
                <asp:DropDownList ID="ddl1" runat="server" CssClass="box2" Style="width:55px;" AutoPostBack="False">
                </asp:DropDownList>
</ItemTemplate>



default.aspx.vb

ddl1.Attributes.Add("OnChange", "dd1_Changed(this," & ddl2.UniqueID & "," & e.Row.RowIndex + 1 & ");")




<head> i default.aspx

function dd1_Changed(sdr, ddl2ID, row) {

        var GridView = document.getElementById('<%= gvSchedule.ClientID %>');
        // Get the EditIndex from a hidden variable
        var ddl2ToChange = GridView.rows[row].cells[6].firstChild;

        var text = sdr.options[sdr.selectedIndex].text;
        var value = sdr.value;
        var opt = new Option(text, value);
        ddl2ToChange.options.add(opt);        <---------- ### THIS IS WHERE I GET THE ERROR

        sdr.options[sdr.selectedIndex] = null;
        sdr.options.selectedIndex = 0;

        sortList(ddl2)
    }



Any help is appreciated. Thanks



Flash Banner not working

  

Hi,

       I recently used a code to display flash banner in my web page. The flash banner is saved in database.

It is rendered to web page using the code  

Byte[] bytes = (Byte[])dt.Rows[0]["ImageData"];

                Response.Buffer = true;

                Response.Charset = "";

                Response.Cache.SetCacheability(HttpCacheability.NoCache);

                Response.ContentType = dt.Rows[0]["ImageType"].ToString();

                Response.AddHeader("content-disposition", "inline;filename=" + dt.Rows[0]["CampaignName"].ToString() + ".swf");
               
                Response.BinaryWrite(bytes);

                Response.Flush();

                Response.End();

 

I call the this rendered page

with the below

<object id='Object1' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' runat='server'>
                                    <param name='movie' value='CampaignBannerDisplay.aspx?contentid=1" />
                                    <param name="quality" value="high" />
                                    <embed src="CampaignBannerDisplay.aspx?contentid=1" quality="high"
                                    pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
                                    type="application/x-shockwave-flash"></embed>
                                    </object>

Interestingly when i run thru visual studio it works. When i deploy the thing on IIS, it works on IE7 and 8 on all machines.

However in no machine the flash loads in ie6.

In server machine, if i right click IE 6 and say run as somebody apart from the administrator, Flash renders in my application beautifully.

If i dont say run as and open IE6 and try to access my application then i get Movie Not loaded error for flash.

.

 

What could i be doing wrong.

 

 

 


Breakpoints not working

  

Hello. For some reason the breakpoint mechanism is no longer working on my PC (Windows 7 Pro) with VS2005.

VS has "Use default Web Server" selected and Debuggers is set to "ASP.NET". The only thing that has happened on my PC is that I had briefly installed IIS but then removed it. I am not sure if that altered something or not. It used to work just fine. Can someone give me an idea what may be wrong? Thank you..

 I created a brand new web site with only the following code:

 

Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If Page.IsPostBack = False Then

            Process()

        End If

    End Sub

    Sub Process()

        Dim a As Integer
        a = 0                              <--- Put a breakpoint here and it blows right by it.

        Response.Write("TEST")


    End Sub
End Class


adding a role option in the CreateUserWizard with a listbox not working please help

  

i am using the below code to provide a "select role option" when creating new users accounts.  i am using a listbox to select multiple roles and submit it, it works when a sinlge role is selected but not when two or more are selected. The error i'm getting is "the user "someuser" is already in role "first_rolethatwasselected"  Any help greatly appreciated!   thanks 

protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)

        {

            ListBox ddl = (ListBox)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("ddlRoles");

            for (int i = 0; i < ddl.Items.Count; i++)

                if

                    (ddl.Items[i].Selected == true)

                    Roles.AddUserToRole(CreateUserWizard1.UserName, ddl.SelectedValue);

                        }


DefaultCredentials working on IIS6 but not IIS7

  

We are migrating an existing asp.net application from Windows Server 2003 with IIS6 to windows server 2008 with IIS7.

we use System.Net.CredentialCache.DefaultCredentials to pass the user credential to a web service. It is working fine with the old environment but with the new one we got "The request failed with HTTP status 401: Unauthorized." error.

How can I fix this problem with IIS7?


Thank you,


 
Categories:
.NET
Java
PHP
C/C++/VC++
HTML/XML
SAP
MainFrames
Data Warehousing
Testing
MySQL
SQL Server
Oracle
Javascript/VB Script
Others
Login
 
 
 
 
 Forgot password
 Contact Us   Terms Of use   Share your knowledge