asp.net

VS 2010 Crystal Report

Hi, I have a table in ms-sql obm_FeeTable FeeId int, FranchieId int, Amount Money, ChequeNo int, BankName nvarchar(200), PaymentDate DateTime when I want to display all collection in crystal report it don't show Amount / PaymentDate when creating report, don't know why its doing like this. Please help why is it doing like this. also ...

C# mvc2 encode url

i'm trying to encode an url with the code below; var encodedUrl = HttpUtility.UrlEncode("http://www.example.com"); var decodedUrl = HttpUtility.UrlDecode("http%3A%2F%2Fwww%2Eexample%2Ecom%2F"); I'm working with the google webmaster tools api and this api expects an URL as shown in the decodedUrl variable above. Every single character ...

How can I set the value of this cookie property from code behind?

I would like to do this: Dim str As String = class.isGuest("yes") but it won't work. Public Property IsGuest(ByVal guestStatus As String) As String Get Dim guestCookie As New HttpCookie("g") For Each key As String In Context.Response.Cookies.Keys If key = MYACCOUNT_SESSION_COOKIE_NAME Then ...

how to get current month and year

Can anybody tell me that how i can get current month and year and show it in a lable in asp.net ...

is jQuery the best way of dealing with user interaction in C# .net environment?

Hi, I'm wondering, .net has all these build in GUI elements. The purpose is that we build a .net web application and for the coding itselve I know my way. But as for user interaction, ajax, etc.. I'm very familiar with jQuery in PHP but I noticed that in .Net everybody starts using it too. Is jQuery the best way these days to deal wit...

Problem printing from ReportViewer control in ASP.NET web application

I have a web application that utilizes the ReportViewer control in ASP.NET. The reports are defined in the web application, in .rdlc files. The reports work great, except for the printing functionality. When the user clicks the "print" icon in the header section of the report, it appears that the web app tries to install SQL Server (?!)...

asp.net breadcrumb

Hi all, What I want to do is a simple breadcrumb which I have accomplish this with Web.sitemap Home--> page1 --> page2 What I need to do If I navigate to page1.aspx?param=value and after this I go to page2.aspx the breadcrumb shows Home--> page1 --> page2 in which, if I click Page1 it redirects me to page1.aspx but how could I retri...

How can I get my friends from Facebook in my application?

I am developing an ASP.NET application. I implemented Facebook API in my application now I want to access email addresses of my friends on Facebook. I successfully connected Facebook with my application, but when I use FacebookApi.friends.GetList() it will give only friends userids then I will fire a FQL for each friend userid to access...

Write files without write permission via ASP.Net

Hello, I have created an ASP.Net application using .Net framework 4.0. I need to save an xml file on any location on same server (if file not already exists) and want to access then after always. But I dont want to set write permission to any folder. Is it possible to write a file to any location for Network service account without spe...

hide a particular pane within an AJAX accordion pane control

How do I hide a particular pane within an AJAX accordion pane control from code behind / programatically? I found the following code, and am not sure how to use in within an ASP.NET page with a master page (where I don't have a head tag in my actual page). In order to hide an Accordion Pane, use the following script: <script type="text...

regex for valid ftp file path

Hi, I am looking for validating a textbox in my asp.net application for a valid file path like \\127.0.0.1\folder http://ftp.google.com and all other valid file paths ...

clicking on text of custom control checkboxlist sends null event target.

I have some custom controls. My control is inherit from CompositControl. In my page, I create them in On_Init(). I insert these controls to a place holder. When I click on the checkbox itself, it sends correct postback, but when I click on the text next to the checkbox, I have 2 postbacks: one with event target equal null and the othe...

How do I add a collection e.g. dynamic array as a property of a custom asp.net control?

I'm trying to add a dynamically expandable property to a composite control that I can drop on the designer surface. I've tried this with a String Array, a List, and an ArrayList. All with similar results. I'm missing something and I don't know what. Here is what I think is the relevant code: [DesignerSerializationVisibility(Desig...

Security considerations to be taken when developing a system similar to ASP.NET session

What security considerations are to be taken when developing a system similar to ASP.NET session? Edit: Some follow up to input received, Does encrypting the token actually offer real security? The ASP.NET session token is not encrypted, if they steal the entire cookie it doesn't matter whether it's encrypted or not the end result is t...

Prompting for download

Whats the best method to prompt a user to download something? In the past I've used window.open('file.pdf'); but I can see popup blockers having a problem with this. Of course I'll include a manual link aswel. I basically want something like the Microsoft Download page. So whats the script that prompts this? ...

.NET - Way to display all available vars?

I know absolutely zero about .NET. Is there a way for me to show all the vars that are available to a user control to use? If they only showed like in a debug mode or something on the host machine that'd be fine. Thanks! ...

Can I set up Windows Authentication in WebMatrix Beta 2?

I have an ASP.NET site where authentication mode="Windows". Just downloaded WebMatrix beta 2 yesterday, trying to debug my app. In WebMatrix, I'm getting 401 errors after pressing F5 in Visual Studio. Also in VS, getting "Unable to start debugging on the web server. An authentication error occurred while communication with the web serve...

Show Hide using Javascript on a control, inside a ASCX control in a gridview. (ASP.NET + Javascript)

Hello, I have written a web usercontrol (ascx). Inside, there is a Panel that I want to show/hide on click of a hyperlink inside the usercontrol. Normally, this is easy just by doing something like this (the onclick attribute is added to the hyperlink on prerender): var PanelToShow = document.getElementById('<%=PanelInvoiceHasBeenCre...

Handling Images and file attachments in a Content Management System

Assumptions: Microsoft stack (ASP.NET; SQL Server). Some content management systems handle user-generated content (images, file attachments) by storing it in the file system. Others store these items in the back end database. Some examples of both: In the filesystem: Community Server, Graffiti CMS In the database: Microsoft Sharepoin...

ModalpopupExtender not hiding, and Gridview not refreshing

I have a Gridview within an UpdatePanel that shows some data from my Database. When you click on an edit button, it opens up a detailsView within a ModalPopupextender. When you enter in data in the textBoxes in this detailView and click "update", the Database is updated but the popup does not hide. Then, when I close it manually by cl...