asp.net

How to add a FooterRow to a Gridview which has no value initially

Hi, I have a Gridview in which no rows populated initially. means i am not setting any datasource to gridview.I have to populate gridview by adding footerrow.I have given visibility of footerrow as true.So one error is coming as 'Object not set to an instance of an object'.what may be the reason for this? Can anybody help? Actually i n...

Connecting to Apple Podcast Producer with ASP.Net

I'm trying to find documentation on Apples Podcast Producer; specifically if there are any webservices I can use to fetch content with asp.net. I dont use ruby so am unable to make sense of it, and to be honest not sure how I would use it within an ASP.net app. ...

Loses session state in iframe, but not in pop-up window

Hi all We're developing a web shop, and process payments with a third party UI. We have chosen to show the payment UI inside an iframe inside out check-out page, even though (we now realize), the payment solution provider recommend using a top-level window. Now what happens is that in IE7/IE8, the payment UI loses session state on the...

Calling a method when a tree node is clicked in the Standard ASP.NET 2.0 TreeView

I have a treeview which i populate dynamically using an XML Datasource. The leaf nodes in the TreeView attempt to open a URL in an iframe within the page. This all works fine, but i would like the iframe to be hidden until the point the leaf node is selected. Does anyone know what event is triggered when the nodes are clicked?? I trie...

ASP.NET MVC users - do you miss anything from WebForms?

There are lots of articles and discussions about the differences between ASP.NET WebForms and ASP.NET MVC that compare the relative merits of the two frameworks. I have a different question for anyone who has experience using WebForms that has since moved to MVC: What is the number one thing that WebForms had, that MVC doesn't, that yo...

ASP.Net Validation not working when calling page via ajax

I have a page "MyPage.aspx" that calls "MyForm.aspx" with prototype new Ajax.Updater('display', '/myform.aspx' etc.... However, when the page renders there are no validation scripts on the page. ie, i don't see scripts like below when i call the page via ajax. If just call myForm.aspx i see the below scripts <script type="text/java...

What' the expected release date for Microsoft Velocity?

CTP3 was released in March, is there any expected release date for v1? ...

Server.execute

HI i am using server.execute in my default.aspx to call default2.aspx is it possible to fire the default2.aspx page and control events from default.aspx ...

Javascript for Google Chrome detecting & Enable javascript in Google Chrome

hi all, My application's JavaScript is working on Firefox and IE but it is not working in Google Chrome. Is it problem of enable javascript in Google chrome? or I must put any code in javascript for getting XMLHttpRequest Object of Google chrome browser. ...

Clear fields on CreateUserWizard, Login control

I have a createuserwizard and a login control on a page. both of them are customized (standard textboxes are replaced by RadTextBoxes) When i enter a value in the form and refresh the browser without submitting, the forms retain their values. Is there any way i can clear these fields on refresh. I have tried settinf EnableViewState fa...

SOA with asp.net MVC

I know that asp.net MVC supports webservices call, But I am asking in a wide scope that I have developed MVC application and I want to build an ERP that Integrates both asp.net 2005 application and my own MVC application. So is it possible? I am just an infant to think like this. And this question comes in my mind when I saw a first v...

Finding more information about browser versions with C#/ASP.Net.

First, some background to my problem. There are many versions of Internet Explorer 6 and 7 that do not support more than 20 Key-Value pairs in a cookie. I have a list of full versions that do and do not support this. This is fixed in a windows update, but it's not possible for me to force the users of my app to carry out windows update...

ASP.NET Unexpected and Different Behavior in Different Environments

I have an ASP.NET site (VB.NET) that I'm trying to clean up. When it was originally created it was written with no error handling, and I'm trying to add it in to improve the User Experience. Try If Not String.IsNullOrEmpty(strMfgName) And Not String.IsNullOrEmpty(strSortType) Then If Integer.TryParse(Request.QueryString("Catego...

ContentPlaceHolders: Repeated Content

Scenario I have an application using asp.net Master Pages in which I would like to repeat some content at the top and bottom of a page. Currently i use something like this: Master Page <html> <body> <asp:ContentPlaceHolder ID="Foo" runat="server"> </asp:ContentPlaceHolder> <!-- page content --> <asp:ContentPlaceHold...

IHierarchicalEnumerable to SiteMapPath ?

Hi, exists any simple method to use my IHierarchicalEnumerable class in SiteMapPath control? Thanks ...

Use jQuery to set background color with value from database

I'm looking for an example of how I would read a value from a database and use it in a jQuery script to set the background color of a control. I'm still learning jQuery, and it's not clear to me how to get a value from the database. I'm using ASP.NET MVC, and my form is already pulling the value - do I need to put it in a hidden field an...

Edit messing up after Gridview_Sorting

I have a web app (ASP.NET 2.0 C#), and on one of the pages I have a Gridview. The Gridview has 3 columns (Edit, ID, Name), and sorting is enabled. The Edit doesn't work in the conventional way: It uses the ID and adds it to the QueryString, and the user is taken to the Edit page. Something like this: protected void Grid_RowEditing(obj...

Keep getting "resource cannot be found" until I edit controller

My ASP.NET MVC project is returning "The resource cannot be found" if I start the app without first making a change to one of the controllers. If I go to a controller and just add a space, it works correctly. If I then go to a view, add a space, and hit Ctrl-F5 again, I get the error again. What's going on? ...

ASP.NET Querystring being removed on first load

Hi, I'm experiencing a frustrating issue with asp.net. Open a fresh browser (cleared history, temp files etc...) Load www.mysite.com/page.aspx?anystring=1234 The page will load as www.mysite.com/page.aspx. The querystring will be gone. Something redirected and deleted it. But: Open a fresh browser (cleared history, temp files et...

ASP.NET Connection String Encryption / Protection

What is best practice for protection/encryption of connection strings in ASP.NET rather than just storing as plain text in Web.Config ...