I have several settings in my project area (stored in web.config). However, the scope is not editable and is permanently set to "Application", which means I can't edit them at run time. I would really like to be able to edit these from the web interface. I know that doing so would restart the application (since the web.config was modified), but I'm okay with that, once the settings are written.
Is there any way to programmatically modify the settings in the <applicationSettings><PROJECT.Properties.Settings> area of the web.config?
I retrieve a record on my database through Page_Load event here's the content of my Code:
hMenuID.Value = Request.QueryString["id"]; //Display information of links on the entries cnDBConnection.ConnectionString = clsFunction.strConnection; cnDBConnection.Open(); cmModule.Connection = cnDBConnection; cmModule.CommandText = "SELECT * FROM modules WHERE id=" + clsFunction.ReplaceString(hMenuID.Value.ToString()); rdModule = cmModule.ExecuteReader(); if (rdModule.HasRows == true) { rdModule.Read(); txtModuleLabel.Text = rdModule["name"].ToString(); txtModuleLink.Text = rdModule["link"].ToString(); cboParentID.SelectedValue = rdModule["menuid"].ToString(); } cmModule.Connection.Close(); rdModule.Close(); cnDBConnection.Close();
So, the data appears on my textboxes and a combo box. I tried to modify the content of my textbox and click on the Update button. Unfortunately, there's no modification that happen. Here's my code in the Update button
I am trying to set the style of an asp:TextBox in codebehind, the textbox is style is set initially to style="display:none" when I set the dispaly to block in codebehind the textbox appears for a moment and then it's gone. I don't know what this problem is, when it's done in javascript it works fine
I'm repeating my question because the prior one under this topic was lost.
I want to use MicrosoftReportViewer for Web Forms so that the DataSource be set programmatically. There is some sample code on the Internet for Windows Forms but I haven't found anything for Web Forms. For example, here is some code I've tried to use. It gives no errors but nothing is displayed.
How should I modify the code to display a table in the ReportViewer?
I have a radiobuttonlist control in an AJAX tabpanel, which I would like not to postback whenever the selected item is changed. But I do want to modify the text in a textbox, that is within a separate updatepanel, to be the text of the new selected item.
the current page code below lists profile information of all users within with my site. i'd like to modify it so that it only displays information about the current user logged in.
Find if the current time falls within hourly ranges and display the start hour and end hour of that range in labels.
Examples:
If the current time is 8:46am, label startTime would return "8am" and label endTime would return "9am" If the current time is 10:01pm, label startTime returns "10pm" and label endTime returns "11pm" If the current time is 12:59am, label startTime returns "12am" and label endTime returns "1am"
I have been working with the C# TimeRange class but not getting what I need.
I'm using a sqldatasource to retreieve and display values in a listview. I used a list view since I wanted to use custom formating. I have an itemtemplate with the retreieved values. I have list one of the rows
I'm developing a website for a company. They want the website to be in Arabic. So, a lot of things need to inverted in a classical website. The menu control has arrows indicative of child items. Now, I know that the menu control renders as a table. Also, I know I could change the shape and look of the arrows with a custom image by modifying StaticPopUpImageUrl & DynamicPopUpImageUrl properties.
What I need is to make the arrows appear left of the menu entry. I tried wrapping the menu control in a div with the attribute dir set to "rtl", but it didn't work. So, what could I do to fix this? Also, if I couldn't do that in the menu control and needed to create my own menu control. Are repeaters practical?
I'm trying to use images representing arrows to allow the user to change the order in which items appear in a list in a grid view in ASP.NET.
I have a class which has a value named "position", the class is displayed inside the GridView and is ordered by position. In each of the rows of the gridview are an up and down arrow which i want to change the value of "position" for the object represent by the row of the gridview. Whats the easiest way to do this?
I use the AdRotator control to display my photos on my main web page without any hypertext link. This work well, but i want to put two arrows or buttons on my page to allow user navigate into my pictures by just clicking on theses button (next, previous).
I am using Visual Studio 2005, I dnt know which short key I pressed but after that what happened is all the spaces or tabs are now converting into dots or arrows.
for example the code is displaying like that as shown below
Its showing properly :00 but if i click up/down arrow its showing something like "NaN". arrows are not working and iam trying to get TimeSelector1.Hour but its throwing error.
I am using sql server 2005. In this query i want the log-in user detail should also display but it is not displaying . modify the query so that log-in user detail should also display with the help of session[userId].tostring(); Query written by me is:
SELECT DISTINCT MUDMEMBER.PK_ID, MUDMEMBER.EMPLOYEE_ID, LKB.BANK_NAME, MUHD.SALARY_ACCOUNT_NO, MUHD.PF_NO, MUHD.PAN_NO, MUHD.GENDER, LKD.DESIGNATION_NAME FROM M_LEADERLED MLL INNER JOIN M_USER_DETAILS MUDMEMBER ON MLL.LED_ID = MUDMEMBER.PK_ID AND MLL.START_DATE <= Getdate() AND MLL.END_DATE > Getdate() AND MLL.LEADER_ID = '1' LEFT OUTER JOIN M_USER_HR_DETAILS MUHD ON MUHD.FK_USER_ID = MUDMEMBER.PK_ID AND MUHD.IS_ACTIVE =1 LEFT OUTER JOIN LK_BANKS LKB ON LKB.PK_ID = MUHD.FK_BANK_ID LEFT OUTER JOIN LK_DESIGNATION LKD ON LKD.DESIGNATION_VALUE = MUHD.FK_DESIGNATION_VALUE AND LKD.FK_ORGANIZATION_ID = 1 AND LKD.IS_ACTIVE = 1 WHERE MUDMEMBER.ACTIVE = 1
I saw a horizontal menu bar on CNN that used scolling images. The bar had arrows on eithe end to scroll the imagessmoothly to the left or right. Additionally clicking on one of the images filled a dsiplay area below the bar with information relatinh to the image. I prefer CSS only but if I must use JScript then I will.
I haven't been able to find any code to do this and don't have the knowledge yet to write it myself. I saw one site that said I could get code similiar to what I need but then it never gave a link to download it. My boss wants it on our web page if I can make it happen.