asp.net

What are the limitations of the view state approach?

I know that the view state approach is limited to only a specific page. When we navigate to another page then information is lost. Other than this limitation are there any limitations with view state? ...

difference between Page_Load() and OnLoad() ?

Possible Duplicate: Difference between page_load and onLoad what is the difference between the Page_Load() and OnLoad() event handlers. do they originate from a different point ? ...

How can i add a condition string to an sql query in an var type

Im working on an source code with an sql query in a VAR type like var query = select ... from ... where ... ; is it possible to add an dynamic "where clause" like string condition = "where x.x > x.y"; e.g. var query = select ... from ... + condition; Iam sorry for my bad english ...

How to use NHibernate with asp.net 3.5

Hi, I want to use NHibernate with Asp.net 3.5 but i don't know how to use it.I search on Google but couldn't find the complete explanation about why to use NHibernate,Advantages of using it and integration with Asp.net projects.Please Help me. ...

Determine which tab an action was called from?

hello! I'm editing some code which wasn't written by myself but someone who's no longer here. The page I'm editing had three tabs, each tab contains a diffrent grid view which is populated by a search box with in the tab. Each row in the grid view has a check box. When a print button is pressed all records with a tick in the check box...

asp.net gridview tr id unique for jQuery

Hi I have created a ASP.NET WebForms Gridview and I need to access each row (e.g. the <TR>) of the table in javascript/jquery.... Unfortunately it looks like the <tr>'s generated by the gridview all have the same ID! Is there a way to change this? Any ideas how I could access a particular row in javascript (basically I am trying to ca...

good/simple example asp:gridview describing all its functionalities?

I have a temporary datatable, private DataTable getmyDatatable() { DataTable dt = new DataTable(); DataColumn dc; dc = new DataColumn("Name"); dt.Columns.Add(dc); dc = new DataColumn("Age"); dt.Columns.Add(dc); dc = new DataColumn("Address"); dt.Columns.Add(dc); ...

What is the command to access Exchange Management Tools from C# code in Exchange 2010

In Exchange 2007 this line of code is used to load the Exchange Poweshell commands snapin: PSSnapInInfo info = rsConfig.AddPSSnapIn( "Microsoft.Exchange.Management.PowerShell.Admin", out snapInException); However, this does not exist in Exchange 2010 and I am pulling my hair out trying to find out how to access the Exchange Powers...

inserting data into a sqlserverdatabase

how to insert dynamic data from a asp.net page in sqlserver database ...

How to identify where I am publishing to for use in the pre-build event

I would like to use Nant to create an environment-specific web.config during the build process when I'm publishing to a given location. For example, when I am publishing to my TEST server, I want the web.config's connection string to point to the TEST database. When in PROD, to the PROD database. I have Nant working in the pre-build, ...

Silverlight 4 and Newtwok Tracing

I want to use Network Tracing with Silverlight, however, I am not quite sure how to enable it. The MSDN documentation explains that some configurations should be added to the web/app config file. Unfortunately, Silevrlight apps do not use config files, at least the latter are not available in the list shown when add new item is pressed o...

Which Facebook API can I use to get Foursquare like signup behavior?

I am totally lost finding the right API to create a sign up process like Foursquare. I am attaching a document of what I am trying to do. I have already tried OAuth, JavascriptSDK, Facebook.NET API from Codeplex and FacebookToolkit.NET from Microsoft. Nothing looks what I actually need. I think some one experienced can lean me towards wh...

ASP.NET Dynamic Data for other languages.

Hi. i am new on asp.net Dynamic Data. my web application are not in english language. I'm using the Persian language. is it possible to use this language and alignment for it (Right To left) on asp.net Dynamic Data? and persian name for my labels gridview and etc.. Does my question Clear? How to supports persian or arabic language in Dy...

How to disable the tr and the controls inside that tr like gridview,imagebutton

I have tr and inside tr, there are gridview and image button. I want to when i click activate/deactivate button, the the controls inside the tr get disabled and enabled. when disabled, i dont want to allow user to click on gridview and imagebutton. ...

user control inherits from custom control

I have an custom control that extend System.Web.UI.UserControl. Is it possible to inherit user control from this custom control? ...

IIS is unable to run "net use" command in a batch file

Hi everyone, We have a CMS application that used to be able to run all the commands in a batch file; however, it has been failing in the last week. For testing, we have modified the contents in the batch file like this: echo starting > c:\log.txt whoami >> c:\log.txt net use Z:\ \\192.168.2.123\share\ password /user:userWithAdminRig...

Is there any way to implement MaintainScrollPositionOnPostBack functionality in jQuery

ASP.NET 2.0 had the following property MaintainScrollPositionOnPostBack and it could be used to maintain browser position on post back. Can this be achieved using jQuery and if yes how? I have read a few articles mentioning that MaintainScrollPositionOnPostBack doesnt work in some browsers like Chrome/Safari etc. ...

WCF Workflow Service Application - Required Extensions

Hello, I built a WCF Workflow Service App and I built in a custom activity with a required extension in the workflow. In a web app, I'm trying to create a service reference to the WCF workflow service but it says that an extension that is required has not been provided; so how do I consume a service with a required extension? At what ...

ASP.NET: "Could not find installable ISAM" exception when trying to read dBASE IV file.

I need to open and read a Dbase file in my ASP.NET application. When I try to open the connection, I am getting the exception "Could not find installable ISAM." I have tried the solutions in the top answer in this question, but they did not work for me. The filepath of the data file is C:\dev\DATA.DBF. Here is the code I am using to try...

Generate dynamic calendars based on default calendars date selection

Hi, say i have 2 asp.net default calendars. Now from one i select the date as August 20 2010 and in second i select the date as March 2011. My Question: How can i generate dynamic calendars based on dates that i have selected inclusive of the dates? Hence for above example the dynamic calendars would be say from August 2010, September...