asp.net

Interactive pdf- not displaying on website

Why does the interactive pdf not display on the website. The file displays ok in dev. Get HTTP 400 bad request, even though the url is correct ...

How can I call a web service to insert a record into a database with jquery?

I am actually not sure if a webservice would be the correct way to go or if there is a better alternative, but here is my question. I have a dropdown with some products and I want to give the user the ability to add a new product, so when they select add new, it will pop up a dialog and when they are done it will insert the new product ...

I'm losing all my cache.... (Items are disapearing from my cache)

I'm currently developing a site in ASP.NET Webforms.. I'm caching things where it makes sence... adding things using High / Normal / Low priority.. telling them to stay in the cache for 2 weeks, 1 week, 4 hours respectably im showing the current number of cached items on every page (for debug reasons). sometimes if i travel through t...

Regular Expression Length

I have an issue where I need to use a RegularExpressionValidator to limit the length of a string to 400 Characters. My expression was .{0,400} My question: Is there a way to limit the length of characters to 400 without taking into consideration blank spaces? I want to be able to accept blank spaces in the string but not count it in t...

AspxGridView dynamic headers

I have a aspxgridview control from DevXpress. Is there a way to dynamically specify the column headers in the code file and not in the aspx file? This is what I have right now (in the aspx/html file): <dxwgv:ASPxGridView ID="grid" runat="server" OnInit ="grid_Init"> <Columns> <dxwgv:GridViewDataTextColumn Capt...

What is the difference between using "../" and "parent" in an XPath query?

What is the difference here between using "../" and "parent" to get the parent node in an XPath query. I had thought they were synonymous. Given the following two XPath queries is there really any difference between these two? //Node/id[@type='image']/id[@attr1='myVal']/../../* //Node/id[@type='image']/id[@attr1='myVal']/parent::*/pa...

Why does this JQuery call to asp.net pagemethod load the whole page?

Here is a snippet of my html: <input id="btnGetDate" type="submit" value="Get Date" /> <div id="Result"></div> <script type="text/javascript"> $(document).ready(function() { $("#btnGetDate").click(function() { $.ajax({ type: "POST", url: "Date.aspx/GetDate", ...

Ad-hoc override of ASP.NET maximum request size

Is there a way to override the maximum request size for a specific ASP.NET/ASP.NET MVC page, without also changing it for the rest of the website via Web.config? ...

Internet Explorer back button broken when obscenely long drop down lists are loaded

I was working on some ASP.NET 2.0 pages when I noticed that some of the pages' back buttons were unavailable - greyed out. And clicking the drop down menu next to them showed clear results, as if I had come to this page fresh. I looked through the code trying to find something to specifically disable the back buttons (redirects, clever...

Nice, clean, simple way of getting a dataset from ASP.NET to plain HTML jQuery or JavaScript library?

I know this is a probable open ended question, and I have tried looking around so much over the last year or two... maybe I am looking for a perfect place that doesn't exist! of course it's all about perception no less.. Anyway, just to clarify what I am trying to do and why: I want to be able to use (primarily for the moment) ASP.NE...

Creating ASP.NET controls at runtime for an ASP.NET Invoice App?

I am creating a web app that will be used to create invoices and quotes. Currently, I am tediously creating all the controls at design time resulting in controls like the following: txtQty1, txtDescription1, txtUnitPrice1, txtItemCode1. Then for the next line, I just repeat the controls, but add a 2 to the end of the Id. This goes on...

Problem with Crystal Report in ASP.NET - ExportToHttpResponse

I am using the code to export pdf file from a popup. On button click function popupReport() { var url = 'Report.aspx'; window.open(url, 'winPopupReport', 'width=300,height=300,resizable=no,scrollbars=no,toolbar=no,directories=no,status=no,menubar=no,copyhistory=no'); return false; } and in Report.a...

What is the advantages and disadvantages of using services over components?

Hi, From past few months I am working on projects in latest dot net frameworks. I feel that in latest dot net versions "services" are encouraged over components. Is that correct? I have seen in silver light (I am a beginner in silver light) all the DB layer operations are exposed as services. I don't know right now component program...

How do I redirect this url pattern in asp.net webforms or asp.net mvc?

I am trying to redirect a user when they entire a URL in this format: http://example.com/http://example2.com/ To the following: http://example.com/?m=example2.com#http%3A%2F%2Fwww.example2.com%2F I want to strip out the host of example2 and make it a query-string, then URL encode the full URL of example2 and put it as the anchor. ...

Can the Windows Indexing Service restart an app pool if it doesn't index the Web.Config?

I am having a slight debate with a colleague of mine on this subject. Scenario: A web site has a sub directory that is indexed using the Windows Indexing Service. There is not a web.config in this directory and the indexing service is not indexing the parent directory which is the site root. Something is causing the app pool to restar...

how can i get the same page with the click of back button of browser

i am using asp.net with c# in my aspx page i have an update panel in this panel i have some links to other sites, which is open on the same window. after clicking on these links me when i am getting back through browser's back button i am not getting the same results on the update panel... ...

The rounded corners Ajax effect is useful for???

I still don't get the point of investing some coding time to add this effect even knowing that it will (probably) not be compatible with all the web browsers available out there. I want to hear your opinions. ...

Ajax and Brower Navigation for Back/Forward

I am using a ASP.net form with custom onclick mouse events to modify data values. Upon clicking and updating the values, one div section of the form performs a postback. onclick="__doPostBack('ctl01$phCon1$gridReports','sel1')" This is working well, however when the browser BACK option is selected, the browser opens goes through the ...

State information corrupted after dynamically adding control

In my asp .net form, I refresh a control using Ajax through the AjaxPro library. However, after doing so...causing any "normal" postback results in a yellow screen (Complete error after the message) I've set the following Page properties in web.config without any luck <pages enableSessionState="true" enableViewState="false" enableEvent...

Setting Up ECommerce in ASP.NET

I'm an ECommerce newbie. I'm looking for an exceptional guide for setting up casual ECom (or plugging it into an exsiting site) for ASP.NET, complete with recommended components for a product catalog/shopping cart/merchant account and any anything else I might need. I don't have a large product inventory (less than 50) and don't plan on...