asp.net

Help! My GUI explosed after publishing!

Hello everybody, I'm working on my local machine which have theses characteristiques: [Win XP , IIS 6] .. I have finished all my tests on this machine ,, thir was no error concerning the GUI however, I have a big problem, while publishing the website on a server which have theses characteristics:[Win server 2008 Enterprize Edition, IIS...

Anchor link not working in IE

I used some div and ul to display some items in list as shown bellow. In Firefox and chrome all the links works fine. But in IE link 'All Items' and link 'Information' does not work.I have found some clues like due to 'margin-left' property it is occurring.If I remove 'margin-left' from that specific anchor link it works, but alignment i...

Convert text to datetime ?

Hello fellows, I want to convert text to datetime but having error.My text box value is in format dd/MM/yyyy String was not recognized as a valid DateTime. myFtMaster.GENTRTYDATEFROM =Convert.ToDateTime(txtTreatyPeriodfrom.Text.ToString()); My business object 'gentrtydatefrom' datatype is DateTime. Also what is the best way to avoid ...

Default button property in panel does not work

On pressing enter key, I want and image button's click event to get fired. So i have placed the textbox and button inside a panel and given the image button's id in 'DefaultButton' property of the panel. But on pressing enter key, the image button's click event does not get fired. The code is pasted below: <asp:Panel ID="pnlGlobalSearch...

Javascript's setExpression is the biggest problem for me. Any solution to overcome this.

I am trying to freeze my gridview header for last 2 days and got this link and many other links too provided to me on Stackoverflow as well as from googling. This worked fine when i used it on IE 6,7 and under compatibility mode in IE8 but in normal mode, this code is not working. This line is giving me an error. I want to implement thi...

Command Text property has not been initialiazed

This one is a tricky one I have been looking through the event viewer on our server and can see quite a few people with this error but I can't replicate this myself but it is causing issues for people viewing our website is there anyway I can "initialize" Command Text property? Thanks Jamie UPDATE So I have this query datelistquery...

The benefits of using String.Empty

Possible Duplicate: In C#, should I use string.Empty or String.Empty or ? I just don't understand the benefits of using String.Empty over "". Aside it being strongly typed its longer. So please, why should I be using this? ...

Email Auto-Filtering

I would like to use the masked edit box to let people type in input a valid email address, What is the best mask i should use in MaskedEditExtender.Mask ? ...

How to get the user's google profile info after getting the credentials from the user in asp.net / asp.net mvc 1.0 ?

I want to use the user credentials to get me access to their account so that i can get their profile info . My site will provide a link saying "import profile from GOOGLE"..when the user clicks on it ..he is asked the user name and password ..on it entry i want to get their info. I tried using GOOGLE API but i am not able to find a way t...

How to implement search textbox as in stack overflow website?

I have a search textbox in the web page. When the user presses enter key after entering text in that textbox then the search function should get executed. How to do this? ...

Design time validation of custom ASP.NET server controls

I am creating a custom control which has some properties on it. The problem is that the control isn't valid without those properties being set and there aren't suitable default values for them. How can I make sure that they are being set in the ASP.NET markup when being included on the page? Is there some kind of validation event that c...

applying theme in asp.net

Hello guys, Here i want to set theme for a master page but i don't know how to do it so please tell me some solution . all the i want to do from code behind. thanks to all. ...

String.Format in lambda expression with For helpers

Is it possible to format inline with String.Format inside edit forms where you use lambda expression with TextBoxFor HTML helpers? Something like this but this obviously fails but hopefully you will get what I mean <%: Html.TextBoxFor(String.Format("{0:d}", model => model.IssueDate), new { @class= "invoiceDate"}) %> ...

Basic workflow issue with Paypal + ASP .NET web app integration

I'm setting up a payment gateway for my software product which users can buy off the web and use. I'm using paypal website payments standard to get started. There's a basic issue troubling me. The workflow for my user is: Login to my product site (free license for a trial period) -> Pay to extend license Now suppose a user - [email protected]...

BadImageFormatException when using native DLLs from ASP.NET

Hi Iam referencing in my ASP.NET application a managed C++ project which makes use of a native dll named "libmmd.dll". If I run the ASP.NET application with visual studio I get an BadImageFormatException which tells me "The module was expected to contain an assembly manifest" (translated from german). What is the preferred way to includ...

Pass string parameter to SqlDataSource in asp.net

i have placed a SqlDataSource component on my aspx page but while configuring the SqlDataSource in the "Test Query" Step I am passing the following parameters : But when i click ok it returns following error: This error occurs when i pass the string : INFO, WARN, ERROR, I have tried a lot of combinations but nothing works. It wor...

Should I use a repeater?

I have a table similar to: ID...NAME.....HTMLTEXT 1....Footer....`<b>test</b>` where each entry has some HTML text and an associated Name and ID. What I want to do in ASP.net C# is to list each of these entries on a page in such a way that the HTML text should be displayed exactly how it is meant to be (e.g. <b>test</b> should show '...

How to position a DIV on DOM ready after it has been created

Hi, I am trying to create a page where I can attach sticky notes at runtime exactly as explained in this tutorial. I have converted the sample in ASP.NET MVC 2 (which is the technology I am using) and everything works fine. So I have a DIV in my view <!-- Contains all the notes and limits their movement --> <div id="notesDesktop" sty...

update panel CSV generation cache issue

On a page with update panel on a button click I have put some code to generate CSV . When I click on Open in File dialog CSV file shown comes from browser cache.Every time it shows old csv.I have checked on server the csv file is created new but browser show old files. ...

How do I access a Facebook users details with their login credentials?

I have a site where users can register an account. To do this they have to enter various details about themselves (Name, DOB, Email Address, Password, Username etc..). However, I would like them to just have to enter their Facebook username/password, and have all this information pulled from their Facebook user account. How is this pos...