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.
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...
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...
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...
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 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...
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...
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...
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...
2 DropDownList Boxes (ddStates, ddCounties)
Both are AutoPostBack.
ddStates_SelectedIndexChange says to populate ddCounties.
ddCounties_SelectedIndexChanged says to populate some other Drop...
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 ...
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...
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 have asked this question before and tried many fixed but wondering if anyone can offer any more suggestions.
TCP Provider: An existing connection was forcibly closed by the remote host.
...
I need to popup a message alert in a C# web form application?
I am trying to send smtp email from an ASP.NET application. It seems pretty straight forward based on all of the examples I've found on the web.
In the code below, lines 1 & 2 execute as ...
I have application running on a server that has centralised access, we keeping getting thsi "application error" . This application is written in more in ASP and about 10% in ASP.net . On the ...
im very curious to learn how to raise events in c# with delegates and it will be nice if you show me step by step how to create events and how to utilze delegates in this example
just a sid...
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...
I have installed an ASP.NET application on my laptop that is running Windows XP Professional.
When I try to open the app I get the error message below.
I have granted access to anonymous use...
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 ...
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...
Why do I get this error
Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Caching, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Th...
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...
Hi,
one of the sites hosted on our server is giving this error in event viewer
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: ...