Hi everybody.
I have a little question to community. Does ASP.NET MVC allow to execute an action of another controller without RedirectToAction() method and without creation of an instance of this controller?
Thanks in advance,
Ivan.
...
I don't have any idea how to use this class in .net. Anyone wants to share his knowledge how to implement and use this class?
Have you got any simple procedure that calls a page and process it?
...
i have win.exe. it is get data webservice.asmx also a weppage.aspx that is related webservice.asmx. i start a scan job from my webpage.aspx (Like a math simulation).
i should threat my webservice.asmx also win.exe(simulation program) start directly. But How can i do?
...
I have a WCF Service hosted in IIS/ASP.NET that accepts HTTP Post (not form post) of serialized objects.
If the client sends malformed requests (eg they're not serializing the object correctly) I'd like to log the message sent up.
We're already using ELMAH to capture unhandled exceptions, so simply attaching the post data would be t...
I have a modal popup that contains a gridview. On the click of a button inside of a grid i reload the gridview with the data that depends on the id of the row clicked in the gridview. I would have like to reload the gridview onclientclick but I couldn't find a way to do that. Is it possible to reload a gridview client-side without the us...
I am looking for an application that can do the following
a) Programmatically auto login to a page(login.asxp) using HttpWebResponse by using already specified username and password.
b) Detect the redirect URL if the login is successful.
c) Submit another form (settings.aspx) to update certain fields in the database.
The required co...
I have a Sales table, with the following columns:
employeeID
amount
date
Now I want to SUM up the last 15 rows, so I am currently doing:
SELECT TOP 15 SUM(amount) FROM Sales ORDER BY [Date] DESC
But I get 15 rows obviously, is there a way I can sum it up and not have to loop through and SUM it on the client side?
...
I am trying to make an insert to an MySql database using a three layer solution (or what it might be called).
I have done this may times with an MS-sql database and it has worked very well.
But now when I am trying to make an insert I get the the ID can't be null.
I thought the database took care of that.
If I write an insert directly ...
Using the following form in a view
<% using (Ajax.BeginForm("PatientSearch", new {}, new AjaxOptions()
{
HttpMethod = "POST",
UpdateTargetId = "searchResults",
OnBegin = "BeginRequest",
OnSuccess = "SuccessRequest",
OnFailure = "FailRequest"
...
Started to look at the Treeview control.
Is there anyway to tie the Tree View control into a Directory structure on the Web Server using Visual basic?
I have a lot of legacy files, which are updated and added often. Obviously I could code the structure in XML but this would be laborious and hard to train out to the end user.
I guess i...
I have a .aspx page that has a link on it, then when clicked opens a new window using window.open.
I need to send a integer back and put that number into a textbox (which is a .NET control).
When I call window.opener on the popuped up window, I have to reference the ID of the textbox. The issue is, the ID changes from time to time if y...
Stop Press! This question is misleading; the code below works; the problem is unrelated. Please vote to delete. For those interested I had a self-closing <div/> that Chrome didn't like. It works fine with a <div> and </div>. I don't know if this affects other browsers, yet.
Going round in circles here! I have an asp:HiddenField in m...
İ try to work Ado.net Entity Framework with dynamic Data web Application But My solution run wthout error But Click gridview items create me :
Server Error in '/' Application. The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must be called before the method 'Skip'.
...
Possible Duplicate:
Dynamic Data Entities ID Column visible false?
There are Two kind of template in asp.net 3.5
1) Dynamic Data Web App.
2) Dynamic Data Web App. Entities
My SQL database has got Customer Table ; Columns : ID, Name,Surname vs.
if you use first one(Dynamic Data Web App); you can not see ID column(Customer Ta...
I have a webform and i want to detect if F5 button was pressed or if the page was refreshed. I know about postback but it is not what i'm looking for. I have a gridview that loads in a modal popup when a button is clicked and a parameter's value is set for the gridview. When refresh is hit and if the modal popup button was previously cli...
I have a user control (ascx), in this user control I wanna use a .js file.
So I include on top of it.
On the other hand, sometimes I use this user control in a webpage that this script has already been loaded on it before.
How can I make a declaration and make it actual only if the page doesn't contain another tag for this script?
...
I want to achieve something like the following:
UrlBuilder ub = new UrlBuilder("http://www.google.com/search");
ub.Parameters.Add("q","request");
ub.Parameters.Add("sourceid","ie8");
string uri = ub.ToString(); //http://www.google.com/search?q=request&sourceid=ie8
Is there anything in .NET, or I will have to create my own?
...
I have two questions:
1) I have a few global variables for my website declared in my global.asax file. They are simple, small key/value pairs and there are only a few of them. Is this a good practice for values that are small and need to be accessed by almost every page on my website? Storing them in the database and requiring a db look...
I need to implement a custom handler for MVC that gives me the first look at URLs requests to determine if it should rewrite the urls before submitting the URL to the routing engine. Any pattern is a candidate for the redirect, so I need to intercept the URL request before the standard MVC routing engine takes a look at it.
After looki...
Hi,
I am trying to send a large chunk of data over to a HTTP handler. I can't send it using GET because of the URL length limit so I decided to POST it instead. The problem is that I can't get at the values. context.Request.Form shows that it has 0 items. So is there a way that I can POST data to a HttpHandler?
...