Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested ASP.Net Programming Solutions: 1 - 25 of 10993
 
I have Popup() function in Javascript. How can I call this function from ASPX.cs code behind file ? Can I directly call Javascript function from my C# code behind. Thanks in advance.
On my web page, I want to let the user be able to browse for a file and select it. The file should be either on his client or on his network. I will in my ASP parse the content of the file. Th...
I have a gridview with one column called "Advertiser". When the "Edit" button is clicked, the litteral-control shall be replaced with an textbox control, and the "Edit button shall be replaced...
Hi there,  I have the following code on my page to try and retreive the value of a log in session variable: <script runat="server"> Sub Page_Load (s as object, e as eventargs) Dim objChk...
I got a gridview in which i selected a row by clicking anywhere on the row and now i am trying to get a cell value of the selected row into a datatable. I am getting an error saying " Input...
This is a re-post. I have tried all I can but still the user gets redirected to the login screen after twenty minutes. Not the value I set in my web.config, machine.config file,  IIS. Web.C...
Hi all, I have a COM object I'm trying to use in an asp.net application. Not sure what the COM is written in, buy it belongs to an asp based CRM app, Sage CRM. According to tutorials that I...
We have a textbox and when we press enter we want to submit the form. But asp.net did set the focus on the wrong button so when we press enter we don't submit the form but call the wrong butt...
I am looking for a way to insert a new record dierectly from the gridview. I have the delete and edit working fine and can add a new record if I also link a detail view to the gridview. Would ...
Dynamically create ASP.NET Menu Control and thr menu item using C# on button click can anyone provide me code sample please
From within my page load event I need to be able to call a javascript function and get the value the function returns.  For example: Private Sub Page_Load(ByVal sender As System.Object, B...
Hi there, I am using the delete command within ASP DataGrid. When I click the delete link on the datagrid, I get the following error: <<Index was out of range. Must be non-negative and l...
2 DropDownList Boxes (ddStates, ddCounties) Both are AutoPostBack. ddStates_SelectedIndexChange says to populate ddCounties. ddCounties_SelectedIndexChanged says to populate some other Drop...
How do I format the following timespan object to 2 decimal places? My code below is outputting "0.2333333333337" but I need to simply output "0.23"   lbl.Text = String.Format("{0:#.##}",...
I've been given a task to remove the edit and delete buttons from each row of the gridview and have one edit, insert, and delete button located at the top of the grid.  What they want is for t...
I need some serious help here. I have a Grid View in ascx file. Simple Like this: <asp:GridView ID="grdFamily" runat="server"> </asp:GridView> First: I need to add columns dynam...
I've got a datagrid on my page along with a button which when clicked should generate the excel sheet. I've got the code to work for generating the excel sheet the same manner the datagrid is ...
I'm not new to asp.net but I have not used asp.net with javascript a lot  so I was trying this test to pop up a message when the dropdown is toggled back and forth <script language=javascri...
I am trying to leave my home page unprotected, with certain sub directories protected (see code below).  The location sections of my web.config are not working.  The whole site is unprotected....
I'm using asp.net 2.0. Changing the timeout property of the sessionstate element in the web.config file doesn't seem to work for me. I set the timeout to 1 minute. Then I used the following t...
I have a DropDownList, AutoPostBack is set to true, and it fires great, except if the user picks the first item, which granted is what is showing, but does the DropDownList then automatically ...
Hi - have a GridView to show data within a table format.  The columns are bound.  How would I make a particular column value a hyperlink? Is there a way, instead of making the asp:BoundFiel...
This shouldn't be hard Here's my Javascript code: var dropdown = document.getElementById(<%= ddlStateID.ClientID %>); var text = dropdown.options[dropdown.selectedIndex].value; and h...
I am trying to programmatically add a template field to an ASP.NET GridView control using C# code behind. I can successfully add the template field with not problem, the problem I am having is...
Hi Everyone, I tried using the below javascripts on my vb code behind for both the page_load and btCancel_Click event, it does not take me back to the previous page.   btCancel.Attribute...