asp.net

iPhone communication with Windows C# App

I am create an iPhone app that needs to talk to a Windows C# app. The app will run as either a Service or Form Application. What would be the best way to accomplish this? Ideally exposing a service-type architecture would be best as I don't need a stateful connection (stateless is fine in this case). Can a WCF service hosted by my app...

asp web service: check if user is logged-in

I'm creating a web service that'll be called from a web form in asp.net. How does the web service check if the user is logged-in and if it is the logged-in user that's actually requesting the service? thanks ...

Creating custom httphandler in web.config: Am I at risk of exposing a 'Padding Oracle' vulnerability?

Considering the recent ASP.NET vulnerability, what should I look for in my httphandlers that would cause such a Padding Oracle vulnerability? Asked in another way... what did MSFT do wrong and what did they fix in their handlers? ...

Can someone define the regular expression to match the following html code

I was doing some web scraping and i was looking for some div elements with particular class names and markup. This is my objective , i have to extract everything within the div having the class s_specs_box s_box_4 Could someone please provide the regular expression in .NET terms (i.e., which can be straight away passed into Regex's con...

How to pass a string to a asp.net web service using jQuery/JSON/AJAX

Hi, As it is now I create a JavaScript object and then stringify it, put it in a hidden textbox and my code behind can read this string. I then use JSON.NET to parse the string which works fine. I now try to use ajax to post it to my web service but have some issues with how to send the string. I have tried many ways but gets the common...

ASP.NET Chart Control Z-axis

We have a 3D graph and we want to put a label on the Z-axis, is Z-axis labeling supported by the chart control? ...

Windows Service Security

Hi, I have a Windows Service (not a webservice) and I need to provide some security. ie. Only authorise users run methods of the service. Is it possible to use certificates like you can do for webservices? Can anyone describe the process of how one would go about doing this? Thanks! ...

Intellisense between projects in visual studio 2010

Hi, I've got a c# project that is full of intellisense comments, and this project compiles to a DLL. Now when i add this dll as a reference in another project, i do not get intellisense when accessing the members of the original project. Any ideas how i can get this to work? Thanks ...

migration from universe database

how can we migrate from u2 to sql server.tell me the sites where i can find the pdf on migration from u2 ...

Advice needed from experts about ASP.NET UserControl usage

I need some advice here. I have a bunch of 10 products and every product has atleast 200 different pages associated with it, with varying details about the product. That makes around 2000 pages. The structure of each page is as follows: **Product Name Details About the product ( 500 words or more) ProductImage | PurchaseDetails** W...

Gridview taking much time to load

I am having a Gridview which takes much time to load its data, I tried to make the loading faster by implementing paging in gridview and reducing the rows to render in the grid and it got worked to an extent but still it lags in processing to bind data. Please help to overcome this problem, and i would appreciate if you can give me tip...

Where to add Link tags on a page that's got a master page ??

When I type it here :- <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> <link href="Skins/SkinCustom/Editor.Default.css" rel="stylesheet" type="text/css" /> </asp:Content> Its says Element Link cannot be nested within div...how am I supposed to link my css files ?? ...

How to pass parameter back from asp.net web service if an insert to a database was successfull? ASP.NET/jQuery/AJAX/JASON

I have a web form and I use jQuery/AJAX/JASON to send objects to a web service using $.ajax({ type: "POST", url: "SynchroniseCustomers.asmx/synchroniseCustomers", data: JSON.stringify(customerObj), contentType: "application/json; charset=utf-8", dataType: "json", error: function (xhr, status) {}, success: function (msg) {} }); From t...

MVC Downcasting to base class Strongly typed view

I have the following entity object: public class ForumPost { public virtual int ForumPostId { get; set; } public virtual int LoginId { get; set; } public virtual string Body { get; set; } ... Then I have a page that has a list of ForumPost(s) and and edit option, all on one page. I've created a CommentsVie...

Regarding customizing telerik radEditor skin

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> <link href="Skins/CustomSkin/Editor.Default.css" rel="stylesheet" type="text/css" /> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <telerik:RadEditor ToolbarMode="Default" ID="editor1" runat="ser...

Asp.net Quetion

Possible Duplicate: Sql server recursive query I have one table with 2 column EmpId,SupervisorId from that table i want data for example A guy can refer 3 guys under him i.e, 3 is referring three guys namely 4 5 8 similarly 4 is referring 9 10 and 11 likewise 8 is referring 12, 13 it goes like this.. I want a asp.net code to...

What is the best book or study material to study POCO in asp.net?

What is the best book to study Plain Old CLR Object (POCO) in .NET? ...

Access Page variable from User Control

I have a property on a page called public string productName { get; set; } I want to access this in my usercontrol code behind. What's the right way to do it? Currently I am doing ((MyPage)Page).productName But the user control is not compiling. My pagename is MyPage and I have also added a Reference <%@ Reference VirtualPath="...

How to use tricks in combination of "IF" conditions?(C# ASP.NET)

I have four checkboxes in my form. I have string variable called "CheckedString". If i check the first checkbox "A" must be assigned to "CheckedString". If i select both first and second checkbox at a time. "AB" must be assigned to "CheckedString". If i select third and fourth checkbox "CD" must be assigned to "CheckedString".So that sev...

How to assign Text to A file upload control on an aspx page?

My file upload control is in page for editing records so i want to retrieve the path stored in database and assign it file upload control. i have written select query to get data but i do not know how to display the stored file path in file upload control. ...