asp.net

Oracle padding exploit - how does it download the web.config?

I know there are already a few questions on SO about the oracle padding exploit but none of them explain how it downloads the web.config. I run a couple of ASP .NET apps which I have already tested using Microsoft recommended mitigation factors but i'm still scared that people will be able to get the web.config. Can someone please expl...

Use asp.net AJAX from javascript

This is probably a simple question. I use ASP.NET ajax toolkit and Jquery. I want to call a server-side function/method from Javascript and have it update a control. Can i do this? Client-side send_request(foobar,args); Server-side private void foorbar(){ Label1.Text = "updated"; } ...

Webform generator ?

Hello fellows, just wondering is there any free tool which can aid in making the GUI/interface layout of asp.net/html forms ? My forms mostly end up in being less user friendly and not good looking at all. ...

Automatic update

I have a system with two web applications, one web service, one Windows service and a WPF application running 24 hours a day on a touch screen. All of them are connected to a database. I want to be able to upgrade all of those applications by uploading upgrade files to the database and set the date and time for the upgrade to occur. I ...

Database fields to title case ?

Hi I am trying to convert some strings fetched from database into 'Title case' however it is not working for records like 'JAMES Smith'. The output is all the same. Any clue fellows ? TextInfo companyName = new CultureInfo("en-US", false).TextInfo; if(!myRecord.IsDBNull(myRecord.GetOrdinal("GENCLIENTNAME"))) { ...

How can I put email messages in a queue when SMTP server is down?

I have a big problem with my SMTP server for sending emails. It's down often. At this point I am using this code: MailMessage mailMsg = new MailMessage(); mailMsg.From = new MailAddress("[email protected]"); mailMsg.To.Add("[email protected]"); mailMsg.Subject = "..."; mailMsg.IsBodyHtml = true; mailMsg.BodyEncoding = Encoding.UTF8...

when exporting more then 500000 records in excel using C# .net it gives System.OutOfMemoryException was unhandled by user code

Dear Concern, I stuck in the issue of exporting excel it gives error System.OutOfMemoryException in excel 2007 we cam export 1000000 rows but while exporting more then 250000 rows its gives the error the logic to upload the excel as i am using is Response.Clear(); Response.Charset = ""; Response.Buffer = true; Response....

Creating Chart using javascript

I need to create chart using javascript. should be look like as in link below (click play to see chart sample): Please suggest me which control should i use/purchase, which allows me to create chart in such style shown in link. chart data will be in xml format and i am asp.net developer thanks ...

How to bind data in asp.net?

Suppose there are three dropDownList in a table and I want to bind it . Let say in one dropDown there is Days ,in second dropDown there is Month and in third dropDown there is year and now i want to bind them so that I can save it in DataBase. How to do that? ...

how can i call select method from page load event.

I have a azure table. i use a select method to retrieves the some data. The Select method retrieves today's guest book entries by constructing a LINQ statement using the current date as the partition key.now how can i call this select method from page load event.any body can give me some idea? ...

Get asp.net radiobuttonlist selected value in code behind when using jQuery buttonset

I am using the jQueryUI buttonset on an ASP.NET radiobuttonlist. I need to get the selected value in server-side code when the page posts back. If I don't apply the jQuery buttonset, this is of course easy enough - just grab "SelectedValue". However, when I do apply jQuery buttonset, the selected value does not appear to be available on ...

asp.net web application request timeout

I have a problem with my asp.net web application. During the test process, there was no problem but after a lot of users started to use application, it gets timeout.. Where should i check for this problem? ...

how to import image from facebook contactlist?

i want to login facebook from my asp.net application.after that,how can i import image from facebook account and show it in asp.net gridview. ...

ASP.NET DropDownList bound to data but allows for nulls?

I'm using LINQ to SQL and want to be able to select a parent or no parent. Let's say I have a People table with PersonId, Name and ParentId columns. In ASP I want to enter the name, select a parent and click 'Add' to create a new Person record, but I also want to be able to leave the ParentId null. Don't ask why, this is just a simpli...

detecting keydown event with jquery in asp.net

Hi, In my project there is a button search which seems to be the default button to trigger when enter key has been pressed. How can i detect a keydown event with jquery for a login button? Its an asp.net project. ...

Asp.net resources - prevent error on page when resource reference is invalid

Hi, I'm using resources like this; " runat="server" /> Resources are maintained in a database and resourcefiles are generated when new translations are added. Sometimes bad references to keys happens. This results in error on the whole page. How can I prevent the whole page from crashing when a resource does not exist? I just want a ...

Autopostback keeps refreshing site

Hi, I have a dropdownlist, and when I set AutoPostBack="true", the page keeps refreshing. any who knows what might be wrong? <asp:Repeater ID="repFunctionsToAdd" runat="server" OnItemDataBound="repFunctionsToAdd_ItemDataBound"> <ItemTemplate> <div class="person-section"> <div class="row"> <strong> <%# Eval("Name"...

How to include an existing ASP.net application into some opensocial container?

Can anyone help me with the simple documentation/tutorial to integrate any sample ASP.net web application with the Open-social? ...

How To Config My custom Rewrite Url in GoDaddy

hey, i need to setup a Unique asp.net 2 application in godaddy hosting account in this appliation the global.asax catch all the requests that access to the application domains for example: www.domain.com/aaa.jpg -> go to the global.asax www.domain.com/adsads/asdsad/sdsa.pdf go to the global.asax i need to directe all incoming requests ...

Wrong host returned using HttpContext.Current.Request.Url.Host

Hi We have multiple domains for one of our websites. e.g. mydomain-uk.com and mydomain.co.uk I have a handler which creates an XML sitemap and it uses HttpContext.Current.Request.Url.Host to retrieve the host site. When my browser is on mydomain.co.uk/handler it retrieves mydomain-uk.com as the host How can I ensure it always retrie...