|
|
Use FormsAuthentication and then just store whatever you want into the Session.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Thank you!
|
|
|
|
|
No problem.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
How do I clear the server cache in asp.net? I have found out that there are two kinds of cache. There is the browser cache and the server cache. I have done some searching but I have yet to find a clear, step-by-step guide for clearing the server cache using asp.net (or not).
I am working on an ASP.NET c# application that uses a 3rd party CMS. I have reason to believe that a bug I am having must have something to do with the cache on the server side. As an admin of the CMS, I have used some controls that individual users can see but they should not. The customer service has suggested I need to clear the server cache.
I can remote to the server. Do I need to clear the cache from there?
I did a search on google. So far, the only information I have is confirmation that there is such a thing as a cache on the server that differes from the client cache on the browser. The first results from Google are from wikipedia and instruct users of using a url addition to clear the cache on the server. I am not sure if that will work for what I need to do.
I wish I could find some sort of ASP.NET C# sample code that will clear the server cache.
|
|
|
|
|
|
hi to all
how can i acceess 'i' in for loop
thanks in advance
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %>
<!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></title>
</head>
<body>
<form runat="server">
<div>
<asp:DropDownList ID="aspMySelect" runat="server" OnSelectedIndexChanged="aspMySelect_SelectedIndexChanged" AutoPostBack="True">
</asp:DropDownList>
<asp:TextBox ID="aspNewOption" runat="server"></asp:TextBox>
<asp:Button ID="Button1" OnClientClick="addAspPopUp()" runat="server" Text="Button" />
<script type="text/javascript">
function addAspPopUp() {
debugger
var optionText = document.getElementById('aspNewOption').value;
var textBox = document.getElementById('aspNewOption');
var objSelect = document.getElementById('aspMySelect');
listCount=<%=objListItems.Count%>;
for (var i=0;i<=listCount;i++)
{
objSelect[objSelect.length] = new Option('<%=objListItems[i]%>');
textBox.value = "";
}
}
</script>
<input type="button" id="btnRegister" onclick="ConvertDate()" value="test" />
<input type="button" id="Button2" onclick="addAspPopUp()" value="test2" />
</div>
<asp:Label ID="lbltest" runat="server"></asp:Label>
</form>
</body>
</html>
|
|
|
|
|
What do you mean how to access i? Just use it. And why post so much other code that is not relevant?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
there is no point of asking, 'i' is there u can use, do you mean other than this?
|
|
|
|
|
hi to all
i have a grid view with a drowpdownfield
i want to add diffrent item for each row to this drop down .
how can i do this
thanks for any help
|
|
|
|
|
It is usually good to post some code with your message. You are more likely to get help that way.
Far too many people just ask for code and don't even try to write any code themselves.
|
|
|
|
|
but my question is very obvious .
i want just an idea to do this
|
|
|
|
|
how much hav u done post your code?
|
|
|
|
|
but my question is very obvious .
i want just an idea to do this
|
|
|
|
|
many ways you can items to grid view
you can use
XML data
Database data
Manual Adding
Which procedure you will prefer.
|
|
|
|
|
ok but
i want to add different item for each row to drop down
my problem is this
|
|
|
|
|
See if the Sample links on this ^ page help you. We can't help you because your explanation just isn't understood.
You should try Google more often.
|
|
|
|
|
mehdi.sabet wrote: i have a grid view with a drowpdownfield
If you have it let us see it.
|
|
|
|
|
Please help me to do this operations by using Asp.Net
1.Several screens (or one very functional one) to view the data in a variety of ways like by Phase, by ESXHost, by Application.
I think if we have several drop downs for filtering then that would work; so I can choose Phase 1, to show only the databases that will be migrated in Phase 1, then I can choose some other criteria and the screen shows a subset of data etc.
2. The Pre-requisites and Post-Migration checks should show whether the Phase or database migration is ready to start or is ok to complete.
|
|
|
|
|
Apologies in advance for the long post. I am getting the following error in my MVC app:
HTTP Error 404.15 - Not Found
The request filtering module is configured to deny a request where the query string is too long.
Here is my code:
public class MailHelper
{
public string To { get; set; }
public string From { get; set; }
public string Subject { get; set; }
public string Message { get; set; }
public string ImageUrl { get; set; }
public MaiHelper() {}
public bool IsValid()
{
return !(EmailDate == null) && !(string.IsNullOrEmpty(To)) &&
!(string.IsNullOrEmpty(From)) && !(string.IsNullOrEmpty(Subject)) &&
!(string.IsNullOrEmpty(Message)) && !(string.IsNullOrEmpty(BannerUrl));
}
}
public ActionResult Index()
{
MailHelper mH = New MailHelper();
mH.EmailDate = DateTime.UtcNow;
mh.From = "some@adress.com";
return View(mH);
}
I am using an external jQuery library ckeditor to get RTB functionality in my Razor page:.
/*Index.cshtml*/
@Model Controllers.MailHelper
@{
Layout = null;
}
...
@using (Html.BeginForm("Send", "Mail", FormMethod.Get))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
<fieldset>
<legend>MailHelper</legend>
<table style="width: 700px;">
<tr>
<th>Date</th>
<td>@Html.EditorFor(model => model.EmailDate)
@Html.ValidationMessageFor(model => model.EmailDate)</td>
</tr>
<tr>
<th>To</th>
<td>@Html.EditorFor(model => model.To)
@Html.ValidationMessageFor(model => model.To)</td>
</tr>
<tr>
<th>From</th>
<td>@Html.EditorFor(model => model.From)
@Html.ValidationMessageFor(model => model.From)</td>
</tr>
<tr>
<th>Subject</th>
<td>@Html.EditorFor(model => model.Subject)
@Html.ValidationMessageFor(model => model.Subject)</td>
</tr>
<tr>
<th>To</th>
<td>@Html.TextAreaFor(model => model.Message, new { @class = "ckeditor", @id = "text-details" })
@Html.ValidationMessageFor(model => model.Message)</td>
</tr>
<tr>
<th>Banner Url</th>
<td>@Html.EditorFor(model => model.BannerUrl)
@Html.ValidationMessageFor(model => model.BannerUrl)</td>
</tr>
</table>
<p>
<input type="submit" value="Create" />
</p>
</fieldset>
}
...
It seem that if the Message is too long in the MailHelper.Message field, an error is thrown from my Send method:
[ValidateInput(false)]
public ActionResult Send(MailHelper mailHelper)
{
if (!mailHelper.IsValid())
{
return RedirectToAction("Index", "Mail", new { mH = mailHelper });
}
dynamic email = new Email("Example"); */Example.cshtml*/
email.To = "johnstonandy@rocketmail.com";
email.From = mailHelper.From;
email.Subject = mailHelper.Subject;
email.Message = mailHelper.Message;
email.Banner = mailHelper.BannerUrl;
email.Send();
return RedirectToAction("Sent");
}
I assume the error is caused because I am using the FormMethod.Get parameter. Can someone point this novice in the right direction?
I have looked at changing the requestFiltering/requestLimits in the config but to no avail.
Cheers
-- RESOLVED --
As I should have guessed (found out through more research), the solution was rather trivial:
0) Add HttpPost attribute to Send method.
1) Change formMethod to formMethod.Post in Index.cshtml.
I don't speak Idiot - please talk slowly and clearly
"I have sexdaily. I mean dyslexia. Fcuk!"
Driven to the arms of Heineken by the wife
modified 11-May-13 22:13pm.
|
|
|
|
|
which IDE software is suitable for ASP.NET?
am the beginner .i plan to learn about ASP.NET .But i dont know which one is good for my learn needs ?
i have
netbeans IDE
visual express 2010
visual studio 2005
sql server
can any one suggest me please ?
|
|
|
|
|
The Web Developer edition of VS 2010 Express would be OK to get started.
Use the best guess
|
|
|
|
|
Visual Studio 2010 and SQL Server 2008 is best to start
And follow book
MS Press STEP By STEP Guide to asp.net.
|
|
|
|
|
Hi!
I need to have multiple applications realized with VS2008 running on same Website
Applications are published on different subfolders
I don't need (if not necessary) to have webconfig on the root folder
i have different webconfig for each app stored in subfolder app
But when i try to run an apps i retrieve:
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
How can i solve this?
please Help!
|
|
|
|
|
Are each of the apps actual Applications in IIS?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|