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...
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 ...
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...
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...
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...
2 DropDownList Boxes (ddStates, ddCounties)
Both are AutoPostBack.
ddStates_SelectedIndexChange says to populate ddCounties.
ddCounties_SelectedIndexChanged says to populate some other Drop...
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...
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 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...
Hi,
I need some help in exporting my datatable to an excel file. I only need some specific columns in my datatable to be exported to the excel. I have successfully completed the task until ...
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 need to popup a message alert in a C# web form application?
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...
This is my first web site. I'm using visual studio 2005 to create an ASP.net website with vb.net (I started with "A blank ASP.NET Web site"). I have a gridview whose DataSourceID is set to a...
Anyone know how to make a Hyperlink column in the datagrid open a new window? And... with more than one parameter passed to it?
For example... after adding data (dynamically at run time) t...
I have an ImageButton on a webform that I want to use to open a new window for data preview purposes.
After a google search, I decided to use a JavaScript function containing "location.wind...