asp.net

JSON Data cannot be matched to web service signature

I still can’t seem to get this to work.I’ve tried string arrays object arrays dictionaries. I might be formatting my JSON incorrectly however I am using the labs_JSON plugin. If I remove my data and test the webservice it calls correctly. The : My code looks as follows : HTML : <div style="display: block; float: left;"> <asp:R...

Access Javascript function on Default.aspx from web Control

I have some ajax fucntions on my default.aspx that I use for saving data to my db. I have the form on my web control. When I try calling the function from my button which resides on the web control. I get an error. I need to call that function from my registerform.ascx. How do I do that from within the registerform code behind? functio...

Is it possible to access a databound item via a codeblock

Hi All, Is it possible to access a databound item via a codeblock? For example, I am attempting to add code within an itemTemplate while the current level is not equal to the previous level. <itemTemplate> <% // Need to ensure Container exists in current context // Get my previous level (example: 3) // Get my current level (example: 1...

asp.net grid view save checked rows to datatable (paging is already done)

I implemented paging for one of my GridViews. Now I want that all checked boxes(which are kept in first column of GridView) to be inserted to Database. How can I achieve this? Please let me know. I want to know how can I save the checked rows to the data table, and then re-bind to this temporary data table to grid view If some body ...

Dynamically enable ASP.net button in GridView based on another control in the GridView

I have a gridview with a cheackbox and a dropdown. The checkbox, by default, is not checked. The dropdownlist, by default, is disabled. In the edit mode of the gridview, when the user clicks the checkbox I want the dropdown to become enabled. If I could do this client side that would be awesome, if not I want to do it server side WI...

Logging in ASP.NET

Is there any logger to asp.net like the System.ServiceModel.MessageLogging used in WCF? ...

How to get file crc/checksum in asp.net

Given a file on the local filesystem: FileInfo file = new FileInfo(localFilename); How can I get a CRC-value (or some kind of checksum) for that file? ...

Possible bug/issue in ASP.NET 3.5 related to Request.RawUrl property

Hi, I posted a query for 301-redirect using ASP.NET 3.5 here: http://stackoverflow.com/questions/3609763/redirecting-default-aspx-to-root-virtual-directory Based on the replies I got there, I realized there might be a bug in ASP.NET's Request.RawUrl method which is unable to return the actual raw url (without /default.aspx) when being...

Getting the parameter values being passed to SQL database via SQLDataSource control

I am debugging code written by a previous developer :-) I have a SQLDataSource control that is calling a database stored procedure, and passing quite a large number of paramaters, and the stored proc returns records that populates a gridview control. When I walk through the code behind to determine the values being passed, is ther...

Front-end first or back-end?

Hi I have to do a small CMS application in MS ASP.NET using WebForms. I do everything on my own: front-end and back-end and Data Base schema. I know HTML and CSS quite well, but very little of .NET and SQL (I just finish study some books). Now that I want to develop the site, I wonder if I should start from front-end first, or back-end...

JQuery UI dialog vs AJAX modalpopup

I want to add modal frame to my web site where i want to place a form that will be submitted when a button is clicked. Which one is better to use? ...

get text vaule of dropdownlist client side

I am trying to add a client side event to a dropdownlist and I need to access the currently selected Text. I have tried: ddl_tech.Attributes.Add("onclick", "document.getElementById('" + chk_techreview.ClientID + "').disabled = this.options[this.selectedIndex].text.Equals(' UNASSIGNED');"); and ddl_tech.Attributes.Add("onclick", "doc...

Log4net does not write the log file

I created a simple szenario using Log4net, but it seems that my appenders does not work because the messages are not added to the logfile. I added the following to the web.config file: <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false"/> </con...

Find Unique Identifier From Selected Item In ASP ListView

I'm using a ListView and have two buttons that allows users to delete or edit a item from the list. Below is the code for the buttons: <td> <asp:ImageButton ID="ButtonEdit" runat="server" ImageUrl="~/Styles/Images/Edit.png" ToolTip="Edit" OnClick="ButtonEdit_Click" /> <asp:ImageButton ID="ButtonDelete" runat="server" ImageUrl="~/...

asp.net - undo delete session

Hi I'm storing the orders in sessions and i give the possibilty to user to delete the order, but i'm trying to create an "undo" but i don't know how. When the user ask to delete the session (the order), what you advice me to do to have the possibility to undo it? It don't need to be after X minutes, just in the same page so if he delet...

Finding duration of a video using directshowlib-2005

My asp.net(c#) method looks as follows: static public bool GetVideoLength(string fileName, out double length) { DirectShowLib.FilterGraph graphFilter = new DirectShowLib.FilterGraph(); DirectShowLib.IGraphBuilder graphBuilder; DirectShowLib.IMediaPosition mediaPos; length = 0.0; ...

Save state of Widgets in ASP.NET MVC using jQuery and Json

I am using ASP.NET MVC in C# I have a page where the user can move different Widgets around the page, and I now need a method to save the state of the widgets. I am using jQuery in the HTML page, and the jQuery posts the new page layout using JSON. I am unsure how to read the JSON in the controller. The code I'm using is based on this...

ASP.NET: Custom control that outputs multiple hyperlinks. How do I register the ClientIDs for AJAX (UpdatePanel)?

I have a custom control which is rendered as a hyperlink: Public Class TestControl Inherits System.Web.UI.WebControls.WebControl Implements IPostBackEventHandler Public Sub RaisePostBackEvent(ByVal eventArgument As String) Implements System.Web.UI.IPostBackEventHandler.RaisePostBackEvent Trace.WriteLine("Hyperlink 1...

IIS7 URL Rewrite - SiteMapPathNode not rendered if rewritten URL used

I have the following rules to redirect a.aspx?id=99 to a/99 and rewrite a/99 to a.aspx?id=99. It works. The SiteMapPath for the page does not render if the url for SiteMapNode is a, but it does if it is a.aspx. In other pages where there is no querystring in the url, I can use pagename as the SiteMapNode url or pagename.aspx - both ...

Weird behavior on ASP.NET application after switching sessionState to cookieless="UseUri"

Hello, So I have an asp.net application that is having the not so unusual session problems on Internet Explorer 8 and tabs that has been discussed extensively here. http://stackoverflow.com/search?q=asp.net+session+IE+tabs Now, one solution that I wanted to try was to use the cookieless session state, so I added this line to my web.con...