asp.net

Build each namespace a .dll file when build an ASP.Net project

Hi all, how to make each namespace a .dll when build an ASP.Net project? ...

Localizing dates and times automatically in Silverlight

This is more of a question about best pattern and practice than asking about any one particular method. We have app that is heavily reliant on dates and times and is hosted in the US. Sometimes it needs to perform actions based on those values, like emailing out reminders and expiring "single-use" session tokens. However there are clien...

Where to start? : Developing rich web applications for mobile platforms (against platform specific standalone apps)

I am new to mobile app development and I dont want restrict myself to one platform. Some days ago I read an article that stressed on the fact that soon web apps running on mobile browsers may replace dedicated apps (at least for non-game apps). I want to develop a social networking web app that any phone can run via the browser. These ...

Problem with active tab in asp mvc

Hi. I find this article: http://blog.tomasjansson.com/2010/09/asp-net-mvc-helper-for-active-tab-in-tab-menu/ and i want to this :) Unfortunately, I was an error: Opis: Wystąpił błąd w czasie kompilowania zasobu wymaganego do obsłużenia tego żądania. Przejrzyj poniższe szczegłowe informacje o błędzie i zmodyfikuj odpowiedni...

Use ajax to get current time remaining to session timeout

I would like to pop up a box that warns the user of session timing out in 5 minutes. There are lots of examples of this on the net and I can figure something out. My question however is how to get the time remaining. All examples I read about set a client side timer to countdown from last postback. I would like to do something different...

Need help with the format exception::Input string was not in a correct format.

property in my mainClass public Int64 DetailID { get { return bintDetailID; } set { bintDetailID = value; } } myClass mainClass obj=new mainClass(); obj.DetailID = int.Parse(e.CommandArgument.ToString()); aspx page <asp:Button ID="btnEdit" Text="Edit" CommandArgument='<%#Eval("DetailID") %...

How to use DataKeys and DataItemIndex

Hi, I need some advice how to use DataKeys and DataItemIndex fro a GRIDVIEW. I need take the values for an item "ROW" in a "GRIDVIEW" and associate it to "MembershipUser". I get an error "Make sure all arguments to this method have valid values as defined by the invoked method." Any ideas??? Thanks for your help BYE! protected void ...

How to find the index of the given string value in dropdownlist?

Hi, Iam using a dropdown list ,in that am having 4 values ,the following are my values Uk-L1 Us-L1B Aus-BUssness Uk-HSMP and here i need to choose the a particular value as a selected index ,and i did that for a exact value and in my requirement i will pass only the values after that '-' .so that i need get the value to be sel...

asp.net - ThickBox autoclose

I have 2 pages: default.aspx (displays all students) and update.aspx. The default.aspx displays all students using ListView and ObjectDataSource. The code below in default.aspx calls thickbox for update student's information <a href='<%#"Update.aspx?studentId="+Eval("Id")+"&height=350&width=350&modal=true" %>' class="thickbox">updat...

How do I show videos on a second server to authenticated users in ASP.NET ?

I have a simple user-registration website where I keep records of registered users. I also have an admin page to upload videos, however videos are uploaded to a different server. I'm using the <video> tag to show the video: <video width="560" height="340" controls> <source src="path/to/myvideo.mp4" type="video/mp4";> </video>` I w...

wkhtmltopdf - convert html code to pdf directly in C#

Hi! I know this tool looks up on a url and converts the repsponse to pdf. How do I convert a <html> content.. </html> into a pdf? I was looking at the help files on wkhtml2pdf and looks like it provides an option of stdin but I can't really figure out how to emulate stdin. Also if you know a tool which does a better job, please s...

Session transfer between window and modal dialog

I have a parent window from which i open a modal dialog on button click. In WinXP with IE8 it works just fine, but in Win7 with IE8, upon opening the modal dialog it brings me to the login screen. If i enter my credentials, close the dialog and open it again, it works. The explanation i figured out is that the session isn't transfered b...

How to use the library Data Mining Web Content Viewer

Hi all! I am developing a web application that will work with Data Mining-models deployed to Analysis Services. I downloaded the library Data Mining Web Content Viewer of Microsoft SQL Server 2008 R2 Feature Pack (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ceb4346f-657f-4d28-83f5-aae0c5c83d52&amp;displaylang=en). Instal...

Entity Framework Best Practices In Business Logic?

I am using the Entity framework for the first time, and would like to know if I am using in the best practice. I have created a sperate class in my business logic which will handle the entity context. the problem I have, is in all the videos I have seen they usually wrap the context in a using statement to make sure its closed, but ob...

ASP.NET vs Silverlight

Hi, I was wondering why you would still use ASP over Silverlight, since with silverlight there is a lot you can do already. And you dont have to use css, jquery, js, html, etc. Also with silverlight you can do a call to the database via ria service. I can only think of 1 reason which is, that not every one has the plugin installed. B...

Filter expression issues

Hi, I am using a GridView and I require the user to be able to filter using 2 controls. One simply filters the type of row - there is a column called action, and the user selects one of the distinct values from the database in a dropdown box, and the gridview only displays the rows with that value in the action column. On it's own this w...

authentication in asp.net

could some body please explain me what is authentication in asp.net? i am just confuse with all this passport authentication form authentication windows authentication Please explain me what all these authentication and what are they use for and how do they work just i am not getting it from internet ...

Add Item To html Combobox Server Side

How Can I (Or Is It Possible?) Add Item to Html Combobox ServerSide ? Or Bind It in behind Code in asp.net ? Does My question Clear? ...

Accesing, Merging IIS extended log files

I need to access, merge and parse my log files using my asp.net application programmatically. I use shared hosting and as I can see log files are out of the root directory of my website? Is there anyway to access those files from my application? ...

Data annotations modelbinder in new mvc

Hi we are trying to upgrade our project to work in the latest version of VS 2010 and i have encountered a problem with the old Data Annotations Modelbinder. Dim modelBinder = New DataAnnotationsModelBinder() modelBinder.InvalidValueFormatter = _ Function(propDescriptor As PropertyDescriptor, value As String, displayName As String) _ ...