|
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.
|
|
|
|
|
hi! thank for answer
No apps are on web server
|
|
|
|
|
If they have web.configs you'll want to make them virtual applications in IIS. Also, you may be running into an issue where you have both .net 4.0 apps mixed in the same app pool as .net 2.0 apps. You'll want to separate them.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Is there any possible to create blog in blogspot.com using c# code.
|
|
|
|
|
Quite possibly, but you need to ask your question in the correct place[^].
Use the best guess
|
|
|
|
|
|
Hi ryanb31,
Thanks for your reply.
I have gone through the link http://code.blogger.com/2012/06/blogger-api-v3.html. We are unable to create new blogs using this api. On created blogs only we can do some operations like (post/comment/reply).
Can you tell me by using which api can we create blogs and perform operations on it?
|
|
|
|
|
I believe that is the only API so what you want may not be available then. I would recommend contacting them or asking in their forum.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hello All,
I created a new web site.
I need to get data from oracle. So, I installed the ODAC components.
To add a reference in my web site, I accidentially, added the dll reference from this location - C:\app\<username>\product\11.2.0\client_1\odp.net\bin\4\Oracle.DataAccess.dll
I need to get this dll reference from C:\Windows\Microsoft.NET\assembly\GAC_64\Oracle.DataAccess\v4.0_4.112.3.0__89b483f429c47342\Oracle.DataAccess.dll
I keep adding this new reference but it is not adding this new reference as well. How can I change this?
Thank you!!!
|
|
|
|
|
Delete the first reference?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
me, in pictures
|
|
|
|
|
Thank you for your reply.
Since this is set up as a web site, there is not reference folder. I right click on project, and add a reference. When I select the dll from the correct location, windows folder, it adds this reference in the web.config file. There is not path specified in the config file.
Thanks!!
|
|
|
|
|
Never used that bastardized version of a web site. However, just delete the reference from Web.config, then.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
me, in pictures
|
|
|
|
|
Since you want the reference out of the GAC when you go to add Reference it should show up in Assemblies/Extensions. You should not browse to it.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi my name is Isaac,
How can I upload a video in sql server 2005 then play it in asp.net webpage.
And create a playlist on web page of all video that i upload in sql server so that a user can choose a video to play and see to many time a video was played.
I need your help please step by step
|
|
|
|
|
What have you tried so far? Where are you stuck?
|
|
|
|
|
I tried to upload a video it accept (only MP4 format) but FLV format refuse.
But when I want to play it on a webpage it accept for some video, but other video just make sound but no video.
|
|
|
|
|
Excuse me for the delay to respond.
my problem is: I tried to upload a video it accept (only the MP4 format) but FLV format refuse.
But when I want to play it on a webpage it accept for some video, but other video just make sound but no video. I used the videohandler.ashx file for the video.
what I need is to upload any kind of video if it posible or if it not possible to convert a video in flv before insert it in sql server then show all the video in kind of a playlist so that a user can choose a video to play like in youtube.
I tried this codes but it have some problem Video Uploader Control for SQL Server
Video Uploader Control for SQL Server[^]
|
|
|
|
|
It takes a lot of code to do what you are asking, too much to be able to answer you easily here. You'll need to be more specific as to where exactly you are stuck.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Thank You Ryan,
I want to code which can shows how many time a video was watched.
I'm stuck here:
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<object id="player" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"
height="170" width="300">
<param name="url" value='<%# "Handler1.ashx?id=" + Eval("ID") %>'/>
<param name="showcontrols" value="true" />
<param name="autostart" value="true" />
</object>
</ItemTemplate>
</asp:Repeater>
I can not see a video in the player
-- modified 11-May-13 15:12pm.
|
|
|
|