TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Devendra Kumar
NA
517
243.9k
select dropdwon list value change my url ???
Apr 11 2016 4:50 AM
i friend facing a problem :
i have one drop down list in which select my size then prize change according to size:
but my url is change why please solve this problem:
like:
first time click product show my url like this:
but when select size another then show my url like this:
dropdown list: like
<asp:DropDownList ID="ddl_size" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddl_size_SelectedIndexChanged">
</asp:DropDownList>
and code:
protected void ddl_size_SelectedIndexChanged(object sender, EventArgs e)
{
if (ddl_size.SelectedValue != "")
{
Objadmin.Operationname = "Bindupdateprice";
Session["Image_Id"] = int.Parse(Image_Id.Value);
hid_productid.Value = Session["Image_Id"].ToString();
Objadmin.ImageId = int.Parse(Image_Id.Value);
Objadmin.TagName = Session["tagname"].ToString();
Objadmin.ProductCode = "";
Objadmin.Price = 0;
Objadmin.Size_Id = int.Parse(ddl_size.SelectedValue);
DataSet ds = Objadmin.ProductOperations();
if (ds != null && ds.Tables.Count != 0)
{
if (ds.Tables[0].Rows.Count != 0)
{
lblPrice.Text = Convert.ToString(ds.Tables[0].Rows[0]["dollar"]);
}
}
string size = ddl_size.SelectedValue;
}
}
Reply
Answers (
1
)
select distinct value with all column
insert, update store procedure in sqlserver