MVC :: Get Query String Value?


When Logging in I need to get the Return Url which is as a parameter on the url.I am using Asp.Net Memeberhip ... On my custom model binder I have the following: AccountLogin account = new AccountLogin { Password = (String)binding.ValueProvider["Password"].ConvertTo(typeof(String)), RememberMe = (Boolean)binding.ValueProvider["RememberMe"].ConvertTo(typeof(Boolean)), [code].... I get the error:The name 'Request' does not exist in the current context    C:UsersMiguelProjectsStdSolutionStdBindersAccountLoginBinder.cs What is the correct way to get the value of the ReturnUrl?

View Answers
Very similar questions
ADO.NET :: Getting Error As Failed To Convert Parameter Value From A String To Date Time forums.asp.net

data.MakeInParam( "@DOB",SqlDbType.DateTime,10,cust.DateOfBirth), im new to .net,  reponse grt intput for me to get in to it.

ActionScript 3.0 :: String Passed To URLVariables.decode Must Be A URL-encoded Query String www.kirupa.com

I really don't understand why this won't work? I've made a test which sends some POST data to a script on my page which works fine.[code]

Flash :: Error #2101: The String Passed To URLVariables.decode() Must Be A URL-encoded Query String stackoverflow.com

I get following Error when trying to pass variables via URLRequestMethod.POST; Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. Is there a method for string URL Encoding?

ActionScript 3.0 :: Error #2101 The String Passed To URLVariables.decode() Must Be A URL-encoded Query... www.actionscript.org

I am trying to make a contact form. When I test the form, I get the following error message in the Output: [Code]....

ActionScript 3.0 :: Php - Error #2101: The String Passed To URLVariables.decode() Must Be A URL-encoded... www.kirupa.com

Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. [Code]... I'm not where error exactly the error happen so I post the whole thing. As far I know bottom code that relate to send_loc.php works fine, get_loc.php is having a problem. The output from get_loc.php is [Code]...

ActionScript 3.0 :: Error: URLVariables.decode() Must Be A URL-encoded Query String www.actionscript.org

i tried to read get the variables from a asp file. the asp prints picid=2|5|6|4|1|3|&ownerid=1|1|1|1|1|1| loader.load(new URLRequest("http://localhost/gettoppic.asp?ordertype=random&pagenum=1")); and in the completed function trace (loader.data.picid) but i keep getting Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete()

Security :: Avoid Copy Query String? forums.asp.net

I have a java application that send to a aspx page the user name and password in a Query String. How can I authenticate the user in this aspx web page, and how can I avoid that a user copy the link in the internet explore and acces to the page.

C# - Getting Variable Values Out Of XSLT File? stackoverflow.com

I wanted to find out if there is a way of getting a parameter or variable value out of an XSL file. For example, if I have the following: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:variable name="username" select ="usertest"/> <xsl:variable name="password" select ="pass"/> <!-- ... --> </xsl:stylesheet> I would like to read the username and password values from the XSL and use them for authentication. I am using ASP.Net and C# to perform the actual transform on an XML file. share code with me that would allow me to read the XSL variables from ASP.NET/C#.

Getting The Parameter Values Being Passed To SQL Database Via SQLDataSource Control stackoverflow.com

I have a SQLDataSource control that is calling a database stored procedure, and passing quite a large number of paramaters, and the stored proc returns records that populates a gridview control. When I walk through the code behind to determine the values being passed, is there any way that I can see exactly how the parameters are being formated and passed to the stored proc?

MVC :: Display Limited Characters From String forums.asp.net

I'm making a simple mvc site containing a database over the movies we have at home. When i display my movies i'd like to display "the short version" of the plot, leaving the rest to be read when you actually click on the movie to see more details about it. How can I do this? Do i write some sort of limitation in the string on the index page?

Jquery - MVC Controller Not Getting Hit? stackoverflow.com

I can't get my Controler action method to get hit when I click 'Detail View' tab, or any tab for that matter However, I can get the action method to hit if I comment out 'return false;' in the javascript section but then my 'Selected' tab is not maintained. <script type="text/javascript"> $(document).ready(function () { $('.test').click(function () { $('.test').removeClass('selected'); [Code]....

ADO.NET :: Trim String In LINQ Query? forums.asp.net

I have the following query; [Code].... How do I modify to trim all strings?

C# - Controller Getting NULL Value? stackoverflow.com

I'm trying to make a call to a controller via jQuery $.post, but the parameter for my controller method keeps getting a NULL value despite it appearing to be setup similar to other controller methods. CONTROLLER [AcceptVerbs(HttpVerbs.Post)] public ActionResult SearchWeatherLocations(string searchFor) { //Do Some Magic } [Code]....

File_get_Contents Won't Send Query Strings In Url? stackoverflow.com

I'm trying to make a request to a website this way : file_get_contents('http://www.yahoo.com/index.php?var=value'); in the index.php file ( Receiver ) , when I try to echo $_GET['var'] from within the index.php and get the response with file_Get_contents, I get nothing. curl is getting it right , but I just want to know it this way in case curl is not installed sender: echo file_get_contents('http://www.yahoo.com/index.php?var=value'); receiver : index.php contains <?php echo $_GET['var']; ?>

Separated Mysql Statement Query - Getting Error stackoverflow.com

So, I can run the following statements from within mysql itself successfully. SET @fname = 'point1'; SELECT * FROM country WHERE name=@fname;` But when I try to pass the query through php like this and run it, I get an error on the second line $query = "SET @fname = 'point1';"; $query .= "SELECT * FROM country WHERE name=@fname;";

String Manipulation - Read The Value Assigned www.phpfreaks.com

I have a php file that looks like this <?php /* load="1" menu_item="General" menu_url="general.php" */ ?> Now my question is, I want to use that as a set of general configuration so I want to be able to read the file find for example load and read the value thats assigned to it so like something like this load="1" $should_be_loaded = read_file_and parse("load"); that would return 1; any ideas guys.

MVC :: "System.Web.Mvc.Html.MvcForm" In The Top Of Page / How To Remove This forums.asp.net

on my MVC webforms there is a text in the top of the form as "System.Web.Mvc.Html.MvcForm". how can i remove this?

Can Assign HTML Values In MVC View Using HTML Helpers stackoverflow.com

is this right? i am trying to display value in input box dynamically? can anyone advice me is this corect approach? but still I am getting here only + + in input box?

MVC :: Display Errors Or Variable Values? forums.asp.net

Working through the tutorial [URL] I want to output the value of the 'caught' exception as all the database queries are wrapped in try catches. How would I do this? I have added a label to my form but not sure how to get a value in it! (Still thinking old ASP.NET)

MVC :: Does [HandleError] Attribute In MVC Replaces The Traditional Try Catch Exception Handling forums.asp.net

Does [HandleError] attribute in MVC replaces the traditional try catch exception handling? As I have seen codes in controllers where the top line of code is [HandleError] also I have not seen much of try catch in the code of the application I am working on.

How To Get Dropdownlist Box Value To The Controller Using Mvc stackoverflow.com

I have this code in my view.. <%=Html.DropDownList("ProductTemplate",new SelectList(Model.ProductTemplate,"Value","Text"))%> I know if this dropdownlist box is in between BeginForm submit I can able to access the value in Controller using collection["ProductTemplate"]; if it is not in my beginForm still I can able to access this selected value in controller?

MVC :: Cannot Insert Explicit Value For Identity Column In Table forums.asp.net

Following the MVC1 vers of Nerddinner, but using 2010 and MVC2. Never seen this error. Looked in controller, model, view. Where does MVC pass the identity value, and how to stop it? I have never had to set IDENTITY_INSERT in any app before.

MVC :: Hide A Button Based On A Value? forums.asp.net

I need to hide a button on the view based on if TempData["SearchResults"] exists how can i accomplish this. I have a search page and details page. When i get the search results as list of rows in a table i click on the row to view the detials of the search result which gets displayed on another view , at tht instance i set the TempData["SearchResults"] with values which i need to repopulate when i navigate bck from detail page. I need to hide back to search button on details page based on if( TempData["SearchResults"] exists something like if TempData["SearchResults"] == Null then Hide back button). How can i do this?

Combine String With Value Of Variable? forums.devshed.com

for example $site0 = test; $i=0; $a = $site.$i; echo $a; I want to show 'test' which is value of $site0 but it shows 0 which is value of $i how to combine them to show value of $site0 ?

Difference Between Numeric And String Value? stackoverflow.com

I am getting a difference when comparing two string which are 0 and '0' in PHP. Can I do anything to make them be compared equally in an if action?

Convert String To Unique Numeric Value? stackoverflow.com

I needed a unique internal int to use that would represent several random content types that I couldn't hard code as class constants or config options. Yet I didn't want to refer to "2" when I could use the easier to follow term "post". So though up the a way to get a INT value from a string which seems to work fairly collision free for a couple items. Is there a way to do this in php rather than what I built? $strings = array('post', 'comment', 'blog', 'article', 'forum', 'news', 'page'); foreach( $strings as $string ) { print $string . ' = '; $string = str_split($string); $sum = 0; [Code].... I need a numeric index for storing in a database for fast look ups. i.e. to tell "posts" from "articles" or "news". Yet I don't know what those 1-8 types of content will be called so I can't hard code those as constants in the app. Therefore, the best thing I could figure would be to create a numeric version of each word (which means checking to make sure two words don't sum up to the same number). If this were for a system that would have more than 8 words then this method is doomed to failure do to the high probability of sum collisions. Also, if I had a choice in knowing what words would be used then this would also be terrible design as class constants would work much better.

Int Typecast Of Numeric String Value Giving 0 stackoverflow.com

so there is a page I'm querying on another server that returns a comma separated list of two values. Something it would return would be: 850,640 I have some PHP code that calls file_get_contents on that page and needs to do some numeric calculations based on the two values. No matter what I try, I can't seem to get an int value out of this. $res = trim(file_get_contents('http://thatURL/')); echo "X" . $res . "X<br/>"; list($x,$y) = array_map(create_function('$a', 'return (int)$a;'), explode(',', $res)); echo "X:$x"; results in the output: X 850,640 X X:0 Note the spaces before and after the comma separated values(how the hell? I trim'd them!) and that $x is assigned the value 0.

String Search - Parse The String Of Characters One At A Time www.vbforums.com

I have written a program that uses an array of the english alphabet and Morse code. I also built a form with a input box for the alphabetic information and an output box with the Morse Code. What i am trying to do is basically type a word like "Hi" in the input box and produce the Morse Code equivalent in the Morse Code output box. [Code] This works but only one letter at a time. Do i need to Parse the string of characters one at a time, and then run it through a loop like i have created?

Web Forms :: Change String To A Different String? forums.asp.net

I'm trying to build a web page where the user can send the contents of the web page to someone of their choosing.  The email body is html scraped from the website.  I have it working, but the the problem is that the image src is relative  <img src="/images/filename.jpg"> and I need to make it absolute.  What function is the best for me to use on the string that contains my html to make file path absolute in the method I'm trying to create?  I tried the following, but am getting error "too many characters in character literal" reformattedContent.Replace('src="/images/', 'src="http://' + domain + '/images/');

C# - Replace Hard Coded Values With Database Values? stackoverflow.com

I'm trying to implement this tag cloud: [URL] ...and I need the replace the hard-coded values below with those coming from my database? [code].... I've created the following sql string which returns the data in the format expected string/int or value/key SELECT Tag, COUNT(Tag) AS Counter FROM dbo.CtagCloud GROUP BY Tag HAVING (COUNT(Tag) > 3) ORDER BY Counter DESC

SQL Reporting :: SSRS URL Paramter Value Does Not Match With Report Parameter Values forums.asp.net

We have rdl report and passing a multiple paramter values through URL. When the passed values exists in report parameter values then report displayes properly. But when we pass the values through URL which doesn't exists in report parameter value then it throws an error saying parameter value is missing. The reports db and the application db through which we display the reports are different. how do we address this issue.

How To Get Text Value Of Dropdown List Box By Passing Index Value forums.asp.net

how to get text value of dropdown list box by its index. i want to read the ddlproject.selectedindex = 0's text and assign it to a variable strProject.

Filtertype Parameter Value IMG_FILTER_CONTRAST What Number Values Can It Range From stackoverflow.com

for the filtertype parameter value IMG_FILTER_CONTRAST what number values can it range from.

MVC :: Html.ActionLink / Create Query String Parameters In The Link? forums.asp.net

I am using MVC to access custom reports which may be drill down reports. I use the convention of Controller/Action "Reports/Open/id/level" Ok so we hit the top level report "including my query string parameters which could be different for each report Example /Reports/Open/1?CostCentreId=10000&year=2010 I want to open up my drill down, I am binding the data to display using a class , so far so good. My sub report gets the query string parameters because I stored them in ViewData. In order to get back to the Top level report I have to create query string parameters in the link. How do I do this with an action link?

MVC :: Value Of Type ' (line Xx)' Cannot Be Converted To 'String'? forums.asp.net

I'm attempting to just create a custom path for file uploads in the form tag.  I think there is an issue with the VB syntax vs the C#.  If anyone knows why I keep getting this error with the following code please key me in. <form action= "<% Url.Action(new with {key &nbsp;.Controller = "insured", key .Action="Upload",key .ID=Model.Insured_ID }) %>" method="post" enctype="multipart/form-data" >

MVC :: Getting The Value Of Text Box From View To Controller? forums.asp.net

I want to stop a windows service by clicking a button, but my boss is asking me to do this in MVC. I know the code of stopping and restarting the window service, but when I am trying to do this in MVC, I get an error. I created two buttons on my View page [Code].... In my controller, I defined the methods for each button [Code].... I have a class [Code].... when I run the web site and I enter something on the tesxt box and press the restart service button, I get the error resource is not found Requested URL: /Post/Action and the URL changes too. How can I configure so that I can get the name that I typed in my text box to my controller.

LINQ Queries - Combine The First 3 Queries Into A Single Query And Place In A List? www.vbforums.com

I am writing a message system on my server, the xml is something like this <xml> <entry> <sender>[code].... my problem now i guess is 2 fold, i wish to combine the first 3 queries into a single query and place in a list or a collection or is there a way to do this with a single query that will give me my desired result?

ActionScript 1/2 :: Error #2101: The String Passed To URLVariables.decode() Must Be A URL- Encoded Query... forums.adobe.com

Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() [Code]...

MVC :: Add Checkbox Value To Database In Mvc Application? forums.asp.net

I am a fresher and now i am working on check box operation in mvc .I need to know how to add or return the checkbox value in to database in mvc using c#.

Getting Value 1 From A Selected Checkbox & Saving The Value Into A Database? forums.asp.net

I m building a page with few checkboxes & text boxes.. its a simple checklist you can say.. However, what i am looking for is when a check box is checked & the submit button is clicked, the value of that checkbox as 1 should be saved in the database.

Building A Mysql Query www.webmasterworld.com

is there a way to use a form and check boxes to control which fields this line from a script im working on chooses $result = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_files WHERE file_name LIKE '%$string%' OR file_desc LIKE '%$string%' OR file_creator LIKE '%$string%' OR file_longdesc LIKE '%$string%' OR file_version LIKE '%$string%'", 0); in this query there are 5 fields being queried. can a form and check boxes be used to build the query so that one, some or all of these fields are queried?

Edit The Cell When It Is In AutoFilter www.mrexcel.com

I want to edit the cell or Specific Range when it is in autofilter mode. Here is the example i want to filter as long as the first column criteria is 1 Before filter 1 string 1 2 string 2 1 string 1-1 3 string 3 after filtered with criteria = 1 1 string 1 1 string 1-1 now i want to edit both "string 1" and "string 1-1" to "abcd". How am i going to get the the autofilter to return me a range for me to change the cells value.

What Are The Events Triggered After Clicking On A Href Link In A .Net Application stackoverflow.com

My client wants to pass values through the query string, but they don't want the query string to be displayed in the browser's address bar. The values being passed are for tracking purposes. I know that postback doesn't happen after you click on href link.Is there any way I can get the value out of the query string without displaying it in the browser's address bar? I think this may be impossible, but I may be wrong; I'm hoping to see if anyone has any answers.

BB Bold 9700 :: Wireless Network Gets Disconnected When Put Phone In Holster supportforums.blackberry.com

I'm using BB Bold 9700 Version Why is it when I put my BB in holster, my network will always get disconnected after a while? Sometime when I using half way will get disconnected. Do I need to do any setting to keep it connected.

Getting A Drop Down Menu To Link To Another Form And Open A File www.vbcity.com

Hello i have a slight problem, i can get a menus item to go to the next form but i am unable to figure out how to get it to load a list of words. i am making a hang man game. here is the code i have to link the two forms.Code:This is on the main form - frmwordPrivate Sub Mnu3_Click()frmgame.ShowUnload frmwordEnd Subwhen it goes to the other form eg frmgame should i then open then word list there or ?helpBeks

Getting Errors While Building Cpp DLL www.xtremevbtalk.com

Hi,I want to use the C++ codes with the VB6 application. So, i m trying to make a DLL file, which will include the c++ codes. I have search on net for tutorials (even on this forum) and tried them, to make a DLL, but i m getting errors, while building Dll (in Visual Studio).So, i wrote a simple c++ code, which includestestdll.cpptestdll.htestdll.defi want to used the d() function, in testdll.cpp, in VB6 application,Like, label1.caption = d()(which will return 5, as u know).There is no main() in testdll.cpp, coz i just need to call d() fr my vb6 application.I m also attaching .def file, incase, u guys need, to check, whether i need to add something more....Kindly, download testdll.zip, which has all 3 files....and show me light, to solve this prob.or pls explain, how to proceed.Thanks in-advance.viv

Getting A Website www.xtremevbtalk.com

to get a website you gotta connect to a network or something and type GET whatever.com/index.html HTTP/1.0but what do i connect to? how do i connect to my own internet? what port?i'm sorri, kinda new with winsock

Click Button Automatically Moment Worksheet Gets Opened... www.codeguru.com

i need to click the reset button(for which i have assigned shortcut as Alt+R) automatically as the workbook is loaded say in the event workbook_activate happens.....please help me and reply......Ranjan Amit

Android :: Getting Friends List From Facebook groups.google.com

How to get Friends List from Facebook using Code.

Sony Ericsson Xperia X10 Mini/pro :: Phone Book Is Getting Refreshed - 1.6 Firmware talk.sonyericsson.com

I am using Sony Ericsson Xperia X10 mini pro with 1.6 firmware very recently purchased, As i dont have the android market icon, i just done Factory Reset to my handset and after that i noticed that my contacts in the phone book gets errased whenever i switch off my mobile and again switch  on my phone book contacts are completely erased..... again i need to  restore it from Back up and Restore application which is present defaultly.  So everytime I am Restoring my contacts and again it gets refreshed.  I even reinstalled my OS android 1.6 (as 2.1 notification i didn't get) even after reinstalling i am facing the same problem no contacts on my phone book.   Is  there any solutions for this ..........? you all guys knows very  well that if there is a problem with phone book (contacts) how hectic it  is......... no use of using mobiles then......... i am missing the important contacts everytime.  so everytime i am doing back up and doing restoring........   I dont use any synchornized apps.... i use the "Back up & Restore" application which came along with my mobile and I haven't installed any new apps till now....   Note: Actually before doing Factory Reset the phone book worked fine no refreshments of contacts happened.  

Android :: Getting Contact Photos From Facebook Only Contacts groups.google.com

The standard way of getting contact photos/uris from ContactsContracts.Contacts.CONTENT_URI does not work for any photo that is not of GOOGLE descent! meaning, if the contact does not have a Google contact with a photo, then I cannot pull a contact photo.This is not only my problem. I see that no one has really answered this question.I know that the Android Incoming Call Screen displays a Facebook photo just fine, so I am not sure why I would need to do something different.Is there someone out there, from Google/Android, who can tell me what I need to do?

HTC Droid :: Eris Not Getting 2.1 / Upgraded To 2.2 Link androidforums.com

Reasoning behind March 31st coming and going and nothing OTA? Looks like we've been bumped from Eclair to FroYo and this is the projected version. www.stevebirstok.com/android/froyoleak.zip Root files are included as well.

HTC Droid Eris :: App That Gets Mobile Numbers From Facebook androidforums.com

Is there an app that gets peoples mobile numbers from Facebook and creates them as a contact in your phone? I would've thought there would be, but I can't find any that do that. I got an Eris recently and couldn't import my contacts from my old phone, so I was hoping I could do it this way.

Sony Ericsson Xperia X10 :: Getting Timescape To Use Facebook Application And Not The Browser androidforums.com

Is there any way to get timescape to open the facebook app instead of the web browser when a facebook "leaf" is touched. I have it set that Twidroid will open for twitter "leaves" but I can't figure out how to get it to use the Facebook app.

Sony Ericsson Xperia X10 :: Getting Rid Of The Timescape Option On Home Screen androidforums.com

How do I get rid of the timescape logo on the homescreen and then just to show the wallpaper.

HTC EVO 4G :: Getting My Phone Contacts Into Gmail androidforums.com

My EVO has about 100 contacts and my Gmail account has 30. What is the best way to get my EVO contacts into my Gmail account and have them stay sync'd?The Sprint store told me it would happen automatically, but it did not. All the sync's are on in the phone settings, but still no luck.

HTC Droid Eris :: No Longer Gets Hot Or Eats Battery But Can't Sync Google Contacts androidforums.com

So, like many of you, my phone would occasionally get hot, and the battery would just zoom down to nothing. Usually this was just intermittent, and a restart would cure it.On June 10, it was happening, and persisted despite restarts, battery pulls, etc. I finally found that the problem was google trying to sync contacts. It was having some problem and cycling forever. When I unchecked the google contacts sync in the accounts preference panel, problem stopped. My battery life has never been better. Routinely getting 18-20 hrs or more.BUT I want to sync my google contacts! Every time I trial re-checking that box, it cycles and cycles, every few seconds giving a little error at the bottome of the screen (in prefs) "Sync is currently experiencing problems. It will be back shortly".I have 700-something contacts (Only 250 real "My Contacts" but another 500 or so auto-created contacts from gmail use.Presumably one of those entries has some corruption, but I can't figure out which, and I don't want to potentially lose all the contacts.I have seen that for some people this was fixed by factory reset and resync, but then the problem came back a few weeks later.

Android :: Getting List Of Contacts On SenseUI 2.1? stackoverflow.com

This is simple enough on every other version of Android, including SenseUI 1.5. //For Contacts Intent pickIntent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI); this.startActivityForResult(pickIntent, RESULT); //For Phones Intent pickIntent = new Intent(Intent.ACTION_PICK, Phones.CONTENT_URI); this.startActivityForResult(pickIntent, RESULT); On SenseUI 2.1 (HTC Incredible) this shows a list of numbers (the URI number). So you get a list of 1-200 if you have 200 contacts. Selecting one of the contacts you can then gather all of the information needed. Is there any good work around known?

Android :: Getting A List Of All Phone Contacts? stackoverflow.com

NOTE: Must work on Android 1.5 - Contacts Contract does not Simple enough question. I need to know the best way to get the same list of contacts that show up when a user presses the Contacts button. You would think something like this would work: //For Contacts Intent pickIntent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI); this.startActivity ForResult(pickIntent, RESULT); //For Phones Intent pickIntent = new Intent(Intent.ACTION _PICK, Phones.CONTENT_URI); this.startActivityForResult(pickIntent, RESULT); The problem is that does not include secondary google accounts or Exchange contacts. By secondary accounts, in Android you can add additional gmail accounts to have the mail/contacts synced. The above intent will not list those additional contacts. I am also told that on the HTC Desire you can add contacts to the phone that do not get synced up to Google. These contacts also do not show up. So how do I get a real list of contacts so I can create my own list activity that works properly where the Google intent does not. NOTE: Must work on Android 1.5 - Contacts Contract does not

Jquery - Serializing A .net String To A Json String? stackoverflow.com

i have the following code, please let me know where m goin' wrong.. VB For Each dr As DataRow In dvItems.Table.Rows strItems &= "'" & dr("ItemTitle") & "'," Next [code].... while debugging in firefox with firebug data is showing null...What i'm doin' here ? Edit :Autocomplete.js needs data in this format 'mouse','keyboard','led'Before i was doin' this without JSON, it was working fine.

Asp.net - Decimal.parse Fails For Currency String Created With String.Format? stackoverflow.com

I have a field that I display via: String.Format({0:c},amount) This produces the string "$28.28" However, when I try to convert back to a decimal amount, I get an incorrect format exception: amount = Decimal.Parse(amount.Text, NumberStyles.Currency) I also tried it with NumberStyles.AllowCurrencySymbol with the same results. I verified that the value in amount.Text is "$28.28". Am I missing something? Shouldn't these two operations use the same currency symbol and formats?

Jquery - Getting An XML Error Messages For JSON? stackoverflow.com

UPDATE 2: I did not mention that I do not get the error below in Chromium, but I do get it in IE8. UPDATE 1: Response Headers: HTTP/1.1 200 OK Date: Fri, 20 May 2011 15:40:23 GMT[code]..... Why does that happen and how can I stop the error message from appearing?

ActionScript 3.0 :: Adding Numbers From Dates www.actionscript.org

i want to create a calculater that can add scores from a scale of 1 to 10.for example, if the player gets between 0-3, he gets a point -between 4-7, he gets 2 points -between 8-12, he gets 3 points when this is complete, the points are added up, depending on what the player gets, for example he scores between 4-7 and between 8-12, he gets gets 5 pionts. i can get them to add the points, but not when its between a certain value

Parsing - Flex 3: Getting Error Of "Parse Error At '<mx:ComboBox>'> stackoverflow.com

<mx:List columnCount="5" rowCount="11" width="100%" height="100%" dataProvider="{parentDocument.crewPositionsAC}" useRollOver="false" alternatingItemColors="[0xffffff, 0xe5e5e5]" borderStyle="none"> <mx:itemRenderer> <mx:Component> <mx:Text text="{data}" color="#840021" selectable="false" /> <mx:ComboBox id="studentType"> [Code]... Anybody able to see what's causing the error?

Actionscript 3 :: Loading Swf As Custom Class That Extends MovieClip - Getting Null Object Reference stackoverflow.com

I followed the example from a previous question and I am loading an external swf using a loader and inside the loader event handler I am trying to cast the loader.content as my custom class PanelReferenceClip which extends MovieClip When I publish I receive a this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. Just to make sure and test that the swf location was correct and the swf was actually being loaded, I changed the type of the content to as MovieClip and it worked fine. EDIT: I also wanted to add that these swfs are being stored locally and not being pulled across the internet, multiple networks or servers. I am not sure if I did something quirky in my class so I am providing the source to my custom class PanelReferenceClip package com.components { import com.UI.DevicePanel; import flash.display.MovieClip; [Code]....

ActionScript 3.0 :: Get JSON Object In Original Order? www.actionscript.org

I'm getting a large JSON string and decoding it into an object which i loop through to build an interface.

ActionScript 2.0 :: Getting Json Data With A Useragent From Server www.actionscript.org

sendInfo = new LoadVars(); sendInfo.addRequestHeader("User-Agent", "myagent"); sendInfo.onLoad = function() { trace(sendInfo.loaded): }; sendInfo.load("url");//for getting JSON data My Result is false and the firefox browser is still loading data from server. how to use useragent in actionscript2 and also how to get json data. I don't know is it json data problem or another

Getting Appending Html In Csv File (open In Excel) After Download From Server To Local Machine forums.asp.net

I have created a CSV file on the server and want to send it to the user using the following code: Dim strPhysicalPath As String strPhysicalPath = Server.MapPath( "CSV/" & PathVirtual) Dim objFileInfo As System.IO.FileInfo = New System.IO.FileInfo(strPhysicalPath) Response.Clear() Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("Content-Disposition", "attachment; filename=" & objFileInfo.Name) Response.AddHeader("Content-Length", objFileInfo.Length.ToString()) Response.WriteFile(strPhysicalPath) Response.Flush() Response.End() This seems to work fine except when the downloaded file is viewed in Excell the html code behind the page from which it came is also appended to the file.  Does anyone have any idea why it does this?

Web Forms :: Getting Name Of Saved File? forums.asp.net

When saving a file using vb.net: file.SaveAs("c:/xx/xx/xx/xx/xx/" & file.FileName) If a file is saved that already exists, is there a way to capture the saved filename?

VS 2008 Hardcoded Values With Variables In A String? www.vbforums.com

I have a Sql string something like this.string sqlstring = "Select field1, field2 from table1 where field1 = 1 and field2 = 'xxx' group by field1, field2 order by field1 asc" Question: During runtime, based on the user selection, I have to replace 1 and xxx in the sql string.What is the best way to do this?

Hyperlink Column In Gridview - Getting Error On Clicking Link forums.asp.net

I have a site with a functioning database for members displaying location info. One column is shows their web address. When I set this column to be a hyper link column and then go online and click the link, I get an error. It seems that the database thinks this link should point to a page within the site instead of the home page of a completely different web site url. What property do I need to set to get the link to send the visitor to the member web site? I used VWD 2005 to create the site and use SSMS Express for changes on the remote server.

Change Host, Change Domain And Getting Search Engines Up To Speed www.sitepoint.com

Has anyone helped clients transition from one domain to another? Maybe dissolving a partnership or renaming their company... so a new domain name has been registered and a new website created. 2 Issues: #1 Using .htaccess 301 redirect We used the following command line in their old website's htaccess file Redirect 301 / [url] The goal was to get people try to visit any page of their old website (i.e. OldWebsite.com/contact.html) redirected to their new website (i.e. NewWebsite.com/contact.html). Isn't that supposed to change the address bar's URL, too? For some reason, I visit their old site and I seem to be redirected to their new website but the address bar still has their old domain name? Something is going on??? #2 Having their new company name for 2 years now. People can enter her new company name in Google, MSN or Yahoo. Her new company name appears in the search results but has the old domain name associated with it. We are trying to get rid of any reference to that old domain name? What's the easiest way to do this? So what people see in search engines is: New Company Short Meta Description www.OldDomain.com What steps did I miss in this transition? What steps do I have to take on their old website/old web server to control it's appearance on search engines and make sure people get to the new website?

Getting Name, Address And Phone Number From Domain www.webhostingtalk.com

I am having a bit of trouble from a guy and he has managed to get my full details from my domain name even though I have them set private, how has he done this?

ADO.NET :: EF4 CTP4 - Getting Error Message forums.asp.net

Im getting this error message [Code].... global Application_start [Code]....

Trying To Host App On IIS - Getting An Error www.vbforums.com

I am trrying to host ASP .NEt app on IIS v 5 and keeo getting this error: Line 4: <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

Forms Data Controls :: Select Query In Vb.net In Multiple Conditions? forums.asp.net

i create  view in sql server and execute a select query using AND operator on it using vb.net and bind data with gridview...but i am not getting result in grid

DataSource Controls :: Select Query Not Working / Getting An Invalid Column Name Error? forums.asp.net

i have the following select staement which deosnt work, can anyone advise me whats wrong with it: string _name = ddl_Name.SelectedValue.ToString(); string cmd = "SELECT ID, Telephone FROM User_List WHERE Name = '' + _name; i keep getting an invalid column name error? and i know the syntax next to _name isnt correct. how are the single quotes meant to go?

Forms Data Controls :: Getting Text Value From Label In A Gridview? forums.asp.net

I'm trying to get the text value of a label when that row is selected in my gridview. The label's text is databound. Originally when I used the <ASP:BoundField /> I retrieved the data by using this syntax "Server.HtmlDecode(row.Cells[1].Text )" when an "onrowcommand" event is triggered. My question is what is the syntax to retrieve the text value of this label if I am using a template field in my gridview. The code for my label is below. [Code]....

Winform Versus MVC forums.asp.net

I want to know when to use winform and MVC asp.net

C# - Getting Geographical Coordinates From Web Application? stackoverflow.com

I want to learn a user's location from his mobile device by web application. When user opens the website, with the help of a script we will learn if the device has a gps hardware.And if the device has gps hardware what are the current coordinates? I'm developing my project using ASP.NET

Web Forms :: String Value In The Column Of Datatable? forums.asp.net

I have string value in the column of datatable.I would like to assign seq no to different value.if they have the same value, I would like to assign the same seq no.if there isn't has the value in the column, then assign a new seq no.how to do this?for example: district no.    district 1                  hong kong 2                  germary 3                  canada 1                  hong kong 

AJAX :: Getting Selected Value From Ajax ComboBox - Through JS? forums.asp.net

i have this code:[Code].... I saw headbanger's (  ) thread where he added a dummy field to associate the items, but since i'm binding to an ObjectDataSource I don't have a dummy column. http://forums.asp.net/t/1484104.aspx  I added a watch and i cannot find the value anywhere and the li list has 0 items?

MVC :: MVC ToolKit Error / Unable To Use Button Image Or SubmitImage Button? forums.asp.net

I just have to use ASP.Net MVC 1.0, And now testing to creat for my hotel website. But I have many problems. I want to use button image or SubmitImage Button but I cannot do it. And I fine many blogs to do it. And I see that MVC ToolKit it can do everything that I need. But when I put MVCToolKit.dll on my bin folder I see that it work. When I start run it I got error like this: System.Web.HttpParseException was unhandled by user code   Message="(0): error CS1705: Assembly 'MVCToolkit, Version=, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly [code]...

Forms Data Controls :: Getting Error / Could Not Find Control 'GridView1' In ControlParameter 'ID' forums.asp.net

I am working on a project and I need to use Master/Details view, the problem is everything works fine except when I place the Master (gridview) and Details(FromView) in different content holder. The error I get is: Could not find control 'GridView1' in ControlParameter 'ID'. Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Could not find control 'GridView1' in ControlParameter 'ID'. My code is: [Code].... [Code].... [Code].... [Code]....

Databases :: Getting The Column From Sql Or Dataset? forums.asp.net

[Code].... This is the part where I check whether there is an output   [Code]....  Using the same sql as above, I obtain the value of the column using the datareader Am i doing it correctly because i dont get the output that i wanted

Getting Error While Adding Identity Column To Datatable? forums.asp.net

I am getting the error while adding identity column to datatable. DataSet ds = new DataSet(); ds.ReadXml(_absPath); DataColumn identity = new DataColumn("ROWINDEX",typeof(int)); identity.AutoIncrement = true; identity.AutoIncrementSeed = 0; identity.AutoIncrementStep = 1; identity.ColumnMapping = System.Data.MappingType.Element; ds.Tables[0].Columns.Add(identity); I am getting the null value from "ROWINDEX" column

Web Forms :: Why CheckBox Is Not Getting Checked On OnCheckedChanged forums.asp.net

I have a CheckBox field inside a Formview. <asp:FormView ID="_fvApplicant" runat="server" DefaultMode="Edit" OnItemDeleting="ApplicantItemDeleting" Width="100%" DataSourceID="_dsApplicant" ondatabound="ApplicantFormBound"> <asp:CheckBox ID="_chkSuitable"   OnCheckedChanged="test" AutoPostBack="true"  CausesValidation="true" runat="server" Checked='<%# Bind("Suitable") %>' /></td> In my Code Behind in test method I am trying to set the checked to true, but in the ApplicantFormBound event when i debug it is never true...any reasons why? Basically I want to set the Validator to true when checked. protected void test(object sender, EventArgs e) {                 CheckBox vld = (CheckBox)_fvApplicant.FindControl("_chkSuitable"); vld.Checked = true; _fvApplicant.DataBind(); } protected void ApplicantFormBound(object sender, EventArgs e) { var chk = (CheckBox)_fvApplicant.FindControl("_chkSuitable"); if (chk != null) {........

C# - Pass A String Value Into A Gridview In C Sharp? stackoverflow.com

i have extracted data from database..currently that information is in a string variable...my point is to pass that string value into a gridview in the application..i have already created the gridview with checkbox list fitted into it...on inserting the values will the gridview will expand dynamically ??..if no then what to do ? how to push the data into gridview so that it expands dynamically?

C# - Trim String At The End Of The String? stackoverflow.com

I want to remove the last word from my sentence in C#. Here is my query: "SELECT * FROM People WHERE City = @City AND County = @County AND" I want to remove the last AND programatically, how can I do that?

Linq To XML - Getting Correct Query Result, But It's Buried Deep In The Result Var? forums.asp.net

I'm having a problem with my Linq to XML query.  I'm getting the result data I want, but it's nested so deep that there must be a better way.Here is my XML: [Code].... I'm trying to get a list (simple string[]) of all Item IDs where Category Names contains "Other".Here is my Linq: [Code].... [Code].... Here is a snapshot of my result from Visual Studio:The results I want are there ("item100", "item400", "item500"), but buried so deeply in the results var. How can I get the query to return a simple string[] = { "item100", "item400", "item500" }

Forms Data Controls :: Getting Value From Selected In Datalist? forums.asp.net

I would like to select a value from the selected item in a datalist other then the DataKeyField. Some knows the way to do this?

Forms Data Controls :: Getting Information From Two Queries And Posting Them In A Datalist? forums.asp.net

I have a Datalist with 6 elements inside (Labels and Hyperlink)This is in the "results.aspx" page. The process in started by the query stings being sent to the this page:...results.aspx?q=(ItemNameSeached)&cid=(City ID number)I have this bound to an SQL Data Source. My problem is that the ITEM_NAME, ITEM_ID (for the More... link), and the ITEM_BUILDING_ID are in one table in my database; The BUILDING_NAME and BUILDING_ADDRESS are in another table.I have an sql query string working to get the information in the items table but I don't know how to get the Building Information which is on another table. I know the sql query to get the building information (SELECT building_Name, building_address FROM buildings WHERE building_id = @ITEM_BUILDING_ID). My problem is that you can't bound two sql data sources and in the buildings query how do I get the value of the ITEM_BUILDING_ID label into the query.

MVC :: Value Cannot Be Null. Parameter Name: Username - Profile? forums.asp.net

I'm having this very annoying issue.Trying to make ASP.NET profile work in my MVC2 application.This is the C# code: [Code].... Here is the web.config file: [Code].... And finally the controller action: [Code].... As soon as I submit the form I get an error. I can't even debug C# as the error occurs before stepping into public ActionResult Create(UserProfile model, string submitButton)...The error is: Server Error in '/' Application. Value cannot be null.Parameter name: username Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentNullException: Value cannot be null.Parameter name: username Source Error: [Code].... Stack Trace: [Code].... [ArgumentNullException: Value cannot be null. Parameter name: username] System.Web.Util.SecUtility.CheckParameter(String& param, Boolean checkForNull, Boolean checkIfEmpty, Boolean [code]...

Jquery :: MVC: Pass An List Or Array Of Strings From Controller To View? stackoverflow.com

I need to populate an object in the script section of my mvc page, currently the object looks like this: <script> var disabledDays = ["9-30-2011","2-24-2010","2-27-2010","2-28-2010","3-3-2010","3-17-2010","4-2-2010","4-3-2010","4-4-2010","4-5-2010"]; Now I am trying to pass an array of DateTime objects to the view from the controller, but converting it to strings before I do that. Something like this: <Controller> var blockedDates = new List<string>(); foreach (DateTime closeDate in dealershipInfo.ClosedDates) blockedDates.Add(closeDate.ToString()); ViewBag.BlockedDates = blockedDates; But definitely it is not working for me. What will be the proper way to achieve this kind of a result.

Web Development - Simple Recaptcha ? stackoverflow.com

code for simple recaptcha in PHP??say like adding two number that do random or some randome values or strings etc.

Unknown Number In Query phpbuilder.com

I have a query which uses variables from a string in the URL. For example: URL: http://www.mysite.com/page.php?id=1 Query: SELECT * FROM table WHERE id = $id This works fine, but if I want to specify more than one variable I have to manually change the query on the PHP page to accept the new variable: URL: http://www.mysite.com/page.php?id=1&id2=2 Query: SELECT * FROM table WHERE id= $id OR id = $id2 Is there a way to make the query dynamic so that I can enter as many variables in the string as I want and not having to change the query?

Getting MySQL SUM Values For Time Period, Ie Sum Of Totals From Date1 To Date2. phpbuilder.com

I am trying to make sales reports from a MySQL database. I have successfully made a report for 1 day, ie 2005-08-08, what I would like to do is generate a report from lets say 2005-07-08 to 2005-08-08, I am not sure how I could write this, if it can be done. Any help or feedback would be great. The date is passed fron the URL, so I would assume that it would be $date1 = start date; $date2 = end date; This is the code I use for one query to get totals for 1 date: Code: SELECT SUM(item_price*quantity) FROM invoice_items WHERE date = '$date1' AND item_type = 'Parts' AND status = 'POSTED'"

String - Getting Elements Of A Div From Another Page? stackoverflow.com

So I have page one: <div id="div1">This is text one</div> <div id="div2">This is text two</div> <div id="div3">This is text three</div> Now I want to get the elements of div one, that it will return This is text one, how can I do that?

JQuery :: Select A Clicked "a Class Mail" Href Value In Order To Filter It And Add A One Word String... stackoverflow.com

I am trying to select a clicked "a class mail" href value in order to filter it and add a one word string after the text "...subject=[Site]..." to be like this: "...subject=[Site] string..." envie um e-mail para sites@atipico.com.br This is as far as I can go: $('a.mail').click(function(event){ $(this).prop('href',$(this).prop('href').replace('[Curso]', '[Curso] some text')); }); I replaced prop by attr but it did not work... $('a.mail').click(function(event){ $(this).attr('href',$(this).attr('href').replace('[Curso]', '[Curso] some text')); });

JQuery :: Getting The Value Of The Clicked Button In A List? forum.jquery.com

how can i do this:php: for($idf=0; $idf<100; $idf++) { echo " <button id='bttn_send_".$idf."' class='bttn' type='button' value='".$idf."'>go!</button> [code]....