Creating customizable products in your Shopify store not only increase your customer satisfaction, it also increases your conversion rate. Here is a method to add custom options for your Shopify product and convert it into personalized product - Go to Shopify store page and search for "Advanced Product Customizer" app or you can directly the the Shopify app page by clicking on this link Advanced Product Customizer . Install Advanced Product Customizer app for free in your Shopify store From the application dashboard, enable to app embed block to complete the installation process Click "Product Custom Options" From the Shopify products list, select the product on which you want to add custom options. Advanced Product Customizer offers Image Swatch, Color Swatch, Text box, File Upload, Radio, Checkbox, Date Picker and more. Here is the a demo video for adding custom option for a Shopify product -
Add control dynamically using code on web form
Sometimes in web form we need to add controls using code. Following C# code can be used to add button control dynamically to web form. Button btn1 = new Button(); |
To add the dynamically created button control to a Panel control use following code -
Panel1.Controls.Add(btn1);
|
Event Handler for dynamically added control
We can use following code to declare click event for dynamically added button code-
btn1.Click += new EventHandler(btnClick); |
After declaring the click event, define the event handler using C# -
private void btnClick(object sender, EventArgs e)
{
Button btn = (Button)sender; //get the button which is clicked
// write your code
}
|
So, the complete code becomes -
{
Button btn = (Button)sender; //get the button which is clicked
// write your code
}
|
Similarly you can add label, linkbutton and many other controls dynamically and invoke their event handler in ASP.NET.
Comments
Post a Comment