problem in selecting value from dropdown inside a repeater and inserting the selected value inside db
there is checkbox and drop down inside my item template of repeater in one page.Based on that drop down and check box selection calculation will be done in another page which will be inserted inside a db.I cannnot fetch the value from the dropp down in my save page and as a resut data cannot be inserted inside db. plz help!!
<asp:Repeater ID="rptmenproduct" runat="server" > <HeaderTemplate> <...
Dropdownlist selected value passes first value in list no matter what value is selected. why ?
HI . I have a dropdownlist. Databinds ok but when I must pass a value as a Selected value it always passes the first value in the list even if I select another value. I tried to set the ddl to enableviewstate false but it doesn't change anything. Any ideas ? Code below, thanksLoading the ddl: productCategories = CatalogAdmin.Admin_Product_Categories_NotIn(productId); for (int i = 0; i < productCategories.Rows.Count; i++) { &...
SQL db value or AppSettings value, performance?
i have this question on performance.
now i'm loading on each page pre_init request a value out of my SQL db, would it be faster or more effecient to get this value out of my web.config where i could store this value in the AppSettings part?
normally this value is changed 4 to max 6 times a year, but since i read this article how to change programmatically a value in the web.config i don't see any problem why i shouldn't store it in the web.config, besides the fact of performance off course.
this site has atm about 70 to 90 visitors or 600 to 900 page views a day. by introducing the n...
Passing Values from a Web Form to Another Web Form
Hello All!
I am trying to pass values from one web form to another web form. I know that there are 3 ways of doing this: queryString, Server.Transfer and Session. I am using the Server.Transfer method. But I am not able to create, in my 2nd web form, an instance of my 1st web form. My 1st Web form is named CallTrack.aspx and my 2nd is named Export.aspx.
What I mean is something like this: Public value as CallTrack. I can't create it in my 2nd web form because when the intellisense is displayed, there's no CallTrack in the options.
Thanks!
How about using cross-...
Default selecting listbox values based on DB values...
I have the following code in .aspx file:<asp:listbox selectionmode="Multiple" rows="6" cssclass="FormElement" datasourceid="Unions" id="ctlUnions" tabindex="25" runat="server" datatextfield="short_name" datavaluefield="union_id"></asp:listbox><asp:SqlDataSource id="Unions" datasourcemode="DataSet" enableviewstate="true" enablecaching="true" cacheduration="Infinite" cacheexpirationpolicy="Absolute" ConnectionString='<%$ ConnectionStrings:strDataSource %&g...
If Not value or value then....
Hi all,I want to write a simple IF Not then statement in ASP.net 2.0 and I would like some help please. If Not ntuser = "DOMAIN\ntuser" Or ntuser = "DOMAIN\ntuser2" Then
Panel1.Visible = False
End If Doesnt work, can you tell me where i'm going wrong please?many thanks.
The first place you're going wrong is in telling us it "doesn't work" without providing any details.
JeffPlease: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
Use Not as stated below. It ...
find values in sql server and display different values on web page
my challenge:if the user is not found in tbl then display nothingif the user is found in the tbl and has a level value of 1 then display the following: cn, u, a, cif the user is found in the tbl and has a level value of 2 then display the following: cn, u, a, c, adNavigationView(MyUserID);if (NavigationView(MyUserID) == true) { Label1.Text = "true"; }protected bool NavigationView(String MyUserID){ String strConnection; strConnection = ConfigurationManager.ConnectionStrings["MyConnection"].ToString(); SqlConnection objConnection = new SqlConnection(strConnect...
passing values to .net web form applicationHi
Can any explain me abt how to pass values to my .NET web form application
(designed using PB 11.1) from other web application?
My intension is to redirect from a web application (ASP.NET to .net web form
application) to my web application with user information.
Thanks & Regards,
Anbazhagan
From the "Deploying Applications and Components to .NET" manual:
>>>
Starting an application with command line parameters
If your application requires command line parameters, you can assign
values to the PBCommandParm global property before you deploy the...
get value from <select> value & display value
hi all,
i want these two bold values which are below,
underline value i can get but second bold value i m not avail to get please help....
<select><option value="ma">manoj</option>
</select>
regard khushak
P.S. if possible then Please with java script other wise code behind New In .NET World
See my post in this thread. That should take care of you. Peter BrunoneMS MVP, ASP.NETFounder, EasyListBox.comDo the impossible, and go home early....
How to insert dropdownlist selected value into sql DB table
Normal
0
false
false
false
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
...
Update selected RadioButtonList value to a label in a web form
I have a web form and when you click a button, a ModalPopUp-control opens. It contains a RadioButtonList. All I want is that when user selects one of the RadioButtons in ModalPopup, it's value is updated back to a web form (label-control) using codebehind. When I click the Update-button on the ModalPopup, the correct value (RadioButtonList's SelectedItem.Text) is passed and set to label's text-property, but label remains empty on the web form so it won't update.
Anyone, please?
Hi k000der,
From your description, I understand that you use the ModalPopupE...
select cheboxlist if any values are selected in sql
hello and thanks in advance,
I have a checkboxlist that is created dynamically from table1 once the records are inserted they are inserted in table2. i can save the values into the table and remove them if i uncheckd them that is working fine. the problem is to checked the items that have been selected already, how to i do this?? really really confuse...
here is the cs code; namespace IMS_2K9.Admin
{
public partial class Order_Charges : System.Web.UI.Page
{private string connectionString = WebConfigurationManager.ConnectionStrings["IMSCon...
SQL QUERY replace NULL value in a row with a value from the previous known valueHi!!
I have a table with no unique ID, I created an Id with ROW_NUMBER ()
OVER (ORDER BY column asc) rank
and created a stored procedure with the rank and table.
In this stored procedure I want to create an extra column that checks
if the value from another columns contains value = 100
rank,Ifnummer,followingnr,productnr testing
2313,'6497269','001' ,412 , NULL
2314,'6497269','002' ,413 , NULL
2315,'6497269','003' ,100 , yes
2316,'6497269','004' ,430 ,NULL
...
Cascading Dropdown - Initially selected value
Hi there,
I am having an issue with a pretty basic problem. I have managed to get the cascading drop down lists working ok with information coming from a database. On the initial page, I need to have a value in the drop down list already selected, i.e. the current year in one drop down and current month in the next. The information from both of these is sent to a query to output a datatable.
Can anyone help with this?
I'm not sure I understand the scenario, but I think the new CascadingDropDownNameValue(..., defaultValue) constructor may be just what you're looking for. (First available ...