|
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.
|
|
|
|
|
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
|
|
|
|