|
How do annotations pass through serialisation (JSON)?
Caveat: I am even less knowledgeable about MVC!
MVC, being server based can have the DAL/Models etc in the same project, eliminating the service component. I don't like that design and will need to look at a service component so this is relevant to me.
So the service would supply data based on the Table/View structure from the database via json and the MVC would then deserialise them into UI models.
This to me reduces the benefits of using EF spit as the DAL as it is bloody useless in a service.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
we are managing in sql server. I came to know that when we manage session in sql server then session end event never fire..,.is it true? Just guide me how to capture session timeout when we manage session in sql server. Thanks
tbhattacharjee
|
|
|
|
|
|
|
MY ssrs report can not be accessed from a specific mobile operator (Grameenphone Bangladesh Ltd).Any solution pls???
|
|
|
|
|
Sounds like a permission issue.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
If you don't know what exactly asked for pls dont give any reply.thank you......
|
|
|
|
|
No one can possibly know exactly what the issue is based on the tiny amount of information you provided.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi,
I am using Visual Studio 2010, VB.NET, my site has .NET 4, using Web Forms. I have a page with, among other things, two asp:ImageButton controls, each in its own little AJAX UpdatePanel. This page has been working since some time in 2013. One button is Add To Wishlist, the other Add To Cart. Both have an OnClick event and they are nearly identical, with the exception of the purpose and SQL Server stored procedure they call. As I said, they've both been working for quite a while. I made no changes to the page. Yet, suddenly, the Add to Cart button does not work...nothing happens, no error is thrown, it just doesn't do anything. the Add to Wishlist button still works as before. When they are updated, the image is changed. Add to Cart image is changed to "In Cart", Add to Wishlist is changed to "In Wishlist".
I've seen some complaints about ImageButtons not working in the latest IE, but this is in Firefox as well as IE.
I don't understand why one works and the other doesn't, and why it happened when no changes were made to the page.
My site is on a shared hosting plan at web.com, so there are many things that I cannot do. I only have access to certain things on the server.
Could a change they made cause this? But still, one button still works, same page, nearly the same exact code.
there are actually two pages, one is for pay items, one is for freebies. Both use the same code, and the Add to Cart button is not working on either page...both were working until recently.
I thought that perhaps the page was corrupted, so I re-uploaded the pay item page and cycled the application (I at least can do that), but it made no difference.
Help!
Dana
|
|
|
|
|
Can you clarify if it is the process that fails or just the change of image. IE is the record written to the cart table is SQL.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Nothing at all happens. It is as though I clicked on a word of text on the page. Nothing happens. The code in the OnClick event never fires, the data is not written, the image doesn't change.
Dana
|
|
|
|
|
Try using IE 9+ and pressing F12, then the bug button and run the page, see if an error is generated.
|
|
|
|
|
Thanks.
It actually did:
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0
Unknown error, code 0. Really helpful.
The wishlist button does not throw this error.
Dana
|
|
|
|
|
|
Yes, I did:
Protected Sub btnAddToCart_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs)
And the Add to Wishlist button:
Protected Sub btnAddToWishlList_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs)
Dana
|
|
|
|
|
You may have a response.write in the code somewhere that runs in the update panel
|
|
|
|
|
Nope. And as I said in the original post, it was working since 2013, and the page wasn't changed. It just suddenly started this recently. The button is the only thing in the update panel.
Dana
|
|
|
|
|
I am going to try this again, with a screen capture. After several attempts to fix this, I reverted to the original code and now I am getting an error in Visual Studio (this error wasn't there before).
OK, there seems to be no way to add an image to my post. that's kind of useless.
The error message is:
'btnAddToCart' is not a member of 'Danas3D_MarketplaceProduct'.
But it most certainly is. I am extremely confused about this. The other ImageButton is in the same kind of container, with one exception...I have removed the AJAX UpdatePanel that was wrapped around the btnAddToCart.
Please, someone must have seen this behavior at one time or another. I tried Build Page thinking it would update something. The error is in the code behind, in:
Protected Sub btnAddToCart_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs)
The line is:
oAddToCartBtn = Me.btnAddToCart
Please! This is driving me nuts! It makes no sense!
Dana
|
|
|
|
|
Hi all,
I have posted an article but its image links are broken. Can anybody from Approval team look it?
here is link of article.
www.codeproject.com/Tips/816581/Create-a-Class-Collection-of-another-Class-Extend
Thanks,
Prakash
|
|
|
|
|
Why are you posting this in the ASP.NET forum and not the Article Writing[^] forum?
|
|
|
|
|
Wrong forum, and i checked your Link[^] , it is working fine only.
So much complexity in software comes from trying to make one thing do two things.
Sibeesh
|
|
|
|
|
Hello
If I have this in the tags of my Site.master file:
<div class="navbar-collapse collapse">
<!--<ul class="nav navbar-nav">
<li><a runat="server" href="~/">Home</a></li>
<li><a runat="server" href="~/About">About</a></li>
<li><a runat="server" href="~/Contact">Contact</a></li>
</ul>-->
<asp:LoginView runat="server" ViewStateMode="Disabled">
<AnonymousTemplate>
<ul class="nav navbar-nav navbar-right">
<li><a runat="server" href="~/Account/Register">Register</a></li>
<li><a runat="server" href="~/Account/Login">Log in</a></li>
</ul>
..............
and this in the tags:
<link rel="stylesheet" type="text/css" href="logon.css">
Why can't my vb.net project see the logon.css file that I created:
.nav a:link { color: #ffffff; text-decoration: none; }
.nav a:hover { color: #ffffff; text-decoration: underline !important; }
and which appears in Solution Explorer (please see screenshot).
Basically, I am trying to change the colour of two links, 'Register' and 'Log on', to white.
Thank you.
|
|
|
|
|
You just drag the file from the solution explorer onto the web form in the head tag section and it will automatically build the correct link for CSS and JavaScript files.
It will just work.
Your link is wrong
|
|
|
|
|
Hello jkirkerx
Thanks for that advice. I didn't know about the dragging the file. Anyway, I did it and it has left the following in my tags:
<link href="logon.css" rel="stylesheet" />
Unfortunately, it has not changed the text colour link.
|
|
|
|
|
You have a CSS issue then
You can put a slash in front of the href, if the file is in the root of the web site folder.
<link href="/logon.css" rel="stylesheet" />
I not sure what your trying to do, I get that your trying to change the text color.
My typical CSS file looks like this
I call it a theme file, in which this file controls the theme of the web pages
The first 4 sections set the elements input, textarea, option, the next sets the elements html and body
One you set stuff globally, then you can fine tune other stuff by using ID names and Class Names
a img {border:none;}
input, textarea, option, .nobox{
background: transparent;
border: 0;
font-size: 100%;
margin: 0;
outline: 0;
padding: 0;
vertical-align: baseline;
}
html, body
{
margin: 0px auto;
color: #808080;
background: #383838;
font-family: Arial, Helvetica, sans-serif;
font-size: 80%;
font-size: 100%;
padding: 0 0 0 0px;
height: 100%;
}
.PageBackground
{
text-align: center;
}
#DefaultHeader_Wrapper_Home
{
background-image: url('/images/theme/bg-repeat_x_OtherDark.png');
background-repeat: repeat-x;
background-position: left top;
height: 800px;
width: 100%;
}
#DefaultHeader_Wrapper_Black
{
background-image: url('/images/theme/bg-repeat_x_OtherBlack.png');
background-repeat: repeat-x;
background-position: left top;
height: 800px;
width: 100%;
}
|
|
|
|