|
Realized that I had to be logged in (of course) to change the password. Stupid of me..
Anyway, is this the way you create login in a real world application?
|
|
|
|
|
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'REPORTservice.HeaderPage'.
Source Error:
Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="EmployeePage.Master.cs" Inherits="REPORTservice.HeaderPage" %>
Line 2:
Line 3: <!DOCTYPE html>
Source File: /EmployeePage.Master Line: 1
I can run my old project or project I download in the internet but not a new one.
In BIN folder i don't have any file (no .dll file)
Pls. help Thank you
|
|
|
|
|
What is the name of the class in the EmployeePage.Master.cs file? I'm betting it's not REPORTservice.HeaderPage .
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
namespace REPORTservice
{
public partial class ManagerPage : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
Here is my Code Behide
|
|
|
|
|
Janyaporn Rueangthep wrote: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="EmployeePage.Master.cs" Inherits="REPORTservice.HeaderPage" %>
Janyaporn Rueangthep wrote: public partial class ManagerPage : System.Web.UI.MasterPage
Well, there's your problem. The Inherits attribute needs to be the name of the class in the CodeBehind file.
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="EmployeePage.Master.cs" Inherits="REPORTservice.ManagerPage" %>
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
thank you for your advice but still cannot run show the same problem.
I have try build a new project and run a blank page and it's shown the same problem.(this is weird because I can run my old project)
Do you have any idea?
Is it possible that the problem is about connection?
|
|
|
|
|
If it's the same error, then either you haven't fixed the right page, or the code you've posted isn't the code you're running.
If it's a different error, then you need to post the new error message.
Janyaporn Rueangthep wrote: Is it possible that the problem is about connection?
The single error message you've posted is nothing to do with a "connection", either to the server or to a database.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
where you run this page (using IIS or visual studio),
and what about your child page which used this master page and you getting error...
Test with debugging line by line in visual studio...
AND First thing to do... Build your project in visual studio using F6 or click on build solution menu...
modified 16-Sep-13 5:52am.
|
|
|
|
|
How to convert each page of PDF to JPEG with out using Imagemagick or Ghostscripts. I'm looking freeware dll that is open source.
|
|
|
|
|
bths wrote: I'm looking freeware dll that is open source. Then you should be using Google.
Veni, vidi, abiit domum
|
|
|
|
|
Thanks a bunch. You're of no help.
|
|
|
|
|
And you are lazy.
Veni, vidi, abiit domum
|
|
|
|
|
bths wrote: I'm looking freeware dll that is open source.
Ghostscript is freeware (GNU GPL v3) and open-source.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I agree with richard, i used it way back 2004
|
|
|
|
|
How do I fix "This page can't be displayed" error in asp.net c#?
I was debugging a localhost asp.net and I have made some very minor code changes and ran it again and now I get an error I have never gotten before. In nice big blue letters it tells me "This page can't be displayed".
Apart from taking everything to forumula, what do you think would cause this error and how would I go about fixing it? It offers a button that says "Fix connection problems", but this is a localhost browser, so there are no connection, really. I clicked the button anyway and it did not offer any solution. I also refreshed the page, as suggested and it did nothing.
I test my localhost in the browser and it is working.
What do you think?
Here is a link to a screen shot:
http://i67.photobucket.com/albums/h292/Athono/9-9-2013_zps3b05a401.png
|
|
|
|
|
You're using either the Visual Studio development server or IIS Express. Each time you start the application, the port number will change.
Rather than keeping the page open in your browser, try hitting F5 in Visual Studio.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I'm doing a post to a WebAPI that passes a JSON object. Here's how the Post is set up:
var jsonContent = new JavaScriptSerializer().Serialize(myObject);
var request = (HttpWebRequest)WebRequest.Create(apiUrl);
request.Date = dateOffset.DateTime;
request.Method = method;
using (var streamWriter = new StreamWriter request.GetRequestStream()))
{
streamWriter.Write(jsonContent)
streamWriter.Flush();
streamWriter.Close();
}
}
In my WebAPI I have an attribute on my controller that inherits from ActionFilterAttribute. This serves to do some authentication and security checks before the controller is called.
Ideally I'd like to retrieve the JSON string from the Request, but I can't figure out how.
I tried this, but it didn't work:
var contentTask = actionContext.Request.Content.ReadAsStringAsync();
contentTask.Wait();
var jsonContent = contentTask.Result;
However, the content is always empty. What am I doing wrong?
EDIT: For what it is worth, if I comment out this problematic code and let the call go on to my controller, the object is passed in and deserialized just fine.
|
|
|
|
|
Hello.
I have a web page. This web page is open to the public. There is a jquery script on this page that collects some statistics about user actions and shows some result about it. Users are not necessary logged in or known. This script writes and reads from web service (that stores this data to database).
Data is not sensitive, but integrity is important.
How can I secure my web service from being used by third party, allowing only my JS code from a specific web page (or web site) to access it? Or at least securing it from being to easy to write or read something to my database by reverse engineering JS code.
I've googled on this topic, but have not found much.
Possible strategies I've been thinking of is:
1. When page is opened send some kids of token and compare that token to post header data. Are there standard functionally for this, from first glance I didn't find any.
2. Use only POST method and disable public service web page.
3. Implement protection from too many requests from the same ip/per hour
Any suggestions or good articles to read would be really appreciated.
|
|
|
|
|
Implementing https will help you reduce 'sniffer' risks on the web service.
|
|
|
|
|
I have MVC 4 intranet application which is deployed on IIS. when i pass my credentials it gives Not Authorized error.
I have checked the permission on folder and has set the window authentication in IIS also but still i am getting the error. How can i solve this.
Also how can i have log out button in intranet application?
|
|
|
|
|
nitin_ion wrote: I have MVC 4 intranet application which is deployed on IIS. when i pass my credentials it gives Not Authorized error.
This will depend on the type of authentication you are using.
nitin_ion wrote: Also how can i have log out button in intranet application?
You can put a button and then abandon session in the log off code.
|
|
|
|
|
Hi All,
I have visual studio 2005 professional edition on my laptop; where I've crystal report as integrated part of the VS
Could you please tell me ,How can I add check box to the grid view for a web application in the VS 2005?
There is other machine where I am supposed to develop my application,this system is bit slow and is under change of the environment. On this machine, I have license for crystal report 9 and for SQL server 2008 R2. due to speed /memory issues I cant install vs 2005 package here.
* My goal is to show data in the gridview,add check box, depending up on checked 'yes' status crystal report would show invoice for individual.
previously I've used VB 6 ; I have attached crystal report to the application so I know there is a way to go I am not sure correct method
with Visual studio 2008 express edition, I am able to get details which checkbox is checked but I am unable to call crystal report.
can anyone please give some example where we can call crystal report into vs web2008 express edition ?
with VS 2005 Pro edition I am unable to add checkbox to the gridview.
can anyone please give me some example to add checkbox in the grid view and attach crystal report 9 or call exisiting crystal report ?
I dont want to buy VS 2008 license at this stage, instead I would like to start development with exisiting tools - prefer to move VS 2005 to the new machine. (what would you recommend?)
In the long run I would like to run this application on the internet as well as intranet.I dont want any fancy application but basic functionality to register online for free & paid events
1. to show basic & relevant data and online event registration facility.
2. Event registration
2. a simple secured website application where I can integrate crystal report as reporting tool- user can export report to excel/ pdf /word or other available formats;
please ..Please help me with some advise and help on this; I am searching for these answers on the internet but Couldnt get a concrete answer
Please help me with this
Many thanks!
|
|
|
|
|
I'm using the jTable plugin of jQuery in my CRUD application. My problem is, when I click on the update icon, the changed values appear in the jtable , but on the data base side nothing seems to be changed. I just can't figure out.... what's the source of this problem ??? here's the script for my view :
@ModelType jTableSampleDatabaseLayer.Hik.JTable.Models.Concour
@Code
ViewData("Title") = "Filtering"
End Code
@section CssImport
<style>
div.filtering {
border: 1px solid #999;
margin-bottom: 5px;
padding: 10px;
background-color: #EEE
}
</style>
end section
<div class="filtering">
<form>
<label>Numéro: <input type="text" name="numero" id="numero" />
<label> Type: @Html.DropDownList("numero_type", DirectCast(ViewBag.types, IEnumerable(Of SelectListItem)), New With { .id = "numero_type" })
Nature: @Html.DropDownList("numero_nature", DirectCast(ViewBag.natures, IEnumerable(Of SelectListItem)), New With { .id = "numero_nature" })</label></label>
<button type = "submit" id="LoadRecordsButton">Rechercher</button>
</form>
</div>
<div id="Tableau" ></div>
<script >
$(document).ready(function () {
//Initialize jTable
$(
title:
actions: {
listAction:
deleteAction:
updateAction:
createAction:
},
fields: {
numero_concours: {
title:
width:
key: true,
create: true,
edit: false,
columnResizable: true,
columnSelectable: true
},
numero_type: {
title:
width:
options:
},
numero_nature: {
title:
options:
width:
},
numero_etape: {
title:
options: {
width:
},
titre_concours: {
title:
width:
},
date_de_sortie: {
title:
width:
type:
displayFormat:
inputClass:
},
nbre_rangs: {
title:
width:
},
nbre_matchs: {
title:
width:
}
}
});
//Re-load records when user click
$(
e.preventDefault();
$(
numero: $(
typeId: $(
natureId: $(
});
});
//Load all records when page is first shown
$(
});
</script>
the script from the controller :
<HttpPost>
Public Function UpdateConcours(concours As Concour) As JsonResult
If (Not (ModelState.IsValid)) Then
Return Json(New With {Key .Result = "ERROR", Key .Message = "Form is not valid! Please correct it and try again."})
End If
Try
_repository.ConcoursRepository.UpdateConcours(concours)
Return Json(New With {Key .Result = "OK"})
Catch ex As Exception
Return Json(New With {Key .Result = "ERROR", Key .Message = ex.Message})
End Try
End Function
and the script for the UpdateConcours in my MemoryConcours Repositroy :
Public Sub UpdateConcours(concours As Concour) Implements IConcoursRepository.UpdateConcours
Dim foundConcours As Concour = _dataSource.Concours.FirstOrDefault(Function(s) s.numero_concours = concours.numero_concours)
If IsNothing(foundConcours) Then
Return
End If
foundConcours.numero_concours = concours.numero_concours
foundConcours.nbre_matchs = concours.nbre_matchs
foundConcours.nbre_rangs = concours.nbre_rangs
foundConcours.numero_etape = concours.numero_etape
foundConcours.date_de_sortie = concours.date_de_sortie
foundConcours.numero_type = concours.nbre_rangs
foundConcours.titre_concours = concours.titre_concours
foundConcours.numero_nature = concours.numero_nature
Dim e As Concour = (From o In x.Concours Where o.numero_concours = concours.numero_concours Select o).First()
x.Entry(e).OriginalValues().SetValues(concours)
x.ChangeTracker.DetectChanges()
x.SaveChanges()
End Sub
ps: while the updating there's no error message it is just that the values are updated on the table but not on the data base side !!
|
|
|
|
|
code to add Calendar control in month view,week view and day view formats
|
|
|
|
|
Yes, but you forgot to include it.
Veni, vidi, abiit domum
|
|
|
|