asp.net

In an ashx file, can I set the filename of the returned file?

My ashx response.writes a simple text file that is returned. Can I change the filename, so if my ashx is located at mysite.com/someURL it doesn't return someURL.txt but rather, myFileName.txt ? ...

how to pull ads to your website using asp.net mvc

I'm very new on website advertisements. How can i pull ads to my website like what stackoverflow did on their site that i can see on the right side panel? I'm using asp.net mvc. What is the best free ads service to use or an API good for mvc? any suggestion? ...

How to get the id of textbox created at runtime in a gridview in javascript.

I have a editable gridview. When I click on edit button corresponding to a row in the gridview I provide two textboxes to enter two new values.2 textboxes as I have 2 columns. Now this textbox are generated at runtime.I want to access this textbox in javascript and perform validation on them.This is the html syntax. <table cellspacing="...

event not rendering by jquery to view in asp.net mvc

Hi, I am implementing the full calender in jquery in my asp.net mvc application by referring from here but as per this blog it should be render the events on dates given in the controller action. but it is does not. i followed exact same steps . i checked many times there is no mistake. so why should be this happening? please guide me ...

Why doesnt ASPxRadioButtonList show any items

Hiya, I have a DevExpress ASPxRadioButtonList which does not have any data source for the items. When trying to assign the selected item the control doesnt have any items. I have spent hours looking at this as it is set up to similar controls which work fine. Here is my code: ASPX: <dxe:ASPxRadioButtonList ID="rblPriority" runat="...

How do I reference a row from one in my second query

I have two queries Dim query1 as String = "Select * from openquery (devbook, 'SELECT start_date FROM bookings WHERE investor = ''00000'' ')" Dim FlightQuery as String = "Select * from openquery (devbook, 'SELECT price FROM flight_prices WHERE dep_date = start_date ')" Where it says dep_date = start_date I need to grab the start_date ...

set value of dropdown lists in Gridview with javascript

I have a dropdownlist and a gridview with a drop down list in every row. I have removed other cols in Grid for simplicity. Whenever a new value in the dropdownlist is selected I would like to set all of the dropdownlists in the gridview to that same value via javascript. (Yea both the dropdownlist outside the gird and the ones inside t...

Using AutoCompleteExtender - detecting when wrong result is searched for

I have an issue with my webpage which although relatively small needs to be fixed asap. The user can search accounts on the page in either of 2 boxes - a simple ID search, or a text autocompleteextneder. When either of the fields are searched, the page posts back and displays the customers details. I have an issue where that if they ent...

Can't get video works with javascript

Kindly i want anybody to tell me what am i supposed to do to let this work I have a lot of .mpg videos on my server and i show their names in .aspx page through Gridview ,which has a column hold a link for watching and another one for downloading ..the one which used to watch the video has a HTML code "<a href='WatchVideo.htm?fileName...

Error: Timeout expired with transactions, MySql and Asp.net

I have a Asp.net web service that I connect to and that insert, update or delete max 30 rows in a large MySql table using transaction to make the process faster. The whole process should just run in a few secs. Sometimes I can see in the logs that the user gets error: Timeout expired. The timeout period elapsed prior to completion of th...

jquery r/w tooltip plugin?

Is there any jquery tooltip plugin that allows to write some values in popup bubble and save that value in DB via AJAX?! It should also be able to display values from DB ...

Is a HTTP Module as non-external dll possible in ASP.NET ?

Question: Normally, when you create a HTTP module, you create it as separate dll project and register that dll in the web.config. Now, is it possible to write a HTTP module directly in an ASP.NET project, so I don't have to create a separate dll project? Note: Don't say as an added project in the same solution, I mean in the same proj...

A question regarding c# interfaces and maybe generics

Hi, We have built an internal tool that generates the whole data access, each table has a class the represents it's data and all the common operations.(think lightweight Entity framework). These DataAccess objects always have a constructor that receives a connection string, and a Load function that receives a SqlDataReader. Something ...

Accessing the controls in a StartNavigationTemplate within a Wizard

wizard.FindControl does not find the control. How do I access it so, for example, I can change the text on a button? I'm using a 3rd party source for the button text so cannot use Globalization. ...

Stripping out non-numeric characters in string

Hey Im looking to strip out non-numeric characters in a string in ASP.NET C# So i.e 40,595 p.a. would end up with 40595 Thanks ...

MSMQ + ASP.NET webservice

Hello, We have a webservice where some operations are processing. When we stopped IIS, and than run it (we stop Publishing World Wide Web), we have such a problem. The first request to the method which contains MQPurchaseOrderWS data = (MQPurchaseOrderWS)m.Body runs long. Sometimes our client has a timeout exception. This situation ...

Automatic deletion of spaces on asp.net tags

Little question out of annoyment with Visual Studio 2010. Whenever I write lines like this: <%: Html.LabelFor(model => model.AccountName) %> And save the file, some lines (some, not all of them, haven't figured out the logic behind this yet) will be converted to this: <%: Html.LabelFor(model => model.AccountName)%> Quite subtle dif...

Reset HiddenField if AutoCompleteExtender returns no results

Hi i need to be able to reset a HiddenField's value if my AutoCompleteExtender returns no results (specifically, if the user searches for something that's not in the list/database). I have this JS code now: function autoCompleteItemSelected(source, eventArgs) { var assocHiddenField = document.getElementById(source.get_id() + '_hidde...

Open-ID not working in staging server

I am using dotnet openID for implementing openID in my website it is working fine in localhost but the same is not true for staging server in the staging server it is working fine in all pages except the pages in which captcha implementation is there captcha implementation is done through Re-captcha. can any body have any suggestion rega...

Why use GetPassword() method but not Property of Password in build-in asp.net2.0 Membership

I find that the password can only retrieved by method GetPassword() in asp.net2.0 Membership. In fact, we can get the password when we get the user infomation from database and set it as a property of user(object of MemberhsipUser) just as user.Email, user.UserName, etc. It's clear that adopting the second resolution(property) can redu...