View Complete Post
i want to replace ok and cancel button of an alert message with YES an NO button in asp.net web application.When a user will click yes the data will be saved in the database and if user clicks that will act as a reset button and do not save the data in database and the control will move with as usual to the redirect page.Any pointers will be highly appreciated.I am usin g C# language.
I have a series of dropdownlists on webform in ASP 4.0. The first drop down is filled upon load, and then when a user selects a value from that list, it populates the second dropdown. To accomplish this, I have a SQLdatasource with a parametersource of the first drop-down list control. This works great, except when a user changes their selection from the first drop down. It performs the query, but then adds the list of items to the ones that were already there from the previous selection, instead of replacing it with the new data. Here is the code:
<asp:DropDownList ID="ddlMajor" runat="server" DataMember="DefaultView"
DataValueField="majorkey" AppendDataBoundItems="True" AutoPostBack="True">
<asp:ListItem Value="0">Select Major</asp:ListItem>
<asp:DropDownList ID="ddlReq" runat="server" DataMember="DefaultView"
DataSourceID="SqlDataSource2" DataTextField="req" DataValueField="admreqkey"
I am trying to run the below but I cant get it to work. Anything that can be done here, I just want to remove all the numeric characters.
I have a table right now with just customer_id and customer_name and I want to add an image field to upload their logo.
I've searched and found articles on how to create a table and to upload an image for a new row but how do I update or add a picture to an existing row.
So if I browse through my table and found a customer without a logo or an outdated logo, how do I replace and update their logo?
i wanna make a system through which a file uploaded replaces a file on the same location and with the same name. how can i do it. please help
I am trying to replace a function and I'm thinking of the cleanest and neatest way to rewrite this, I can rewrite this within the SQL statement but I can see that it has a lot of string manipulation within it. I am thinking that one can use a cross apply
here or other techniques.
CREATE FUNCTION fnReturnFunction(
I want to replace single quote and ampersand in XSLT of data view web part.I tried to use translate function. But when i do a translate of &#39; then & is also getting replaced. Could some one help me on this.
When i insert empty datepicker value, database is inserting this value '1/1/1900 12:00:00
How can i stop that and insert null values to empty date pickers
i have done like this, but it didnt work
private object DateVAlue(Telerik.Web.UI.RadDatePicker d)
if (d.DbSelectedDate != null)
DateTime d1 = (DateTime)d.DbSelectedDate;
//return d1.ToString("yyyy-MM-dd HH:mm");
return System.DBNull.Value ;