|
This is a technical forum. You need to search somewhere in the Philippines.
|
|
|
|
|
Use any job site to hire.Please refrain asking this type of question as this is a technical forum.
|
|
|
|
|
Whats are the difference between EF and EF2.0?
|
|
|
|
|
|
Hi,
Created a web application (with a login page, export a file page and a user management page) and when I attempt to build the application, I get the following errors:
BC40057: Namespace or type specified in the project-level Imports 'Microsoft.AspNet.Identity' doesn't contain any public member or cannot be found.
40057: Namespace or type specified in the project-level Imports System.Web.Optimization' doesn't contain any public member or cannot be found.
So I open the property pages for the project, select the References section, click Add to open the Reference Manager and discover the assemblies I need are not there to be selected.
What do I do now?
Regards,
Red
|
|
|
|
|
|
|
I have a web application that I am maintaining. I made a change to the vb code, not the aspx page, and when I run the page now I am getting 
: inserted at the beginning of the textbox. What can be causing this? I am using IE 11.
|
|
|
|
|
It seems like the new line hasn't been translated into an actual line breaks. What change did you made? Have you tried testing it on other browser? What's the result?
Showing us some relevant codes here might help.
|
|
|
|
|
I tried re-loading the previous version of this program and it displayed the same behavior. So I restored the latest code and deployed it to the test server and there was no unwanted behavior, i.e. insertion of the . It seems the problem only occurs on my development computer. We are only allowed to run IISExpress locally here. There must be something with the patches that have been applied to developers computers.
|
|
|
|
|
Hi,
I'm working on a login page for an website app and since it's the same layout and format as all our apps, I just copied the html and code pages from another app. Now the fun begins...
I save and close my work for the day. The next day I open the project and in the code page for the login screen are dozens of errors, mostly all the same "LoginUser" not defined (this is the id of the asp:login control in the html). I move the code file to the CodeBehind property and the 'not defined' errors go away....wth!
Save and close the project for the day and when I open it again, guess what! "LoginUser" not defined in the code file again. Move the code file back to the CodeFile property and viola, erros go away.
Anyone seen this behavior?
Red.
|
|
|
|
|
|
Hi everyone,
I had trouble getting a VB project into TFS because I'm a newbie and had the local and source control mappings and bindings misconfigured. On one check-in to TFS, my project ended up being split into several new folders within the parent folder.
I straightened out the mess and tried again only to discover that the bin file somehow got lost so, I copied the bin file from another project to my project and removed anything relevant to the other project.
Now I can't compile my project because of this error:
"The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located."
Obviously, I checked the bin file for this entry and it is there.
Internet isn't very helpful as I'm looking for a fix, not a work around.
Any help will be greatly appreciated.
Red.
|
|
|
|
|
Check you have the right version of the assembly (1.0.5.0 of (probably) Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll). Download a tool called "ILSpy", it lets you look at assemblies to see their versions and what classes etc are in them, it's pretty handy for debugging issues like this. Alas the "fix" is probably going to be to get the right assembly.
|
|
|
|
|
F-ES Sitecore,
It was suggested to me that I remove the compile section in the web.config file and let the system determine what to use.
Sure enough, there it was, in the web.config file and after commenting out the compile section, that particular error was never seen again.
Issue solved.
Thank you for your help eventhough it wasn't the solution.
|
|
|
|
|
so tell me how could i design whole things. suppose i have a registration class what has so many properties like
Account information
----------------------
First Name
Surname
Company Name
Contact Number
Email :
Password
Confirm Password
Billing information
----------------------
Address1
Address2
Town/City
County/State
PostCode
Billing Country
i have one customer class which has many properties for account and billing information. now i want when i will save customer data by EF then account info will be saved in customer table and billing info will be saved in address table. so tell me how could i do this mapping when i am working with EF db first and code first.
please discuss with a sample code. thanks
|
|
|
|
|
As you see in this example [^]
You should have relation between address table and billing table like a foreign key relation with billing table where primary key of that foreign key is defined in address table.
|
|
|
|
|
I have an aspx content page that is related to a .master file, which of course has a Form tag. I believe that the Form is getting resubmitted when the user clicks on the "Enable Flash" button in the Flash popup.
This occurs in Google Chrome (and NOT in IE or Firefox).
My question is, how to allow this popup to be clicked, essentially, to bypass the form resubmission?
|
|
|
|
|
Probably by changing the code for the popup, which we can't see because you haven't shared it with us.
But if this is a new development, you should avoid Flash if at all possible. You have less than three years until Adobe kill it:
Adobe will finally kill Flash in 2020 - The Verge[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
We are replacing our Flash but it's a massive project. Until then, I have to deal with it. The pop-up isn't my own (.NET code), it's called this way from the aspx:
<%@ Page Title="" Language="C#" MasterPageFile="~/App_Parts/Masters/Home/ParentFastTrack.master" AutoEventWireup="true" CodeFile="fastTrack.aspx.cs" Inherits="members_Home_fastTrack" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="Server">
<script type="text/javascript" src="https://cdn.whizz.com/whizz-flash.min.js"></script>
<script>
Shadowbox.init({
skipSetup: true,
players: ['iframe'],
useSizzle: false,
overlayOpacity: 1,
viewportPadding: 5
});
So this https://cdn.whizz.com/whizz-flash.min.js is being called in another of my aspx pages and works there, but that one doesn't include a .master page, and subsequently no tag. My suspicion is, it's a issue.
Thanks for any help.
Anita
|
|
|
|
|
Looking at the full script file[^], it seems the popup creates a <button> element within the modal to open a new page with instructions on how to install Flash.
The event handler for the button doesn't prevent the default behaviour. Since the button is inside a form, the default behaviour in some browsers is to submit the form.
You'll need to find some way to identify the button, possibly via an ID or CSS class on an ancestor element. You'll then need to add a delegated event handler[^] for the button's "click" event, and call the preventDefault()[^] method on the event object.
For example:
document.getElementById("parent-element").addEventListener("click", function(e) {
if (e.target && e.target.nodeName == "BUTTON") {
e.preventDefault();
}
});
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
pls can i reference an iframe of one aspx.vb page inside another aspx.vb page?
if yes then pls help me out with the code behind.....thanks
|
|
|
|
|
The Web does not work that way. Pages are just classes that are instantiated and that generate html which is sent to the client. You can't access the page in VB because it does not actually exist.
What you can do is call methods or function in that class just the way you would any other class.
I think you need to define more clearly what and why you want to do this and there may be another way. JavaScript might be an option.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
No because iframes exist on the client, they are only accessible via code that runs on the client such as javascript. The code on your vb files runs on the server and has no knowledge of, or access to client iframes.
|
|
|
|
|
i am talking about asp.net mvc.
just seen a example but do not understand when people mention url with ajax begin form?
@using (Ajax.BeginForm(new AjaxOptions { Url = Url.Action("Foo", "Bar", null, "http") }))
{
...
}
when we need to post data to different controller and action then url is used?
if yes but ajax begin form has option where we can specify controller and action name then why should we generate url where form will be posted ?
The Ajax.BeginForm takes the following parameters
actionName
controllerName
routeValues
ajaxOptions
htmlAttributes
please help me to understand the url usage with ajax begin form. thanks
|
|
|
|