i want to pass a string value from one page to another.Also i have some text boxes and the values entered in it needs to be passed to a new page.How do i do it?
I have a string S
String S = Editor1.Content.ToString();
i want to pass value in string S onto a new page i.e Default2.aspx how can i do this in ASP.net C#
I wanted to pass a certain value from one webpage to another. It will be used only in the web page it will be passed to, so i am thinking that passing that as a session attribute would not be a right method..
Is there a better way than using a Query String in the URL where the user will not be able to see what is being passed.
I have a ASP.NET MVC 1.0 app.I have a listbox on the page and I want to pass an array to the webpage so that javascript can use the array to do some processing depending on the item picked in the listbox.So I thought the best way is to pass JSON data to the webpage on load.So what is the best practice on how to do this?Can you please give me a brief step by step process.How do pass the array as JSON and how do I access it by index?
I am using Visual Web Developer 2010. I am looking for an easy way to load a web page into a string so I can parse it. I did the initial code in VB6 and ran it from a desktop using Inet. I am now making it a web based application and need a way to grab the html contents and place them in a variable to parse.
What is the preferred way to retrieve large(approx: 50 MB) xml string from ASP.NET webpage?
Placing the xml string in file and downloading the file is not a choice.(This should be my last resort if nothing else works)
I have following method on ASP.NET server which is exposed through WCF service to silverlight client.
[code]...
Unfortunately these xml strings are approximately 50MB to 100 MB. Silverlight client needs to retrive these large strings and store it in a file on the client machine at the path selected by the user through saveFileDialog.
My concern is WCF service will not allow such large messages. How can I address this issue?
I would like populate a input text form with a string sent by an User.
The destination page is: [URL]
NOTE: im not the developer for the target page.
Here ho should work:
When a visitor from my site click a link (Ip address)it will be sent to: [URL] and the TextBox automatically populates with the value (Ip address the user has clicked).
The user Will manually click the button "Look Up IP addresses" in [URL] to have the result.
I am trying to get this functionality on my jokes website:
www.mysite.com/category/bar
To get all the bar jokes ..etc
The way I have my route right now is:
{controller}/{action}/{id}
which means I have to type:
www.mysite.com/category/index/bar
the problem is that even with that, the string parameter "bar" isn't being acknowledged ! ( I know from debugging). Here is my Index action in the Category controller:
i have placed a SqlDataSource component on my aspx page but while configuring the SqlDataSource in the "Test Query" Step I am passing the following parameters :But when i click ok it returns following error:This error occurs when i pass the string :
INFO, WARN, ERROR,
I have tried a lot of combinations but nothing works. It works only if i pass one of the three words in single quotes like this :'ERROR'Infact the INFO WARN and ERROR are the various levels available in the table. Each record can have only one level and in the sql query i am using IN("-----") to match the criteria, hope you understand.
I'm creating a dynamic menu, from the reading of a table in a database, everything is going well so far I need to read the url field that has the address of the pages, to appear in the masterpage, the problem can not I pass the string from the database for the navigateUrl.
<DataBindings> <asp:MenuItemBinding DataMember="MenuItem" TextField="Text" ToolTipField="ToolTip" NavigateUrl="pathurl"/> </DataBindings> <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes" encoding="utf-8"/> <!-- Find the root node called Menus and call MenuListing for its children --> <xsl:template match="/Menus"> <MenuItems> <xsl:call-template name="MenuListing" /> </MenuItems> </xsl:template> <!-- Allow for recusive child node processing --> <xsl:template name="MenuListing"> <xsl:apply-templates select="Menu" /> </xsl:template> <xsl:template match="Menu"> <MenuItem> <!-- Convert Menu child elements to MenuItem attributes --> <xsl:attribute name="Text"> <xsl:value-of select="Description"/> </xsl:attribute> <xsl:attribute name="ToolTip"> <xsl:value-of select="Text"/> </xsl:attribute> <xsl:attribute name="pathurl"> <xsl:value-of select="url"/> </xsl:attribute> <!-- Call MenuListing if there are child Menu nodes --> <xsl:if test="count(Menu) > 0"> <xsl:call-template name="MenuListing" /> </xsl:if> </MenuItem> </xsl:template> </xsl:stylesheet>
I need to pass a string from my .aspx page to my .VB class.
i need to capture (device_category; accept_headers : user_agent) and pass the values to my class, i tryed to captur the values on the clas itself but i got an error(valuse are not member of this class..)
I have created a webpage called server.aspx and the related local resource file called server.aspx.resx. In the resourcefile I defined the message "{0} is required." with the key Error.
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?
I'm very much a vb person, but have had to use this id number class in c#. I got it from [URL]
using System; using System.Text.RegularExpressions; namespace Utilities.SouthAfrica { /// <summary> /// Represents a South African Identity Number. /// valid number = 7707215230080
I'm using ASP.NET and attempting to call a method with a signature of
[WebMethod] public static string GetInfo(string id){...}
using the following javascript:
var elementValue = $("#element").attr('id');
[code]...
And this is not working.If instead I set elementValue = 2; it works fine. If I try to hardcode in a string value for testing purposes e.g. elementValue = "nameToLookUp"; It fails.Why is this happening, and how do I resolve it?On a side not, why is type: required to be POST instead of a GET? In the end I just want to pass a string value I want to look up in a DB and retrieving some json data.
In my website, where majority of the users are from Norway,I access some values via querystring(eg: email address).Since the members' email ID may contain Latin letters,I am confused and blocked at this level.
My requirements are,
1, I need to access the Latin letters from query string. Is there any thing different from normal query string operations?
2, I need to store these latin Email IDs to my DB ,which is mysql.Any precaution to be taken while storing latin letters to mysql?
3, I need to show these stored email IDs in my web page.Should I use localization(which I have not used yet) for correctly displaying latin letters in webpage?