asp.net

in asp.net MVC 2 /beta Date formate proble is as :

Hi, in asp.net mvc 2 or beta , model not accepting the date 13 ( more than 12'th of date) . Model showing error ads " The value '20/10/2010' is not valid for MyDateFieldName " what have to do ? Model showing false status as ModelState=False. why ? ...

paging in gridview get same data for all pages

I had gridview which get data from database according to two event .The first from method ,the second when selected ddl.it worked well ,I made paging and when I go through paging pages I must click two click on number of page to go to this page also all pages get same data for firt page .So plaes any one help me. <aspx> <div class="div...

Group using linq return datatable

i have a linq query that returns Articles ordered by the number of tags that match the current article e.g current article has tags - tag1, tag2, tag3 tagged article 1 - tag1,tag2,tag3 tagged article 2 - tag1,tag2 linq i have is DataTable query = (from row in dt.AsEnumerable() let tags = row.Field<str...

best wcf book for beginners? asp.net?

hi, I am learning wcf, can you tell me which one is the best for begginers. thank you ...

Getting a bitmap from the cache

Whenever I try to get a bitmap I have cached from the context I am getting an argument exception. The bitmap is cast from the cached object but it's contents are corrupted. The exception is thrown on the line ImageFormat imageFormat = bitmap.RawFormat; bitmap.RawFormat' threw an exception of type 'System.ArgumentException' Which ju...

How to convert en-gb to en-us (Arithmetic overflow error converting expression to data type datetime)

Arithmetic overflow error converting expression to data type datetime. The statement has been terminated. The culture of my site is en-gb (18/10/2010) The culture of my db server is en-us (10/18/2010) the date is stored in a param; command.Parameters.AddWithValue("@bookingdate", inputBookingDate.Text) Is there a way to convert this...

AjaxControlToolkit composite CDN

I know about AjaxControlToolkit CDN (http://www.asp.net/ajaxlibrary/CDNACT40412.ashx), but is there somewhere a file which would be a composite of all scripts used in release version. ...

ASPNETCOMPILER: Circular file references are not allowed. --- no details on where to find it

Hi, I've seen the Circular file references are not allowed. before and have been able to fix it using suggestion from e.g. this stackoverflow thread. That's because the aspnet_compiler was kind enough to tell me which files to look at when the error was thrown. Today I'm facing this error again but interestingly enough only when buildi...

MicrosoftReportview error

I used MicrosoftReportview in my project , The reports are avalable in project folder. When I run web site in Server (not VS development server) . It give this type of error. Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and m...

How to disable link button in a gridview

Hi, I have one grid view that contains some template columns. In this, the first column contains check boxes named as Read, fourth and fifth column contains asp:link button. If the user clicks on the read check box, both link buttons should be enabled (Initially it is in disabled mode). I used this JavaScript code for disabling. But i d...

Should I use 'Integrated Security=True' in a production environment?

Is it a bad practice to use Integrated Security=True on a production server in ASP.NET? ...

ASP.NET website not working properly in mobile

I have created a simple app with a page having a server side form, three fields and a button that submits and performs two operations - 1) adds the form fields to the database table 2) sends an email. Now everything works fine on the web browser on my machine but when I access the app through my mobile, the page does not seem to work. th...

Asp.Net MVC and Web Services

I have an existing Asp.Net MVC Website and I would also like to provide a Web Service from the same domain. What is the best way to approach creating a web service in this scenerio? Do I add to this project or...? ...

How to validate after a certain number of postbacks

Hi I have a peculiar situation at hand in which I need to validate a pair of dates in an ASP.Net web app.This is how my page looks like : I have a "From Date" field which consists a set of three dropdownlists ( for Year , Month and Date) I have a "To Date" field which also consists a set of three dropdownlists ( for Year , Month and Da...

asp.net mvc views with CLR generics syntax in inherits attribute

For reasons I won't go into I need to use CLR generics syntax in an ASP.NET MVC view. I.E. NOT this: System.Web.Mvc.ViewUserControl<someobject> but this: System.Web.Mvc.ViewUserControl`1[[someobject]] When I run the application I get Parser Error: could not load type `System.Web.Mvc.ViewUserControl`1[[someobject]]` :( How can ...

Convert.ToDatetime not adding timestamp

For example: Dim testdate As String = "29/10/2010" testdate = Convert.ToDateTime(testdate.ToString) Response.Write(testdate) expecting "29/10/2010 00:00:00" what I get is "29/10/2010" ...

Syntax error in FROM Clause

hi all I'm working on asp.net web application & for this use MS access for back end, My Query is given below which is successfully executed on MS Access but error on front end ("Syntax Error in FROM Clause") select USER.EMPID as EMPID,USER.FULLNAME as FULLNAME, USER.USERNAME as USERNAME,Employee.ROLEID,ROLE.ROLENAME AS ROLE FROM USER ...

Setting dateTime.ToString() format centrally

How do i set the DateTime format centrally so that at any time if I use a dateTime.ToString() in my code I get string in the ISO format(eg:2008-2-19 01:00:00) ...

Asp.net: save data entry form with PageMethods

The problem: I have a data entry form. I would like to save the data without page roundtrip or UpdatePanels. The solution: - the 'Save' button calls a javascript function which serialize all the fields content (client side) - the javascript function calls a web method (server side) - the web method deserialize the data and save it to t...

ASP.NET 3.5 webservice error on live server

Hi, I'm using a web service in my asp.net 3.5 application.The web-service is hosted in my live server and it is working fine. My web application is also hosted in the same server.But when i try to access the webservice from my asp.net web application hosted online,I'm getting the following error. [SocketException (0x274c): A connectio...