|
JV9999 wrote: A developer should be able to use google shouldn't (s)he?
A developer should be able to tie (s)he's shoes alone, shouldn't (s)he? But in the room with me half of the people going around with untied shoes!!!
With developers nothing obvious...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is (V).
|
|
|
|
|
What's wrong with sneakers
But true, get your point...
|
|
|
|
|
But that's too much like hard work!
You have to, like, work out how to get to google, innit? Then you have to, like, fink of sumfing to look for, innit? Then - horror - you have to, like, read answers and fink bout which might be best, innit?
Then you have to, like, do it, innit? While your pants are, like, round your knees, like, making it difficult to walk, like, innit?
Ask here and they'll do all the finking stuff for you...
innit?
|
|
|
|
|
|
Well, you're in luck. You have come to the right place. CodeProject is an excellent place to find articles[^] on all sorts of subjects including learning ASP.NET MVC. If you can't find what you want in the plethora of free articles here, then you could always go on over to here[^] for the paid option. If it's developing for mobile applications you're interested in, then take a look at Syncfusion's Succinctly[^] series of books.
|
|
|
|
|
And that, my friends, is what we call a gentleman.
|
|
|
|
|
|
|
Hi,
My host server is :
windows server 2003 and IIS6.
How can i block an Ip Address or allow in webconfig?
I have seen this code but not used for IIS6.
<location path="Default Web Site">
<system.webServer>
<security>
<ipSecurity>
<add ipAddress="192.168.100.1" />
<add ipAddress="169.254.0.0" subnetMask="255.255.0.0" />
</ipSecurity>
</security>
</system.webServer>
</location>
|
|
|
|
|
You can't. IIS6 stores its configuration in the metabase, and doesn't use the web.config file at all.
The only way you could possibly make this work would be to write a custom module, and add a wildcard mapping[^] so that every request to the server goes through the ASP.NET pipeline. This would probably have a detrimental effect on the performance of your site.
Windows Server 2003 is out of mainstream support, and reaches end-of-life by July 2015[^]. You should really be looking to upgrade you server ASAP.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
Hello friends! I'm having trouble with my website design. I am designing a site which I have been previewing with firefox and the appearance was ok by me. But when I previewed it with internet exploerer, everything scattered. Please I need a solution to this, so that the appearance can be the same in all browsers. Any advice is welcome.
|
|
|
|
|
That's not a ASP.net issue, but a HTML issue.
Creating HTML that works on all browsers is an art form, or a skill that takes a while to learn.
You really need to use CSS styling to set your widths and heights. style="width: 145px; height: 120px;"
Then run the page output through a HTML validator, online service
And fix all the reported errors.
Some people use browser detectors, and will adjust the CSS according to the browser brand and version number. In my opinon, in the long run, this is a bad idea.
Take Internet Explorer 10 an up, Microsoft went out of there way to make the browser undetectable, to correct rendering issues on the websites that do browser detection to fix rendering issues.
|
|
|
|
|
Hi,
ValidateAntiForgeryToken is not been applied for Controller method calling JGrid get details in ASP.Net MVC. Any suggestions on this please.
regards
Sreenath
|
|
|
|
|
I tried to add some HtmlGenericControls dynamically but not successful. The simplified related code is below. Please help if you find the problem. Thanks.
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="container">
<div id="thumbs" class="navigation" runat="server">
<ul id="UL_1" class="thumbs noscript" runat="server" >
</ul>
</div>
<div style="clear: both;"></div>
</div>
//-------
protected void Page_Load(object sender, EventArgs e) {
HtmlGenericControl li = new HtmlGenericControl("li");
li.ID = "1";
HtmlGenericControl anchor = new HtmlGenericControl("a");
anchor.Attributes.Add("class", "thumb");
anchor.Attributes.Add("name", "2");
anchor.Attributes.Add("href", "Images/1.jpg");
anchor.Attributes.Add("title", "xxxxxxxx");
HtmlImage img = new HtmlImage();
img.Src = "Images/2.jpg";
img.Alt = "Tile #1";
img.Width = 80;
img.Height = 80;
anchor.Controls.Add(img);
li.Controls.Add(anchor);
UL_1.Controls.Add(li); // UL_1 - HTML control defined in the .aspx
}
|
|
|
|
|
Do you have AutoEventWireup enabled?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Homer: Thanks for your response. 'Yes' to the AutoEventWireup:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="MapGallery2.aspx.cs" Inherits="MapGallery2" Trace="true" %>
|
|
|
|
|
And if you put a Trace.Write call in your Page_Load method, does the message appear in the trace output?
Have you checked the generated HTML source? You might find that the HTML is being generated, but isn't showing for some other reason.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Homer: Thanks again for your response. I checked Trace and found nothing strange there. Per your advice, I checked the HTML source. See the related part below:
<ul id="ctl00_ContentPlaceHolder1_UL_1" class="thumbs noscript">
<li id="ctl00_ContentPlaceHolder1_1">
<a class="thumb" name="2" href="Images/1.jpg" title="xxxxx">
<img src="Images/2.jpg" alt="Tile #1" width="80" height="80" />
</a>
</li>
</ul>
I couldn't find anything wrong there either.
|
|
|
|
|
Your code is generating the HTML as expected. If it's not displaying, then something else is going wrong. Perhaps your CSS rules are causing it to be hidden?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Homer: Thanks for your comment. Originally, all of the HtmlGenericControls are coded in the aspx that does contains several customized css. The page displays well. Then I coded the HtmlGenericControls in code-behind. I will debug if I can find the reason. Thanks again for your time and advice.
|
|
|
|
|
I don't know how to add on
1.emotion
2.sound[when I send out my message]
3.[time of send out & seen] feature
4.count number of user in room
5.private chat to someone
In bottom that 3 I showed is my class and html in my project
==index.html==
<!DOCTYPE html>
<html>
<head>
<title>SignalR Simple Chat</title>
<style type="text/css">
.container {
background-color: #99CCFF;
border: thick solid #808080;
padding: 20px;
margin: 20px;
}
</style>
</head>
<body>
<div class="container">
<input type="text" id="message" />
<input type="button" id="sendmessage" value="Send" />
<input type="hidden" id="displayname" />
<ul id="discussion">
</ul>
</div>
<script src="Scripts/jquery-1.10.2.min.js"></script>
<script src="Scripts/jquery.signalR-2.0.0.min.js"></script>
<script src="/signalr/hubs"></script>
<script type="text/javascript">
//Use for check what method I'm using
$.connection.hub.logging = true;
$(function () {
// Declare a proxy to reference the hub.
var chat = $.connection.chatHub;
// Create a function that the hub can call to broadcast messages.
chat.client.broadcastMessage = function (name, message) {
// Html encode display name and message.
var encodedName = $('<div />').text(name).html();
var encodedMsg = $('<div />').text(message).html();
// Add the message to the page.
$('#discussion').append('<li><strong>' + encodedName
+ '</strong>: ' + encodedMsg + '</li>');
};
// Get the user name and store it to prepend to messages.
$('#displayname').val(prompt('Enter your name:', ''));
// Set initial focus to message input box.
$('#message').focus();
// Start the connection.
$.connection.hub.start().done(function () {
$('#sendmessage').click(function () {
// Call the Send method on the hub.
chat.server.send($('#displayname').val(), $('#message').val());
// Clear text box and reset focus for next comment.
$('#message').val('').focus();
});
});
});
</script>
</body>
</html>
==ChatHub==
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;
namespace SignalRChat
{
public class ChatHub : Hub
{
public void Hello()
{
Clients.All.hello();
}
public void Send(string name, string message)
{
Clients.All.broadcastMessage(name, message);
}
}
}
==Startup==
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(SignalRChat.Startup))]
namespace SignalRChat
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.MapSignalR();
}
}
}
|
|
|
|
|
what is the difference between console.writeline and system.console.writeline??
|
|
|
|
|
system.
Really, this is a very basic part of C#, and a read of your notes, or search of MSDN could find you the answer[^].
I am not sure why you posted in the ASP.NET forum.
Veni, vidi, abiit domum
|
|
|
|
|
of course this is a basic question, But if you want really know what's is difference between this, I am try clear you confusion. First of All what is the Role of System. we can say System is main DLL or Parent DLL. When we are using the
using System; system automatic call this DLL.
you can seen many DLL call by default in Code Behind Page like this
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using System.Data;
When we not used the Using System; Our system compiler Generate the Error like that
The type or namespace name 'EventArgs' could not be found (are you missing a using directive or an assembly reference)
why we again Repeat this world System.Console.output.
sorry I have no time more for explain. try understand itself.
Happy coding
jsb
|
|
|
|