I got an action method (say public void ShowMeSomething ), and I do not want users to be able to browse to mysite/this/showmesomething. However I want this action method to be callable from another action method.
I am desiging a master and details page from a search page..user can search for something and I need to display the result in jqgrid if the result has more than 1 row or record.. if the result is just one record then i have to directly send then to details page by skiping grid page... I do have an action method for results page and one more action method for Jqgrid data..i am trying to check the row count for the database result and trying to redirect to details action results..but its not working at all..and showing an empty jqgrid..
I am using an ebay web service that is returning the auction instances based on user selection from a checklistbox. I would like the user to be able to click on each auction instance separately and be taken to that exact url. So basically, I need to know how to create multiple hyperlinks on the fly based on the amount of items the user selected. It would ideally look something like this....
Auction 1 LINK HERE Auction 2 LINK HERE
I am able to extract the url location from each auction from the web service, I just need to create many links on the fly.
I have file paths which points to a file which is stored in a database I cannot use the hyperlink control because it can be any number of paths can any one tell me how to create hyper link dynamically so that i can points to the file.
Is it possible to create hyperlinks to a .pdf or .html file i have in my App_data folder for my web site? I created a link to a Word document i have saved as .pdf and .html and whenever I click on link in debugging mode it gives me this: HTTP Error 403 - Forbidden. it gives me same error if i have link as .pdf or .html, is it too much to hope for that you can make a hyper link to a .pdf or .html?
I have a requirement to create multiple hyperlinks dynamically in a single GridView Column. The number of hyperlinks are not not known in advance and will depend on the results brought up by a query. How do I create the same?
I've been using the new ASP.Net MVC 3 RemoteAttribute to send a remote call to an action method that had a single parameter. Now I want to pass in a second parameter using the AdditionalFields property:
I have an action method that accepts an object as it's first parameter. One of the properties of the object is called "InMenu".
The form being submitted contains a checkbox called "InMenu" (Created with the Html.CheckBox helper method). Regardless of what I choose in the checkbox I always get false as the value. If I add a "bool inMenu" parameter to my action method i get an error complaining that "inmenu" is null in the form collection (it's not - it's value is 'true, false'). If i make it 'bool? inMenu' it's always null...
In short checkboxes completely fail in MVC despite me following the most basic of samples. The value in the form collection is just being ignored. :|
I have a controller called Person and it has a post method called NameSearch.
This method returns RedirectToAction("Index"), or View("SearchResults"), or View("Details"). The url i get for all 3 possibilities are [URL] How would i change this to rewrite the urls to [URL], [URL] for View("SearchResults"), and [URL].
i just want to be able to call a javascritp subroutine on the client, after the server has done its thing (when an action completes or control goes to the view, i'd dont mind calling the js from the view either).
for some reason, even vs2010 doesn't let me put breakpoints in <% ... %> tagged areas between <script...> and </script> tagged areas. i for this reason can't figure out whats going on and how it's running things. here is what i've put in my view, and the javascritp should run, but it doesn't....
im just trying to call "RunOnceRoutines;" but it's not getting called!
In one view (view1) there is a text box and a button beside it. i click on that button, i am popping another view (Create view) as a seperate window. in create view i am entering some values and creating a record in db. out of these values one value i have to send back to "View1". how can i send this value? i am opening view2 from view1 like