The AjaxControlToolkit button does not work

why button of text editor for AjaxControlToolkit not working with me like color font - size only drop down worked ok but others one can't uses <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagP

C # Send an e-mail using the SMTP e-mail

I'm rather new to SMTP and IIS settings but according to the documentation on I've read the web this should be working. What I'm trying to achieve: To send an email from the server to a users email using an existing SMTP Relay Server. What I have don

How to load column data from DataReader?

I'm porting application to ASP.Net 5.0 with EF7 and found several problems. One of the issues is MS have dropped DataTable. I'm trying to transfer a bit of code to not use DataTable but read from SQLDataReader and record this into entities I have. I

How to download the image using the link button?

I am trying to download image using link button. Any one know how to download a image using link button. Help me to find a proper solution. Thank you. Code: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { pdfDataSetTableAdap

View a PDF or DOC file from the database in an ASP.NET page

hi i want to display a PDF file or .DOC or an image saved in my Data Base into my page. i tryed this code but without sucess. have any one an idea how can i do it ? <object type="application/pdf" data="~/Protected/docs/CV_Zied_JO

How to change the result name json of a wcf service method

I am trying to find info on how to go about modifying the name of the object returned from a wcf service, in json format, to a web client via an ajax call, instead of using the default wrapper. I have searched for related articles with no luck. It se

javascript function can not identify pageload argument

I have a function like $(function donutchartcreation(numbers) { alert(numbers[1]); } I tried to call this function from codebehind pageload as int[] numbers = { 27, 20, 30 }; string serializedNumbers = (new JavaScriptSerializer()).Serialize(n

Problem solving parameters in web forms in three-level design

I have the following code; Student.cs public class Student { public string StudentId { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string Email { get; set; } } And my student operations are being done

Call the ASP.NET function with the jQuery parameter

I can call a ASP.NET function without parameter from jQuery like following (default.aspx.cs) public string GetaString() { return "New String"; } jQuery (default.aspx) $(function () {var returnStr = '<%=GetaString() %>'; }; But when calling

RequestValidationMode 2.0 configuration error

I have to use <httpRuntime requestValidationMode="2.0" /> <pages validateRequest="false" /> But when I use the above element in my web.config file then I get the following error: <pages enableViewStateMac="false&quo

Intermittent 'remote name could not be resolved'?

I have an ASP.NET application that I use to read the contents of a web page by a HttpWebRequest frequently. There's no problem with the remote address and my application is always working fine. While I don't change anything, sometimes (about once a d

ASP.NET file IO account

I have an 3.5 app that write a zip file to a directory(Ionic Zip lib). this became a concern to my client that this could open up the server to attack. his logic was: my app uses ASPNET account to write the file ASPNET is a shared account tha

Expected error of jQuery object in page with main site

The error i get seems to be centered around jquery finding what it's in (window,document, etc.). Right now i'm just trying to implement the jQuery datepicker. the project has a master page, where i placed my script references. <head runat="server&

On authentication templates

To learn I started building a todo web app(web forms not MVC), this is essentially helping me in learning how works, during this course I have also learnt about the authentication modules provided by, and to my understanding i

How to edit MachineKey for Session State Server?

I'm trying to implement a SessionState server to allow multiple web servers to share the same state. At first this will be the different dev machines, and later it'll be the different web servers in the web farm. So far, I'm making good progress I th

ASP.NET Date Deployment Issue

I recently bought some webspace with I have deployed an application I have been working on to the server and am currently trying to workout the bugs but I can't seem to solve this one. I have set up my database in Visual Studio to use

How to display a calendar in an ASP.NET Datagrid?

How do I pop-up a calendar inside an ASP.NET + C# Datagrid?You could just make it a text field, and then use one of many javascript libraries for calendars/datepickers. Here is a list of 50 of them, with ratings and some basic info. You'll need one m

Does Decrypting a cookie convert it to local time?

I have my own cookie created like this: var authTicket = new FormsAuthenticationTicket( version, userName, DateTime.UtcNow, DateTime.UtcNow.AddMinutes(30), createPersistentCookie, userData, "/"); string encryptedTicket = FormsAuthenticat

Are there websites that you can not create with ASP.NET MVC?

I was about to ask this question...but since it has already asked I will ask a different one. I have never created a production website and I am thinking it is time for me to learn how. (I have simple one I can do for a customer.) I personally LOVE t

How to convert a file path to a URL in ASP.NET

Basically I have some code to check a specific directory to see if an image is there and if so I want to assign a URL to the image to an ImageControl. if (System.IO.Directory.Exists(photosLocation)) { string[] files = System.IO.Directory.GetFiles(pho