|
Bithu wrote: twitter like social networking application
You better ask twitter to get your answer.
Anyway, it's upto you how you want to have your architecture. Try out with simple .NET application with multiple users. Then see how much you want to scale up...Anyway, best of luck...
|
|
|
|
|
Hi. Im generating half my page with normal html and half from the code behind.
<normalhtmlstuff>
<p id=<asp:label>>
</normallhtmlstuff>
Ok, you can get the idea of what i need. Problem is that when doing it like that and changing the labels to something it comes out like id=<pre>"myid"<pre> or something to that effect.
Thanks
Strive to be humble enough to take advice, and confident enough to do something about it.
|
|
|
|
|
You need to use a literal if you want to insert HTML and not have the code convert it into visible text.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thank you
Strive to be humble enough to take advice, and confident enough to do something about it.
|
|
|
|
|
any one know how handle this error in web.config
Error Message: Only one <configSections> element allowed per config file and if present must be the first child of the root <configuration> element.
Warning 2
The 'requirePermission' attribute is not declared.
|
|
|
|
|
m2a2011 wrote: Only one <configsections> element allowed per config file and if present must be the first child of the root <configuration> element.
This is plain english. It means what it says. Services like babel fish will translate it into whatever language you prefer, or, if you don't speak English well enough to understand this, then I'm sure there's a visual studio version in a language you would prefer.
I can't explain it any clearer than what the error message says. If you can't understand the error message, you won't understand my reply, as it will also be in English.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I created a web app in ASP.NET via Visual Studio 2008. I then uploaded it to my web hosting dir. But the app won't work as there is a config error trying to load System.Web.Extensions. OK, from what I can gather, there are 2 assemblies that need to be loaded, so I uploaded them to the web hosting dir, and instructed the web hoster to restart the server. But it still won't work, and the web hoster is saying that it is my fault.
Anyway, aside from fixing this error, doesn't it seem that a web hoster that claims to be able to host an ASP.NET application should be able to handle a "Hello World" web app produced by the latest Visual Studio? If there are any issues, shouldn't the web hoster be aware of them (especially after I have pointed it out)?
|
|
|
|
|
where did you put those dll ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Depends on the web host and their setup. Some may well be hosting 2.0 and not 3.5.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
System.Web.Extensions needs ASPNET Ajax installed. .NET 3.5 has it already. It is loaded in GAC with strong key. Check if you are using Public Token for it(I guess it is ) in your web.config.
I think you should install .NET 3.5 to the server before you could use it. If you are having Public token, you cant paste it to the bin directory and make it working.
|
|
|
|
|
Is the right version of the framework selected in the web application properties in IIS?
Rob
http://tagyurit.com
r
|
|
|
|
|
hi,
developing an ajax enabled site.
i am having a master page which has a asp:scriptmanager control. when i inherit the master page in my aspx page i am unable to get the asp:update panel control in the page aspx page.
Sandeep Kumbhar
|
|
|
|
|
Can U rephrase the Question. If u didnt see it in controls Try To Use Dll Again
If It Helps Click It as Answer
|
|
|
|
|
sanjubaba wrote: unable to get the asp:update panel control in the page
Clarify this.
only two letters away from being an asset
|
|
|
|
|
hi,
kindly view the following masterpage code
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<%@ Register Src="~/User_Controls/General/ctlHeader.ascx" TagName="ctlHeader" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager></asp:ScriptManager>
<div>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td style="height: 102px" valign="top">
<uc1:ctlHeader ID="uctlHeader" runat="server" />
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td align="center">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
<asp:UpdatePanel></asp:UpdatePanel>
</asp:contentplaceholder>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
In the master page i am able to get the <asp:UpdatePanel>
But in the content page where i am inheriting the master page, i m unable to get <asp:UpdatePanel>
view the content page code aspx page:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="testupdatepanel.aspx.cs" Inherits="Forms_testupdatepanel" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
Sandeep Kumbhar
|
|
|
|
|
sanjubaba wrote: i m unable to get <asp:updatepanel>
What do you mean? You can't type <asp:updatepanel>?
only two letters away from being an asset
|
|
|
|
|
I'm trying to use Response.TransmitFile in ASP.NET 2.0 instead of reading and writing chunks to a buffer for large files.
The questions I want to ask are:
1. Does anyone know how efficient Response.TransmitFile is? I can see that it doesn't add up the memory usage to IIS at all, but I'm not sure the impact on the server itself compared with reading and writing to a buffer in chunks.
2. What about security? by using Response.TransmitFile
Thanks,
|
|
|
|
|
Read this[^]
"Need Help" is not very good subject line and is probably the reason your question has been ignored.
only two letters away from being an asset
|
|
|
|
|
amarnath n.n wrote: 1. Does anyone know how efficient Response.TransmitFile is? I can see that it doesn't add up the memory usage to IIS at all, but I'm not sure the impact on the server itself compared with reading and writing to a buffer in chunks.
AFAIK, Response.TransmitFile directly writes the file in the Response stream, which is similar to reading and writing chunks to a buffer. It flushes the buffer once the file is written to the output stream.
amarnath n.n wrote: 2. What about security? by using Response.TransmitFile
There is no relation of Security with this. Its actually reading the file from a specified physical location of the server and writes the file directly to the stream. If asp.net user has permission to that folder, it can transmit the file properly.
|
|
|
|
|
I never had to use Response.TransmitFile . IMO, simple method to transmit files is to redirect to the file name. Rest all will be automatically taken care.
|
|
|
|
|
You are assuming that the file is in the folder structure. Many, store files out of the folder structure of the website so they can be properly secured on a user to user basis.
|
|
|
|
|
Hello,
I have created a web user control and that contain a javascript method that check for required field. if there is a required filed not filled it return an alert. the problem is that the page post back not in the control pageload but the page that contain that control. how can i prevent from post back when a special field is required.
regards.
dghdfghdfghdfghdgh
|
|
|
|
|
To call a javascript function prior to postback, take the button out of the form. Use the button to call javascript, and if everything is ok, use the javascript to call form.submit().
Rob
http://tagyurit.com
r
|
|
|
|
|
use
onclick = "return yourfunction()"
Now from the function return false when you show the alert, the page will then not be posted back.
function yourfunction()
{
if ...
{
alert('invalid');
return false;
}
return true;
}
|
|
|
|
|
Hi.
Hoping you guys can help me, and more importantly, the message I'm typing actually conveys my problem. I've come across a few forums where guys having my same problem, being answered in the way we don't want to.
My intranet website currently uses session variables and cookies to authenticate user. I would like to use the Active Directory login details of the user to gain access to the intranet. Now, to gain access to a PC, a user needs to login using his AD un and pwd, so surely the logged on user should be known somewhere.
So instead of using sessions and cookies, I want the user currently logged details, and directly log on to my intranet website. So I don't need to prompt the user again for details.
I think a step in the right direction would be to at least get the logged on user.
System.DirectoryServices DirectoryEntry and -Searcher doesn't really get you the logged on user. You can use these to search and add entries, but ya, they still don't provide me with the currently logged on user.
Going to IIS and Disabling anonymous access, and setting Integrated security. Kinda helps, but then my users still get prompted for a username and password. And yaaa, once again, I don't want that pop-up, because the user already needed to logon to the PC using his/her AD details, why can't IIS just use that.
And Lastly.
WindowsPricipal and Context.User.Identity.Name.... well, they only get set once the user logs in on that IIS popup I mentioned early, or simply not display anything when anonymous access is allowed.
I guess a short version is...
How do I plug my intranet into my active directory, without prompting the user for details again.
Hope my problem is stated clearly.
Thanks
|
|
|
|