asp.net

How do I disable or remove unnecessary form elements before an ASP.NET asynchronous postback?

I'm building a shopping cart page that could potentially contain dozens of separate items. Each item has a collapsible panel that contains several form elements that can be used to customize it. Most of the cart is wrapped in an UpdatePanel so that I can avoid a full postback when the user makes changes. When there are many items in the ...

Programatically set OnSelectedIndexChanged for a ddl

Hello, a minor question but it's driving me nuts. I'm programatically generating about 50 DDLs based on a database schema (i.e. item 1 can do a,b,c item 2 can do d, e, a, etc etc). If I was just writing the markup, I could specify: asp:DropDownList OnSelectedIndexChanged="funTimes" and be done with it, unfortunately, I'm just not su...

google maps onclick event to cause partial postback of asp.net page c#

I have used jQuery to invoke an AJAX webmethod in c#. This webmethod runs a query and stores the resulting information in a session variable. I have a gridview that has an objectdatasource that uses the session variable with the selectmethod to then populate the gridview with data from a query. I need the final piece to get the gridview ...

Get found items as list from regex

Given the following code: var myList = new List<string> { "red", "blue", "green" }; Regex r = new Regex("\\b(" + string.Join("|", myList.ToArray()) + ")\\b"); MatchCollection m = r.Matches("Alfred has a red and blue tie and blue pants."); Is there a way to derive a List<string> of the "found" items ("red", "blue", "blue")? ...

Popup close on button click and redirect to different page!!

Hello I have a popup that is shown after successfully saving in the database. It shows "Password is successfully saved" and also has a "Ok" button. I want the popup to be closed when Ok is clicked and should be redirected to login page. With my code here, it saves, shows the popup, when OK is clicked,it stays on the same page. Please he...

parsing search engine keywords

Hello everyone! I am trying to find the most effective way to parse my System.Web.HTTPRequest.UrlReferrer to find the search term that was used to drive the visitor to my site assuming they arrived at my site via a search engine results page. I am thinking (hoping) I'd use the HttpUtility.ParseQueryString method, but my problem comes i...

Beginner ASP.Net / SQL Server security issues

Okay, this may be involved... Anyway, I am trying to learn how to use ASP.Net. The environment is like this: Windows 7 Professional Visual Studio 2010 SQL Server 2008 Developer Edition I am trying to follow the article here: Developing and Unit Testing an ASP.NET MVC 2 Application - CodeProject So far, I have installed IIS, IIS7 ...

How to redirect to silverlight page from asp.net

Hi i have an ASP.Net application and from one page i have to redirect to silverlight page, i am new to silverlight so i have two question Can i add silverlight page in asp.net app or i will have to add silverlight application in asp.net solution. How to redirect from asp.net page to silver.(i want to pass some data from asp.net to silv...

User Activity Profile and Statistics

I am just exploring on what is the best practice/framework for implementing feature for collecting and displaying user activity statistics that is user specific and site relating to login user activities in ASP.NET. For example, I will want to know for a particular login user on my site, which site he/she has visited in the last day, wee...

redirect current page to download page in asp.net

Hi all, I have problem when try auto download in another page that already been specify. In current page, I have button to trigger to redirect page to download page, but I wish to download done automatic, even it don't done automatic. It can be done using link to download file. File name wish to download, transfer using querystring, co...

When I view Page Source of my aspx page in browser I see this...

<form name="aspnetForm" method="post" action="/Web/Test.aspx" id="aspnetForm"> <div> <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTY1NDU2MTA1Mg9kFgJmD2QWAmYQZGQ...

timeout and auto logout in asp.net 2.0 with IIS 7 even after doing all the possible settings

Hello, I have an ASP.NET 2.0 web site hosted on Windows Server 2008 with IIS 7. I am using InProc session mode (specified in web.config). My client wants the timeout to be of 3 hours, meaning if the web site is idle, session should remain alive for 3 hours. Currently, what is happening is that if the web site is idle for 20-30 min. and ...

Integrate Microsoft Office Communicator 2007 in ASP.NET Page

I am working on a website build using ASP.NET and C# for my company's intranet.So is it possible to integrate the Microsoft Office Communicator 2007 in ASP.NET Page. i.e. the site should be able to provide the current status(avalible, busy , offline) of all contacts and when a user clicks on the username, the chat window should open. ...

How to update .dbf file from .NET application

I want to update a .dbf file from my .net application. I was able to read the .dbf file into a grid but not able to update the .dbf file from my .net application. I have used following code to read the .dbf file. Reading is okay. But, not able to update .dbf file. using System; using System.Collections.Generic; using System.Component...

asp.net model popup extender

Hi I am using ajax model popup extender in my asp.net page. From my page , on click of Save button , i popup panel using model popup extender. Inside the panel , i have update panel with update mode = coditional.also inside update panel , i have user control which contains dropdownlist. When i popup the panel , during on load of userco...

How do I make a link unclickable?

Is there some CSS property or something that I can use with my anchor tag so as to make it unclickable or I HAVE to do stuff in code behind to get what I want? [edit] onclink=return false; is refreshing the page..I dont want that..want this anchor tag to appear as a plain text..actuaaly I have css applied on anchor tag..so cant change i...

Binded DropDownList with ToolTip

Hi I have a DropDownList bounded from the code behind. How can I use the DataTextField as a ToolTip of the DropDownList? DropDownList list = this.DropDownList1; list.DataSource = GetData(); list.DataTextField = "DisplayString"; list.DataValueField = "DataValue"; list.DataBind(); I want the bounded Field DisplayString to bounded also ...

question about aspx framework

Hello! I recently got a project and i would like to use asp.net to do it . I have to make a program that calculates some coordinates and comunicates with an airplane ( sending data through a radio connection ) . Can I do so with asp.net ? I mean isn't there any restriction in the privacy area? Will it let me send and recieve data to/fro...

Publishing an ASP.Net web application to a mapped drive with Visual Studio 2008 and Windows 7

We have a shared drive where web applications are published to. When I attempt to publish I get the following error: ------ Publish started: Project: XXX.Web, Configuration: Release Any CPU ------ Connecting to T:\WebSites\XXX\... Unable to create the Web site 'T:\WebSites\XXX'. The path 'T:\WebSites\XXX' does not exist or you do not h...

Asp.net page handling

The pages of my project(in asp.net) when opened in different bowser's give different out look.. that is the color is displayed in internet explore and not in Mozilla and Google chrome.even the size varies how should i handle this problem ...