MVC :: Return URL And Link Text Suggestions?

Mar 10, 2010

I got 3 "user role specific" Areas and 1 Public Area.Also, I have a "Shared" directory for controllers that's shared among the Areas.

On the Shared views, I have a "Return to [whereucomefrom]" link, that will depend on ..well, where you come from. If it was only the previous url I needed, I could just figure the referer and make that the url. But I also need the link text.

Say for instance "New Message" in Shared can be called from the "Customer" Area. If so, the return link would be "Return to my Orders", opposed to say "Return to Messages" for another area.So I want to pass on a return url and return url text from the link in an area view, so the shared view can display that link. I am not allowed to use Session and want to keep my URL's clean (sth like /Messages returnurl=customer/orders&linktext=Return to Orders" will not do).

I'm working on a URL Helper extension method as we speak, but I know in advance that is going to create an ugly url....

View 3 Replies


Similar Messages:

Variable Value As Link / Return The value As A Clickable Link?

Jan 25, 2010

Created a asp page using vbscript to calculate a value (works fine). I'd like to return the value as a clickable link, which would obviously redirect the user somewhere else.

View 9 Replies

Web Forms :: Get Current URL For Return Link?

Jan 3, 2011

On my front end page I am looking to something like as follows but it not returning and value.

<a href="/my/new/link.aspx?Return=<% Request.URL.ToString %>" >Link</a>

When I click on the link it doesn't have the Return value.This is on my header file which is .ascx page.

View 2 Replies

Return Image From .aspx Link?

Feb 12, 2010

Is it possible to output an image (or any file type) to a download link when a user clicks on a link from another ASP.NET page?

I have the file name and byte[].

<a href="getfile.aspx?id=1">Get File</a>

...where getfile returns the file instead of going to the getfile.aspx page.

View 7 Replies

Why Does ListControl.Text Return The *value* Of The Selected ListItem Rather Than The *text*

Mar 8, 2011

List controls deriving from ListControl, such as DropDownList, ListBox or RadioButtonList, are populated by a list of ListItems. A ListItem has a Value and a Text property.

ListControl offers the following methods to access the currently selected item:

ListControl.SelectedItem returns the currently selected ListItem,
ListControl.SelectedValue returns the Value property of the currently selected ListItem.

Now, the interesting thing is:

ListControl.Text returns exactly the same value as ListControl.SelectedValue. It does not return SelectedItem.Text, as one might expect.

This is by design:

[code]....

The Text property gets and sets the same value that the SelectedValue property does.

This seems counter-intuitive and confuses people. My question is: Why was it done this way? I can imagine that providing a Text property is necessary for implementing the ITextControl interface, but why on earth would you choose to have it return the Value of the ListItem rather than the Text?

View 1 Replies

DataSource Controls :: Return Default Value From LINK Query?

Sep 2, 2010

I am using the query listed below which includes multiple joins, in the result of the query I need to do some value replacement valuesExample: db.ASSETS.BUILDING_ID=300 that ID does not exist in db.BUILDINGS, in that case I need to return BUILDING_ID=0, db.BUILDINGS.NAME="Unassigned"

[Code]....

View 2 Replies

Web Forms :: How To Make A Text As A Link Without Under Line The Text

Feb 1, 2011

I would like to create a text link that will be without underline (such in linkbutton / Hyperlink) also,

I would like to set it's color and it's color when standing on it with mouse, and the mouse pointer image.


With control to use?

and how to make it...

View 2 Replies

AJAX :: Try To Open My Webservice In IE Browser Using Following Link To See The Javascript Proxy, It Return Blank Page?

Apr 11, 2010

I created a very simple webService using the VS2008 template. i am planning to use Ajax call for the webService.when i try to open my webservice in IE browser using following link to see the Javascript proxy, it return blank page.[URL]

View 3 Replies

Suggestions Regarding The .NET Tool To Use For Project?

Feb 21, 2010

I need to develop a project that needs to have a Ticker and an AdRotator, apart from some button controls and a banner.I have two options - ASP.NET and Windows Forms.With Windows Forms, I've been able to develop the Ticker, but I don't know how to develop the AdRotator.With ASP.NET, I'll have to develop Ticker using AJAX, whereas the AdRotator is already present.

The software is to be used as a standalone. I'm thinking of using Windows Forms for the development so that the requirements for the end-user is only the .NET Framework and not ths IIS plus the deployment would be easier. What should I use for the development?If you suggest Windows Forms, please throw some light for the development of AdRotator.Note: I don't have any knowledge on AJAX and I don't have much time for the development. Is it possible to develop the Ticker using some other technology other than AJAX ?

View 3 Replies

Suggestions/pointers For Post/Get To Page From A Desktop App?

May 26, 2010

I'm planning to have a desktop app interact with some .ASP or .ASPX pages on a server.

I've only done a little bit with .asp pages and I'm thinking I'd just Post or Get a URL with some variables:

MySite.com/Functions.asp?FunctionName=?Paramater1=somevalue?Parameter2=...

I'm wondering if there is any better way to go about this?

Am I missing something? Is there perhaps a better way to go about this?

View 3 Replies

AJAX :: Autocomplete With Multiple Word Suggestions?

Aug 24, 2010

the process to get multiple word suggesions for a text box in asp.net using Ajax? Actually I got a solution for that, [URL] But it used Atlas. When I am running with this code in my application, it is conflicting with Script Manager that is already there in Masterpage. How can I overcome that problem. Is there any built-in solution in latest versions of Ajax?

View 1 Replies

Architecture Suggestions / Recommendations For A Web Application With Sub Apps

Jan 17, 2011

I'm starting to plan an architecture for a big web application, and I wanted to get suggestions and/or recommendations on where to begin and which technologies and/or frameworks to use. The application will be an Intranet-based web site using Windows authentication, running on IIS and using SQL Server and ASP.NET. It'll need to be structured as a main/shell application with sub-applications that are "pluggable" based on some configuration settings.

The main or shell application is to provide the overall user interface structure - header/footer, dynamically built tabs for each available sub-app, and a content area in which the sub-application will be loaded when the user clicks on the sub-application's tab. So, on start-up of the main/shell application, configuration information will be queried from a database, and, based on the user and which of the sub-apps are available, the main or shell app would dynamically build tabs (or buttons or something) as a way to access each individual application. On start-up, the content area will be populated with the "home" sub-app. But, clicking on an sub-app tab will cause the content area to be populated with the sub-app corresponding to the tab.

For example, we're going to have a reports application, a display application, and probably a couple other distinct applications. On startup of the main/shell application, after determining who the user is, the main app will query the database to determine which sub-apps the user can use and build out the UI. Then the user can navigate between available sub-apps and do their work in each. Finally, the entire app and all sub-apps need to be a layered design with presentation, service, business, and data access layers, as well as cross-cutting objects for things such as logging, exception handling, etc.

Anyway, my questions revolve around where to begin to plan something like this application. What technologies/frameworks would work best in developing a solution for this application? MVC? MVP? WCSF? EF? NHibernate? Enterprise Library? Repository Pattern? Others? I know all these technologies/frameworks are not used for the same purpose, but knowing which ones to focus on is a little overwhelming.
Which ones would be the best choice(s) for a solution? Which ones work well together for an end-to-end design? How would one structure the VS project for something like this?

View 1 Replies

Return Text Of DB Into Lable?

Jan 26, 2011

write code to return text of DB into lable in form,but text is biglentgh.i want labletext.lentgh in everyline 600 character.

StringBuilder htmstr =
new
StringBuilder(""

[code]...

View 3 Replies

AJAX :: Autocomplete Extender And Highlight Typed Character In Suggestions Box?

Jun 30, 2010

Im using the ajax autocomplete extender I would like to know how can I get the word Im typing in the textbox to highlight in the suggestions box example im typing in 'Mo' in the text box autocomplete starts. How do I get this 'Mo' styled in the suggestion box?

View 3 Replies

Visual Studio :: Unit Testing Suggestions For Methods That Are Normally Void?

Jun 9, 2010

have a test project for testing methods in the Business/Models tier of my application. For methods that do calculations or have return types this works great.What would some suggested ways to perform (any is this even necessary) testing on methods that would normally have no return type, such as a 'Delete' method?Example:

[Code]....

View 3 Replies

Return Flat Text From .net Webservice ?

Dec 4, 2010

I have function called getdoctor () in asmx file I wannna call this webmethod from javascript and get the result into flat text i.e i wanna get the name doctor name not in neither in xml or json

View 2 Replies

Text Box - Disabling Enter / Return Key

Mar 1, 2012

I have a custom control that contains a textbox. This textbox holds the date. I also have an image next to the textbox that if clicked on runs a javascript that populates the textbox with the current date. My problem is that when I type a date that is in the past into the textbox and press enter the date gets overwritten with todays date. As if the image had been clicked.So I wrote a javascript function-

Code:
function disableEnterKey(e) {
var key;
if (window.event)
key = window.event.keyCode; //IE
else
key = e.which; //firefox

[code]...

However the date is still getting over written with todays date! As if the image had been clicked.

View 10 Replies

Stop The Auto Suggest Feature From Dropping Down Suggestions While Using Jquery Autocomplete?

Jan 13, 2011

How do you stop the auto suggest feature from dropping down suggestions while using jquery autocomplete. The auto suggest is dropping down over the autocomplete selections. Its terribly annoying. I've tried z-index. Nothing seems to stop it.

View 1 Replies

AJAX :: Using Autocomplete Extender To Return 'Value' And 'Text'?

Dec 29, 2010

I have been trying AJAX TOOK KIT 3.5

Used the following web service method, to get the users names from ms sql db which is working fine.

But is there a way to get the Value of the selected item, which is the primary key.

[System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]
public static string[] GetCompletionList(string prefixText, int count, string contextKey)
{
DataClassesDataContext db = new DataClassesDataContext();
return db.viwUsers.Where(n => n.FullName.Contains(prefixText)).OrderBy(n => n.FullName).Select(n => n.FullName).Take(count).ToArray();
}

View 2 Replies

MVC :: Return Text Stream Of HTML From Controller Action?

Nov 6, 2010

How does a controller action return an HTML stream as the View? ( in place of the name of the View file )

I want to return a simple "error detected" or "action completed" page to the browser. And I dont want to clutter up my project with yet another view. The return string being "<html><body><h1>Error. Customer xxxx is not found</h1></body></html>"

( thinking about it, better to have a general purpose view in a folder named "Common". Then pass the message text in ViewData. Still curious to know how to return an html stream. )

View 1 Replies

C# - Get The Text Of Selected Cell Which Is A Link?

Jun 24, 2010

i am having a problem with my asp project C#

i have a GridView that is created dynamically and each cell contains a buttonfield with link button type

i just wanna return back the text of the buttonfield when i clicked it

The problem actually in indicating the selected cell that i clicked

i could get the value of selected row but not selected cell

View 1 Replies

Web Forms :: Hover Text In Link?

Mar 6, 2011

i have a link, i want the text "abcde" will come when mouse is pointed to that link, is ti possible or i need css or other stuff?

View 4 Replies

Web Forms :: Text To Link In Textbox

Jan 12, 2011

if i have a textbox and i will paste a link eg www.forums.asp.net in the textbox how can i make it like a link button and when the user click it, it will direct to the right link?

View 2 Replies

Web Forms :: Populating A Text Box From A Link?

Feb 21, 2010

I have just built a contact form for a website and it works fine but now I would like the "Subject" textbox to be filled if the user has been redirected to the contact.aspx page from another link.

For example if the user just clicks on the contact us link then the form will be blank but I have some items on the website where there is a link that says "Enquire..." that redirects to the contact.aspx page but I would like the subject textbox to be filled in with the item that it was redirected from?

View 5 Replies

Forms Data Controls :: Looking For Suggestions On A Gridview With Expanding Cells To Display Detailed Information?

Dec 16, 2010

I have searched and have found master detail tutorials.found other sites with links to controls you have to buy but i thought some time back i saw a great tutorial on building this setup and it was somewhat pretty simple and detailed in steps.

Here is what im trying to do and maybe someone can point me in the right direction to links or suggestion on controls to use that may already exist that are free,We have a search page that i have setup to handle a number of different searches as well as differnet result views..we have 1 search that returns/needs to return alot of details.to much for a gridview layout.Currently i have it setup to return to
a formview and paging each record.BUT at the moment,in our test server we have over 400 records.so no one is going to page thru 400 records.so the 2 methods used are not going to work for us.so after meeting and discussing it.we want to see if the following can be accomplished in a practical way.

We want to setup the results to be returned initially in a gridview.. ( just a few key columns,kinda high level view ).then if you want to view details about any specific record,you can click on it or select it and the row is expanded to display the rest of the details.this will allow us to display all 400 records.25 or so per page of the gridview and allow them to chose what they want to see in more details.

Like i said i found a few examples online already,but not all of them are really detailed in the steps.so can anyone suggest a good source for accomplishing something like this.what would be cool.if possible is to open the formview that is already built under the selected record.kinda like CollapsiblePanelExtender that is within ajax

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved