asp.net

Overloading Enums and Properties in VB.NET

Hi I have a base class with the the following enum and property: Public Enum InitType Focus = 0 Help = 1 ErrorToolTip = 2 End Enum Property ToolTipInitType() As InitType Get Return m_initType End Get Set(ByVal value As InitType) m_initType = value ...

asp.net membership api integration with php

Hi guys, Fairly new to this so go easy ;-) Just looking for some general advice really. I'm currently creating a front end system to integrate with a back end system that someone else has created. My front end system just consists of a website, a sign up form where customers can register. This is integrated with our payment partners ...

How to specify file extension in ASP.Net upload control?

Hi, Is there a way to specify a file extension for ASP.NET upload control? E.g. I want to upload images with jpg and png extensions only. I can implement this easily for a windows application, but struggling with ASP.Net Thank you ...

Error: Sys.InvalidOperationException: Type AjaxControlToolkit.BoxSide has already been registered

Hi friends getting the error Error: Sys.InvalidOperationException: Type AjaxControlToolkit.BoxSide has already been registered while running the web site. Don't know due to this some javascript files are not working. Can any one help me. ...

problem in design view

I have designed a user control but its design view is not visible,can anybody help me out. <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Note.ascx.cs" Inherits="MFActivityPlanning.usercontrols_Note" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ Register TagPrefix="uc" Ta...

Disable dates in Jquery datepicker

I am using a jquery datepicker and timepicker. In datepicker I want to disable the all dates which are past to the current date. And in timepicker I want to show the times which is one hour prior to the current time.Can anyone tell me how to do this? ...

open forums for trainers (professional IT courses fro developers)

I googled. I asked in forums but I could not find any forum, newsgroup or discussion boards for "trainers" (teachers, coachers) and supporters (writers of courses, sysadmins of labs, et al) of professional courses for IT developers Might be the certified by major vendors trainers have the sites with forums but they are closed to non-...

Adding custom attributes to asp.NET RadioButton control

I want to add a custom attribute to an asp.net RadioButton called Key which I'm using client-side for an ajax request. What I'm finding is that my aspx markup which is the following: <asp:RadioButton ID="rdoPost" GroupName=PreferredContactMethod" value="Post" onclick="DoStuff(this)" runat="server" /> gets rendered in the page as <sp...

Explain this: CheckBox checkbox = (CheckBox)sender;

While going through the checkBox I found there is written CheckBox checkbox = (CheckBox)sender on checkBox1_CheckedChanged event. Please explain what it means? ...

Asp.Net Query String

I am using Querystring to pass values from one page to other. I am tring to implement encoding and decoding using the Server.UrlDecode and urlEncode. Query string returns a null value, but I can check the values are been sent in URL. The two pages are: QueryString.aspx protected void Page_Load(object sender, EventArgs e) { } protec...

Write to CSV file and export it?

In C# ASP.net, could someone show me how I can write entries from an Array/List to a CSV file on the server and then open the file? I think the second part would be something like - Response.Redirect("http://myserver.com/file.csv"), however not sure on how to write the file on the server. Also if this page is accessed by many users, is ...

ASP.NET Maintaining ActiveTabIndex on Postback within TabContainer

This probably has been asked many times before but I was wondering how to maintain the ActiveTabIndex of an AjaxControlToolKit TabContainer. The only way I can think of achieving such a thing is to store the ActiveTabIndex in the session and checking for this on postback. Are there any other solutions to solve this problem? ...

Set ListItem value to constant for RadioButtonList in ASPX

Hi, I must be doing something wrong here but I can't find an easy way to get this to work. Imagine the following code: <asp:RadioButtonList ID="MyRadioButtonList" runat="server"> <asp:ListItem Value="<%= CompanyName.SystemName.Constants.PaymentFrequency.FREQUENT.ToString() %>" Text="Yes" Selected="True"></asp:ListItem> <asp:Li...

how to set contentplace holder size that support all browser...

Hi, I have used clientheight for getting height.When i use in ie its working fine.But in the case of other browser its not working.How can i set contentplace holder.i have tried with window.height()..but its not working ...

TextBox.TextChanged event not firing on IE7

In my web form I have a Textbox control. The TextChanged event of the Textbox is not triggering. AutoPostBack is set to true What could be the reason for this? Here is the code: protected void Textr_TextChanged(object sender, System.EventArgs e) { } <asp:TextBox ID="Textr" TabIndex="10" Style="z-index: 117; left: 500px; ...

Unescape JavaScript's escape() using C#

Are the any functions in C# that handle escape/unescape like JavaScript? I have a JSON string like this: {"Feeds":[{"Url":"www.test.com","FeedType":"Twitter"},{"Url":"www.test2.com","FeedType":"Youtube"}]} Which looks like this after escape() %7B%22Feeds%22%3A%5B%7B%22Url%22%3A%22www.test.com%22%2C%22FeedType%22%3A%22Twitter%22%7D%2C...

Change the url of asp.net page from code behind.

Hi All, I am trying to change change the url of current aspx page to the other url on a click of button. Using Request.Url.AbsoluteUri i can get the url but is it possible to modify?. If yes, what actions will it take i mean will it be a new request or a post back. Please let me know your views. Thanks, Mehul makwana ...

Permissions on "Temporary ASP.NET Files" directory disappear overnite

Every morning, I get the same error: The current identity (myMachine\ASPNET) does not have write access to 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'. I re-add the permissions, and everything works for the day. This appears to happens whether or not I reboot. I can't find any scheduled task that migh...

sub report in asp.net(rdlc)

how link subreport to mainreport in asp.net(rdlc) ...

Saving a file share link in a SharePoint list column

I have to save a fileshare link in a sharepoint list and i want that file to be opened when the link is clicked, the normal sharepoint hyperlink column does not work for me in this case as it embeds the http:// with the url. How can I handle this scenario? the link i want to save is in the format \192.168.1.2\myserver\myfile.pdf and the ...