Forum Array

C# - The Type Or Namespace Name "Exchange" Doesn't Exist In The Namespace

When I run my app I get this error: Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0234: The type or namespace name 'Exchange' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) Source Error: Line 06: using System.Web.UI.WebControls; Line 07: using System.Data.OleDb; Line 08: using Microsoft.Exchange.WebServices.Data; // error Line 09: using System.Net; Line 10: using System.Data.SqlClient;

View Answers

Very Similar Questions

C# - How To Return A Value Based On The Type Of The Generic T
I have a method like: public T Get<T>(string key) { } Now say I want to return "hello" if the type is a string, and 110011 if it is type int. how can I do that? typeof(T) doesn't seem to work. I ideally want to do a switch statement, and return something based on the Type of the generic (string/int/long/etc).

C# - SOAP Generic Type Serialization?
We have created a class to wrap the payload of web service response with common information as follows. public class ItemResponse<T> : Response { /// <summary> [code]...

C# - Cannot Implicitly Convert Type System.Collection.Generic.IEnumberable
I'm receiving this error in my Linq statement --- Cannot implicitly convert type 'System.Collections.Generic.IEnumerable' to 'hcgames.ObjectClasses.ShoppingCart.ShoppingCartCartAddon'. An explicit conversion exists (are you missing a cast?) From this query ShoppingCartItems items = Cart.GetAllItems(); ShoppingCartCartAddons addons = Cart.GetAllAddons(); var stuff = from x in items select new ShoppingCartItem() { ProductID = x.ProductID, Quantity = x.Quantity, Name = x.Name, Price = x.Price, Weight = x.Weight, Addons = (from y in addons where y.ShoppingCartItemID == x.ID select y) };

Installation :: Registry Value Doesn't Exist - HttpException Was Unhandled By User Code
I was researching an issue relating to Excel automation and one of the website recommended to modify the machine.config file. So following I took the following steps: 1. Browsed to folder "c:WINDOWSMicrosoft.NETFrameworkv2.0.50727". 2. Backed Up "machine.config" file. 3. Edited the machine. config file. Re-run the solution. It didn't work. 4. So I restored the machine.config file. This is the only thing I did. So now whenever I'm running my solution, I get the following error: Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesaspnet_stateParametersAllowRemoteConnection. If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '' as the server name. The Build is succeed but the following code of global.asax.vb fire this error: Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)            Dim err As Exception = Server.GetLastError()             'Response.Clear()            'Response.Write("<h1>" & err.InnerException.Message & "</h1>")            'Response.Write("<pre>" & err.ToString & "</pre>")             Dim vErr As String            Try                 vErr = err.InnerException.Message.ToString()        Catch ex As Exception                vErr = "Unknown Server Error"            End Try            'Response.Write("<h1>Polaris.Net Server Error.<BR>Please provide any helpful comments and click the [Submit] button to send details of this error to the systems department.</h1>")            Session("ServerError") = vErr            Response.Redirect("~/ServerErrorMessage.aspx")            Server.ClearError()  End Sub I tried all the googled solutions but didn't work. I even copied the whole solution, including the new web.config file but to no avail.

C# - ELMAH - Only Sending Specific Exception Type Via Mail
I have ELMAH set up for a webapp, logging exceptions to a SQL server. I wish to have ELMAH send me an email too, but only when a specific exception is thrown (ie. MySpecialException). ELMAH must still log all exceptions to SQL server. I know you can do it programmatically in global.asax, but I'd prefer to use web.config. So, how do I restrict ELMAH error mails to filter out everything but a specific exception type, using web.config? UPDATE The filter ended up looking like this: <test> <and> <not> <is-type binding="Exception" type="MyApp.MySpecialException" /> </not> <regex binding="FilterSourceType.Name" pattern="mail" caseSensitive="false"/> </and> </test>

C# - Best Way To Add A Column To An Existing Dataset
I have two extremely long queries that I am running on multiple tables, using an INNER JOIN. The only difference between these two queries is that they take different input values for one of the WHERE clauses, which they get from two separate DropDownLists. The results of these queries are identical, save for the time1/time2 columns.string query1 = "select Name =, time1=(SELECT hours FROM table3 WHERE street=list1.selectedvalue), t2.address from [table1] t1 INNER JOIN [table2] t2 ON t1.param = t2.param ORDER BY Name"

Forms Data Controls :: How To Change The Column's Name Of Dataset Programmatically With C#
Base on different conditions the progam uses different Sql which every one has different select names. How can I change the Dataset Columns name programmitcally which matchs the FormView  Order . Or some how change the   <%#Eval("Order")%> text in asp:TextBox <asp:FormView ID="DetailView" runat="server" Width="704px" OnPageIndexChanging="DetailView_PageIndexChanging"> <ItemTemplate> <table height="400" cellpadding="0" cellspacing="0" style="width: 511px"> <tr><td width="%50" valign="top" >TR</td><td> <asp:TextBox ID="TextBox5" Text='<%#Eval("Order")%>' runat="server" Width="192px"></asp:TextBox> </td><td></tr>,/table> </ItemTemplate> </asp:FormView>

C# - Importing Name Space Without Use Effect Performance?
Is there any deficiency performance if import a lot of name space in Web.config or in every single cs file while it's not necessary to be in all classes ?

Why No Type Hints For Built-in Types?
I'm new here, and sorry if this has been discussed before; I didn't find it searching the PHP groups. (I've also read recommendations to cross-post to the other PHP groups, but if that is discouraged, please let me know. At the same time, please then let me know which of the many PHP groups to post to. In PHP5, you can provide "type hints" for functions, like this:

Sprint HTC Hero :: Contacts Are Displayed With The First Name First And Then The Last Name
I have my hero for about 3 days now... and I have one question that i can't find the solution on my own... All my contacts are displayed with the first name first and then the last name? from where can i change this?

Web Forms :: How To Link .cs(class File) With .aspx.cs File
i have created basic .aspx files .one is login.aspx and registration.aspx...Now in my solution explorer i also added class file i.e StudentInfo.cs and wrote some properties in my question is 1. i want to connect Studentinfo.cs class to my login.aspx.cs...So that i can call the methods in to do it?

MVC :: Creating HTML Helpers With Extension Methods?
namespace MvcLogin_Validation.Helpers { public static class LabelExtensions [code]...

Launching A Website Or Another Type Of File From A Command Button
How can you launch a website... say "" in the default browser from a command button...I tried this... Code:Private Sub cmdGYID_Click()Dim XX = Shell("", vbNormalFocus)End Subbut it just spits out an error... so I guess this only works with EXE files

HTC Desire :: Facebook Contacts Not Showing Up To Link To Existing List
I had to wipe the phone and start from scratch, i've just noticed that i'm not able to link my fb contacts to my names stored on the phone.

Create A File That Doesn't Exist Or Write To A File That Already Does?
I am trying to either create a file that doesn't exist or write to a file that already does. within a php file I am trying this: $file = fopen("data.txt", "a"); fwrite($file, " " . $name);[code]... I am running Apache under windows Xp and have no luck that the file "data.txt" is being created. The docs say that adding the a parameter should create a file with a name mentioned in the fist parameter (data.txt). what am I doing wring here?

Command Button To Open Existing .doc
hi, i have a command button that i am trying to get to open an existing word doc(on a different drive, dont know if that matters) . I can get word to open but its blank and i get anerror saying bad file name or number....i know the file name is correct i dont understand the number part of the error???? thanks for any helpPrivate Sub Command1_Click()     Shell "c:program filesmicrosoft officeofficewinword.exe", vbMaximizedFocus        Open "f:Computerpolicy.doc" For Output As ReadOnly

Motorola Droid X :: Set Up Facebook Account To Only Sync With Existing Contacts
how to set up my Facebook account to only sync with my existing contacts, instead of every Facebook friend I have?

Launching My Application With A File Type...
Okay, I have a specific format for my program (.shw).I know how to make my app launch when somebody clicks the file, but not how to make my app realize what to do with that file.Any info is appreciated!

Problem Launching OUTLOOK From VBA - Type Mismatch
I have code that I wrote in VBA for Access 2000 that files emails from Outlook. I know, I know.. I should use VB, not VBA... well I don't have a choice.I have tested the code on many workstations around the office, and it works fine... almostWhen I tested it on our new laptop I get a Type Mismatch error at the beginning of the code at Set olApp line:VB Code:Dim olApp As Outlook.ApplicationDim olNs As Outlook.NameSpaceSet olApp = CreateObject("Outlook.Application") The references are the same everywhere I tested it (Outlook 9.0 Object Library is checked)...Can anyone think of reasons it works elsewhere, but not on this PC...?

HTC Desire :: Get Birthdays In Contacts Onto Calendar Without Actually Typing Them
Does anyone know how you can get the birthdays in the contacts onto the calendar without actually typing them all in again? Is this even possible? Seems like a logical thing to be able to do.

Security :: Change Existing Clear Passwords To Encrypted Passwords?
I have a small database, with a very small number of users. The passwords were stored as clear as the database was so small and held no sensitive data. The database is now to be expanded and passwords are required to be encrypted. I can change the Password Format in the web.config, but is there a way to change the existing passwords from clear to encrypted?

Encrypting Existing Passwords?
found while searching for help on my application.I have a small application with connected to a SQL database. As it was so small, and contained very little data of any importance, i had set it up with Clear passwords.Now i have been asked to expand the database considerably, and encrypted passwords are now required. I can easily modify the web.config so all future users are set up with encrypted passwords. But is there any way to change all existing users passwords to be stored encrypted?

Content Type Setup
I have the following problem with character encoding. We use utf8 in our database and generate html pages where content type is also set to utf8. If I check the source code it really shows utf8 in the head section. However if I check header of the server answer (Note, this is not in the html) it reports an iso-8859-2 content type and it seems the browser takes this value and not the value from the html head. How can I set the content type of the server header to utf8?

HTML Codes In Strongly Typed HTML Helpers
So, I am having a hard time getting this to work. I am trying to add some typographic HTML codes to some labels I have strongly typed to my model. <%: Html.LabelFor(m => m.Name) %> I am using data annotations to customize the DisplayName of the property: [DisplayName("Your friend’s name")] public string Name { get; set; } However the actual code is being displayed for the label: Your friend’s name I have also tried just using the old write method: <%= Html.LabelFor(m => m.Name) %>

MVC :: 2 Strongly Typed Html Helpers Css?
How can I use css and other attributes such max length with the strongly typed views  ?

MVC :: Do 2 Strongly Typed Html Helpers Ignore The DisplayFormat Attribute
I am using the MetaDataType DataAnnotation to validate my models in an MVC2 application. I also apply the DisplayFormat annotation so that currencies and dates are formatted the way I want. This method works for the original Html Helpers such as : [Code].... When I used the new strongly typed helpers: [Code].... the formatting never gets applied. Is there a way around this?

WebMatrix :: How To Use Strongly Typed Html Helpers In Webmatrix
I know we can use the HTML helpers, but how about the strongly typed one's? Html.LabelFor()

MVC :: How To Connect A Controller/Model To Existing Database Table
I'm having trouble connecting to my model to my existing database using Entity Framework .  Here is the code I'm working with: [Code]....

ADO.NET :: Display Property Type In EDM?
Is it possible to display the data type of an entities properties in the Designer?  For instance I have a dateofbirth property for my Person Entity. In the designer I want it to show "dateofbith    datetime" 

Web Forms :: Date - Validate 2 Types Of Date Formats On One Textbox
i have date validation, how can i validate 2 types of date formats on one textbox. when user enters a date into the textbox, it must accept date such as 01/01/2009 AND 1/1/2009 [Code]....

Is Possible To Set Generic Type By Another Class
I use ASP.NET MVC for serving web application and I want to create something like the following code. <% using(HTML.Form(Model)) { %> <% HTML.CreateTextBox('txt1', x => x.Property1); <% } From the above code, Form extension method will receive object that represent type of current Model object in current View page. Next, CreateTextBox method will receive type from Form method and I can bind textbox to some property of this model. Update 1 The following code is code of CreateTextBox method that will create instance of TextBox class. [code].... Is it possible to creating some code that doing something like the above code?

Type Cast Query Which Can Be Used In Generic
Code: private void Test<T>(ref T stVal, T endVal) { do { stVal++; } w hile (stVal < endVal); }But if I want to send different datatypes like int,long etc, then I have to use Generic. And I have noticed that the type conversion in this way

C# - Binding A Generic List Of Type Struct To A Repeater?
I've had a bit of a problem trying to bind a generic list to a repeater. The type used in the generic list is actually a struct. I've built a basic example below: [code].... I then create two fruits using the struct (apple and orange). These fruits are then added to the list. Finally, I bind the generic list to the DataSource property of the repeater... The markup looks like this: [code].... I expect to see the fruit name and price printed on the screen, separated by a horizontal rule. At the moment I am getting an error relating to actual binding... **Exception Details: System.Web.HttpException: DataBinding: '_Default+Fruit' does not contain a property with the name 'FruitName'.**

Generic Parameter - Pass Another Control Type And Execute Exact Same Logic
I have a class constructor which accepts a Listbox. [Code].... I need to be able to pass another control type and execute the exact same logic in one of the methods... Seems like a use for Generics... I'm not so sure about the syntax... The type of control that I will pass is a rad combo box which has many of the same properties of the listBox control. However, RadComboBox does not inherit from listBox or dropDown so I am unable to cast. When changing the signature of the constructor to As RadComboBox as well as the property and field the method works as expected. I am trying to avoid duplicating code here. 

The Model Item Passed Into The Dictionary Is Of Type 'System.Collections.Generic.Lis
Calling Index view is giving me this very very annoying error . Can anybody tell me what to do about it Error:The model item passed into the dictionary is of type 'System.Collections.Generic.List1[MvcApplication13.Models.Groups]', but this dictionary requires a model item of type 'MvcApplication13.Helpers.PaginatedList1[MvcApplication13.Models.Groups]'. public ActionResult Index(int? page) { const int pageSize = 10; [code].....

Localization :: Converting Existing Website To Multilingual Support?
I have developed a website.Now what i want is that it should be multilingual.I don't want a page to be multilingual.I want the whole website to be multilinual.I used the Culture settings as System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("zh-HK"); System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-HK"); This is the setting i used for the culture but my website didn;t got converted.I searched a lot on google but not able to find any solution.Also the resource files process a bit too hard Please let me know how i can achieve this.Using some free third party tool or some jquery or some javascript code or some implementations which i can complete quickly.

Forms Data Controls :: How To Copy A Set Of Data From The Existing Data In UI
How can I copy a set of data from the existing data in UI.

Changing Existing Column To Be With Identity
Possible Duplicate: How to change programmatically non-identity column to identity one? I want to set a column as identity as I have already created this column in a table. What syntax do I need?

DataSource Controls :: Add Identity To Existing Column
I have created small database prods. I have created one table Products. I have given  columns like productid, productname, price. after creating table. I got an idea to add identity to productid ie., auto increment. how to add identity to existing column.

C# - Using HTML.RoutLink To Add Onto The Existing URL?
Is there a way to use HTML.RouteLink() to add onto the existing url. For example I have <%: Html.RouteLink(link.Text, link.RouteValues) %> My controller is Pages, and my action is somestring. So the generated url would be localhost/Page/somestring This is fine. However I would link the generated url when I visit http://localhost:1241/Admin/ section to be localhost/Admin/Page/somestring Instead of localhost/Page/somestring This localhost/Page/somestring url is setup in my global.asx file to route to view a page, and the localhost/Admin/Page/somestring url is routed to edit the page. [code].....

Web Forms :: Way To Highlight Error In 2nd TextBox Like Typing Tutor Application In C Sharp
When I am building my typing tutor application the errors user made I want to show it in RED into his textbox. I created a LIST to have the index values stored but cannot figure it out how to retieve it and make them display as RED COLOR in UserTexbox. [Code]....

Security :: Prevent Users Browsing Files When Typing Directory?
I have directories in my website which require authentication. But when i type the url with the directory name it lets me see the files but doesnt allow access as users need to login. How can i stop users viewing files if they manually type directory name in?

AJAX :: Return Complex Type In Json Format?
I was using Extjs to send a json object to my webservice/Update method , but I find the following error in firebug reseponse. [Code]....

JQuery :: Calling PageMethod With Complex Type Parameter?
I have a page method which take in a complex parameter how can i call this page method using jquery. This is my page method  [Code].... and these are my types  [Code]....

Forms Data Controls :: Cannot Implicitly Convert Type On Datalist
I have a datalist which querys the database and pulls the data ApplicantID, date, and testimonial into the datalist. I now want to get the username from the ApplicantID. Im using TLists to do this but on the line ApplicantDetails = JustClick.DAL.DataRepository.ApplicantProvider.GetByApplicantID(ApplicantID); im getting the error cannot implicitly convert type on datalist can anyone help as to why and how I can fix this cheers. The code im using is below  protected void testimonialsList_OnItemDataBound(object sender, EventArgs e)         {             TList<BLL.ApplicantTestimonials> Testimonials; [code].....

DataSource Controls :: A Binary Aggregate Overwrite Type Function?
Is there a way to do this in either scalar function form or in an aggregate function form?  The problem I'm dealing with is building a security system with multiple tiers of inheritable permissions.  Like you'll inherit certain permissions form the department level and then certain permissions from the supervisor level.  I'd like to find a way to produce these resultsFor user permissions I pull these binary values and get these results, (they are sorted by their tree node depth level in the hierarchy.

DataSource Controls :: Finding For A Binary Aggregate Overwrite Type Function
Is there a way to do this in either scalar function form or in an aggregate function form?  The problem I'm dealing with is building a security system with multiple tiers of inheritable permissions.  Like you'll inherit certain permissions form the department level and then certain permissions from the supervisor level.  I'd like to find a way to produce these results For user permissions I pull these binary values and get these results, (they are sorted by their tree node depth level in the hierarchy.) [code].... Does it look like I will be stuck with manually compiling the tables of departmentpermissions and supervisorpermissions base on every possible outcome of inherited permissions or is there a way to do this on the fly in an efficient manner? 

SQL Reporting :: How To Call An Existing Report In Reportviewer On A Web Page
I am trying to integrate an existing SSRS report in 1. created the report and deployed it. 2. In the web page, have a reportviewer and trying to attach the same report. The report's url is :http://ReportServername/Reports/Pages/Report.aspx?ItemPath=%Clinical+ReportQ: What is my ReportPath and reportServerUrl? Is there something else I need to do? Should I copy over the rdl file to the report server?

C# - Value Cannot Be Null.Parameter Name: Key When Databind?
I am triing to bind the data to a listbox from sql server then got the error "Value cannot be null.Parameter name: key" ddlCountry = new Obout.ComboBox.ComboBox(); ddlCountry.Width = 200; ddlCountry.Height = 200; ddlCountry.DataTextField = "Country"; ddlCountry.DataValueField = "Country"; sqlCommand = "SELECT [Country] FROM [tbl_LookupCountry] where [Country] IS NOT NULL"; SqlConnection sqlConCountry = new SqlConnection(connectString); SqlCommand sqlCommCountry = new SqlCommand(); sqlCommCountry.Connection = sqlConCountry; sqlCommCountry.CommandType = System.Data.CommandType.Text; sqlCommCountry.CommandText = sqlCommand; sqlCommCountry.CommandTimeout = 300; sqlConCountry.Open(); reader = sqlCommCountry.ExecuteReader(); ddlCountry.DataSource = reader; ddlCountry.DataBind(); sqlConCountry.Close();

Checking If Value Exists In Array?
What I want to do is as follows :I am going to be a String from a database which will have some comma seperated values i.e Bank,Bank +2,School What I want to do after I read this value is to then check a certain string to see if this exists within this string type array.I.e does "Bank" exist in "Bank,Bank +2,School"

Checking List If Exist In Web?
I would like to ask if does anyone know how to check if a list is already existing in the web site? The logic is like this, if list exists, do nothing, else create a new one. One more thing, I'd like to get the value of the SPlistitem's column/field. ex. I have an item in a list which have modifiedBy and CreatedBy field. I want to get their value. Can somebody show me how to achieve this?

Checking If URL Is Valid / Exists?
I have the following code which is meant to check if a url exists, however i am getting an error "An object reference is required for the nonstatic field, method, or property 'txtURL' , this is what my code looks like, can someone tell me where  i am going wrong; [Code]....

Checking If A Value Exists In The Database?
i have the following which should be checking if a value exists in the database, however it is not working in the correct fashion, this is what i have in my data access layer; [Code].... Then in my presentation layer;  [Code]....

Audio Type
I had a problem with uploading images in that some files did not have a type of "image/something" from the $_FILES['the_field_name']['type'] which I used for my verification. Someone (THANK YOU) suggested using getimagesize() which has the third element in the returned array being a number representing the image type. That worked perfectly for me, enabling me to check that it was, indeed, an image file that I had uploaded. Now I ask if there is a similar function call for audio types. I want to be able to verify that the file I upload is, indeed, an audio file. I would like this function because I am reasoning that if the "type" obtained from $_FILES['the_field_name']['type'] is not reliable for images, then it probably isn't reliable for audio either.

Obtaining O.S Type
Is there a way to obtain what operating system a user is using when they register to my site without them giving the info which would mean they could lie. Similar to how you get their ip but with operating systems? The reason why is cos multiple accounts i want to allow as long as the two accounts are not on the same OS which adds extra proof they they may be "brothers and sisters" etc with two computers. If they cheat for example and say "hes my brother he is on a different pc in a different room.." i want to find a way to get enough info to prove it.. cos my fear is banning people who ain't lying.. cos there are bound to be instances... i just want to keep it as fair as possible.

What File Type Restrictions Should Use
I have a question regarding file type restrictions when uploading to a database . I am currently using the MAMP program rather than an actual online server and the MySQL version is: MySQL 5.1.44. I want to have one column in a table for virtually any type of file a user would wish to load, .mov, .jpg, .doc, .pdf, etc. you should add restrictions on what the user is allowed to upload. The idea is that they can actually upload anything they want. Is security really a threat by doing this? And what would the threat be? As I don't really know much about security. If so, should there be any types of files that I would be wise to restrict?, would it be wise for example to restrict uploads that are .php scripts as that is what I have written the website code in. It would change the whole concept of this aspect of my website if I were to only allow certain files so I would prefer to limit the users as little as possible. Sorry if this is a silly question, like I say I don't really know much about security. I've only gone as far as encrypting passwords as there won't be any sensitive data being stored.

Existing Parser For ICalendar Files?
I've been searching for an iCalendar parser for PHP, but have been unable to find a complete one. qCal doesn't seem complete. Bennu seems even less so. I've seen a lot of people wanting one, but not much else.

Query Database While Typing, Ala Google Suggest Beta
Is it possible to supply database results in realtime while a user types into a form field, ala Google Search? Has anyone done anything like this in PHP? You can see what I am talking about here:

Query An Existing Number Range?
This is kinda hard to explain, but here goes. I have a db table called "number_range" with 2 columns: `start`,`end` I have a number inside both of these columns: start|end 45000 | 45999 34000 | 34999 12300 | 12355 55710 | 55788 I have a variable: $number = ?, which I need to see if there is a range it belongs to. Or if a range exists. Each record is a number range. I have thousands of these. I was thinking about actually entering the number range, into 1 column, which would increase my record count quite abit. Not a problem, but I thought I'd ask if anyone knows a way to take my first number ($number) and see if there is a record that ($number) belongs to. Or if someone can imagine a better way around this. Just diggin for ideas.

Check If A Record Exists In One Field?
I have only 1 form field on a form User enters a special code in the form. Once submitted the form is queried against a mysql database to see if the code exists. If code does not exist it must be reentered. If code exists then redirected. basically its like "get to the next page if you have the code"

Keep Getting "directory Does Not Exist?
I cannot figure out what I am doing wrong here. The permissions for the directory I have for the file being created have write permissions all across the board. I keep getting "directory does not exist" <? //creates variables and calls the information from the server $Name = $_POST['name']; [code]...

Passing User-defined Types In SOAP
I'm having trouble understanding how to pass user-defined types in PHP SOAP calls. Example: In my WSDL file, I define the type: <types> <schema targetNamespace="" xmlns=""> <element name="personalInformation"> <complexType> [Code].... I expected to get an error because the array I initialized doesn't match the response message I have defined. So I guess the type I have defined in the wsdl isn't used at all - so it must be an error either in the wsdl or in the client or server code.

Passing Complex Data Types From A SOAP Server
I am having problems passing complex data types from a SOAP server constructed using the built-in PHP5 SOAP extension to a SOAP client using nusoap.php or PEAR::SOAP. Code:

Disable Enter Key On The Input Type Text?
I have a form with texts inputs and a submit button... The page has post parameters from the previous page. Now when I press enter key on one of the text inputs, the posted parameters were gone... Do you know how to disable enter key for this purpose

Initialize An Input (type="text") With The Value Of Another Input (type="hidden")?
Initialize an input (type="text") with the value of another input (type="hidden")?

Set Selection On Input Type=text In Ie?
I want to set selection on HTML input type=text. Here's the code for FF and Chrome: <input type=text value="01234567890" id=1> <input type=submit onClick="selectIt()" > <script> selectIt=function (){ [Code].....

Pass The Value Of Input Type / Text?
I have input type/text, and when i write something like 5 ot 14, this numbers to go to another input.

Length Of Textfields (input Type='text')
Any way to define the length of a textfield? I have just set all the field with a width so that they look like clear and easy to read, However, When I see the page of mac os, They are totally not the result in IE of FF, Does there any way to define it absolutely? I have already change the size attribute and set the width of the input.

Change Input Type From Text To Password?
I want to create a input box the says Password inside the box and gets erased when someone clicks inside of it. Then when they type their password it is in asterisk characters.Can anyone tell me what extra scripting I need?

Input Type Text And OnKeyDown Not Working Under IE
I am writing a WWW application, it has to run under IE. I have the problem with the code that runs under FF, but i can't get it running under IE.I've tried some similar ways around window.location and location.href, also document.location. I've read that IE has problems with that, so i ask for a solution.The goal is, that page reloads after typing in some text into <input type='text' name='item_code' onKeyDown='test()'> and click enter. So the result is similar to pressing submit type button below the text input.

Ajax :: Populate An Input Type Text
I have an <input> of type text that I want to populate with a value from a database using AJAX.I want to get only the value in the input type text populated from database, because after that I will be able to change it.

Check When Input Type Text Is Filled
Normally the text is gray in the text fields. But when you have completed a field. The color must be black. How can i check this with javascript?

Onkeyup And Selecting Input Type Text Value
I'm trying to access a value from an input form. I know this works without the onkeyup event but with it it says the that document.formname.elementid.value is undefined! Its extremely frustrating. As the user types into the input, I am using AJAX to generate some more options which works but I need to be able to access the input type=text value.

Total Price To Be In DIV And Not Input Type Text
Firstly, I got this script which gets values and automatically calculates it and shows result. Script: <script type="text/javascript"> function calculate(f){ var prod=Number(f['users'].value); var quan=Number(f['months'].value); var tot=prod*quan; f['total'].value=tot==0?'':tot.toFixed(2); } </script> <ul><li class="bold">Users</li> <li> <select name="users" onchange="calculate(this.form)" id="users"> <option value='1'>1</option> <option value='2'>2</option> </select> </li></ul> <ul><li class="bold">Period</li><li> <select name="months" onchange="calculate(this.form)" id="months"> <option value=''>Select Months</option> <option value='1'>1 Month</option> <option value='2'>2 Months</option> </select></li></ul> Total: <input type="text" name="total" readonly="readonly"> What I'm trying to make is, the total, to be in a div and not input type text Something like <div id="total"></div> I don't like because it shows in form, I want it directly. One more thing, is possible to make the default price 0.00 ? and when selecting automatically changes to price..

How To Set Text In File (html Input Type)
how can we set text in html file uploader. is it possible using javascript?

Checking HTML5 Drag And Drop File Type
I'd like to change drop zone background color to green or red depending on whether the contained drag over payload contains supported file types (JPEG). Do Gecko and Webkit support determining the file type of drag and drop files? How one can extract the file type in these two browsers? I have found event.dataTransfer.types API, but for Firefox it seems to be populated with application/x-moz-file and thus I think I am doing something wrong.

C# - Parse JSON String Into DataSet?
I have to the replication.That time have to pass String as JSON {"Table1" : [ {"Name" : "MyCustomer","Description" : "cutomer","Status" : "1"}, {"Name" : "Kiraa","Description" : "My","Status" : "1",}[code]...... This is my format of JSON result. I want to convert to DataSet.I have installed JSON.NET library. I am using public bool convertJSONToDataSet(string strBusinessUnit, string strExecutiveCode, string strTableName, String jsonContent) { DataSet dataset = JsonConvert.DeserializeObject<String>(jsonContent);[code]..... here this statement is wrong DataSet dataset = JsonConvert.DeserializeObject<String>(jsonContent); how to covert to a JSON string to a Dataset.

C# - Using JSON In .Net?
What libraries are available to handle JSON in .Net? I've seen this: [URL]..but would prefer a native library, if possible.

C# - Turning HTML Div Code Into A Control?
I have bunch of HTML code I am using to make rounded edge boxes on my controls. Is there a way to take this code and turn it into some kind of control or something so I do not have to keep pasting 10 lines of HTML code around everything I do? <div id="BottomBody"> <div class="box1024" > <div class="content1024">[code].... One additional thing to note, the number HTML tags used inside the inner most DIV will change depending on where I use it in my site. So in some cases I will only have 1 tag and 1 tag but in other cases I could have 1 tag, 1 tag, 3 tags, and a HTML table. How can I make that work?

Want To Create Html Link Using C# - Dynamically.
I have a link in my site like this. <a href=""><fontstyle="font-size:small;font-family:Arial;"id="mylink">Please Click here to see Details.</font></a> I want to create this link dynamically (In the button click) using C#.I am looking for a normal html control. I am not using linkbutton.

C# - How To Insert Image In Html Action Link
I have navigation and many link on my webproject from html action links. They are ugly with underline. I would like to insert some image with name or play with styles of action link.Is it possible? How to do that?

C# - Bind Event To Generated Html Link?
I generate in a foreach loop html links ("test which I add to a pre defined literal.ow can I add a void to the generated html link? I tried with runat server and onclick.. but does not work..Goal is to add by the onclick a pre defined void from a API.

C# - Extract Images Link From Html Text String?
I want to extract all images link to so I can utilize all images freely. how to do in c# <div> <img src="/upload/Tom_Cruise-242x300.jpg" alt="Tom_Cruise-242x300.jpg" align="left" border="0" height="300" width="242"> sample text sample text sample text sample text <img src="" alt="Icon" align="left" border="0" height="100" width="100"> sample text sample text sample text sample text sample text sample text sample text sample text</div>

How Do I Link Layers Together In CS 2
How do i link layers together in CS 2 Can't find the little boxes i used to use in ver 7

C# - Parse Using Regex Class Of System.Text.RegularExpressions
I have a string which i need to parse using Regex class of System.Text.RegularExpressions. I need to find if the first 2 characters of the string are either "00" or "07" or "16" or "23".

C# - Parse CSS Out From <style> Elements?
tell me an efficient method of retrieving the CSS between tags on a page of markup in .NET?I've come up with a method which uses recursion, Split() and CompareTo() but is really long-winded, and I feel sure that there must be a far shorter (and more clever) method of doing the is possible to have more than one element on a page, and that the element can be either or .

C# - XML Serialization In .NET?
I have xml like this: <?xml version="1.0" encoding="utf-8"?> <session xmlns="" name="" start="2011-10-03T15:09:30.481Z"> <ls> [code].... Why is XMLSession.FileList.Count always 0. I hypothesize it has something to do with the declaration above it but I am not sure what is wrong with it. Maybe it can't accept a path, if not, how can I do it?

C# - .Net XML Serialization Based On A XSD?
I've been serialising and deserialising .net objects using the XmlSerializer class without problem, however we now need somebody else to look at that data to perform some analysis on it.In order to help with that we've produced an XSD based on our class like so: xsd.exe /t:DataClass Assembly.exe The start of the XSD looks like this: <?xml version="1.0" encoding="utf-8"?> <xs:schema elementFormDefault="qualified" xmlns:xs=""> <xs:element name="DataClass" nillable="true" type="DataClass" />[code]..... Bizarly, the XML produced does not adhere to the XSD generated from the same class.My question then is, is there a way of telling the XmlSerializer to serialize the object based on a given XSD? As an aside, I've looked at other ways of fixing this: I've tried re-generating the classes from the generated XSD - this seemed to have the same problem.

C# - Serialization Across Projects With Inheritance?
I have a base class ("MyBaseClass") in a project called "BaseFramework" which is included in several solutions within the company. There are several derived class's in various projects throughout the company that inherit from "MyBaseClass". If I then create a List and add derived class's to it, it will not serialize. I realise that if I were attempting to serialize this list, and the base class and derived class were in the same project, I could simply apply the "XmlInclude" attribute to the base class and include all of the derived class's. This is however not possible across projects, because that would require a circular dependency.

C# - XML Serialization Assembly For Non-web Projects
I am attempting to solve the well known problem of automatically generated serialization assemblies in VS 2010, both VB.NET and C#. The "Generate Serialization Assemblies" option in project settings does nothing for non-web projects (see [URL]). Thus the calls to serializers generate file i/o exceptions that are very unfortunate, and for which there is no cure. The method suggested above does not appear to work with VS2010 and SGEN still runs with /proxytypes enabled.

C# - How To Serialize Only Some Properties In .Net
This is for a web project so i have several classes that inherit from Web.UI. I only want to serialize very particular properties (basically, only local properties) I'm aware of the XMLIgnore property that can be placed on a property to ignore items, but this won't work in my context since that would require modifying a bunch of stuff that i really don't want to modify (and probably can't). So how do i tell the xml serializer to ignore everything except for X and Y or tell it to seralize just X and Y? i could just create my own xml in a string builder or something and if that's the only way, so be it. however i'm looking for a method that will employ the built in XML stuff.

C# - Angle Brackets In Page Head Element?
PHP experience (which meaby is causing this problem) and Iam having small problem passing data from codebehind to view-source. I declared string variable on codebehind side such as: ... public string mystring = "Scotty"; protected void Page_Load(object sender, EventArgs e) { ... So now I want to use it in view-code but when I put it in angle brackets (<%: or <%=) and put it in head element I got no access to this value. On the other hand when I put it in BODY element everything is ok. My failing example (simplified): <head runat="server"> <script language="javascript"> function beamMeUp() { alert(<%=mystring;%>); } </script> </head> <body> <input type="button" onclick="javascript:beamMeUp" value="Warp6" /> </body> why I can't use it (the <%=mystring;%>) in HEAD but i can use it in BODY ?

C# - Import MD5 Passwords From A PHP App?
So I'm in the process of writing an ASP.NET application that requires to import users from a PHP application. The passwords were hashed using MD5 into the database, so the user table records looks more or less like this: user Password user1 827ccb0eea8a706c4c34a16891f84e7b user2 e10adc3949ba59abbe56e057f20f883e And so on. I have access to the PHP source code and I can see that there is no salt or anything else, it is juts a straight MD5 application. Now, Back on my ASP.NET, I tried to use MD5 using the following logic: [Code].... Problem is, that is returning strings like 50-F8-4D-AF-3A-6D-FD-6A-9F-20-C9-F8-EF-42-89-42, which of course is not going to match with the information in the database. What should I do so I don't have to reset 500+ user passwords?

C# - How To Open A Link In A New Window
I have a button which redirects the user to another page. Instead, I would like this button to open a new window that points to this location. aspx: <asp:ImageButton ID="img_url" CommandName='<%#Eval("url") %>' OnClick="img_url_Click" runat="server" ImageUrl="~/images/products_details.png" /> cs: protected void img_url_Click(object sender, ImageClickEventArgs e) { ImageButton img = sender as ImageButton; Response.Redirect(img.CommandName.ToString()); }

C# - Open Link In A Different Panel?
I have a page that dynamically generated a list of links to a web page (aspx) that opens an image. I do not have direct access to the PDF, only through the ASPX. The code behind is C#. So if I have a page that has codes that looks like this [code]... How do I open the view.aspx link in the cell labels 'Open Image Here'?

C# - How To Open The Download Window When A Dynamically Created Link Is Clicked
i have stored the txtfile in the database.i need to show the txtfile when i clik the link. and this link has to be created dynamically. my code below: aspx code: [code].... i have got the link dynamically, but i did not able to download the txtfile when i clik the link. how to carry out this.

Web Forms :: How To Download The Saved Word Document From Ms Access Database Using C#
In my application, getting the word document from users and i saved that doucment in access database. Data type is OLE Object. I want to know how to retrieve the document from db?

C# - How To Create Simple Stacked/segmented Html Bar
Rather than try to reinvent the wheel, how to create a stacked/segmented bar or point me to an existing control. Here's what I need: Horizontal bar Standard html Each segment needs to be color coded from css Each segment needs to be a percentage of the total (i.e. if total value = 100, then a value of 10 for one of the segments would be smaller than a value of 50) Should be able to fit seamlessly into an html table cell Should not be an image Should only create a single bar with segments (not multiple bars/segmented bars) Server-side generated, no AJAX This should be as simple as possible given x number of values, create x segments. I'm looking for code examples or already-built controls. EDIT: For completeness: int[] segments = { 10, 5, 45, 20, 20 }; Panel horizontalBar = new Panel(); for(int segmentIndex = 0; segmentIndex < segments.Length; ++ segmentIndex) { horizontalBar.Controls.Add(new Panel() { ID = String.Format("segment-{0}", segmentIndex), Width = Unit.Percentage(segments[segmentIndex]), CssClass = "segment" }); } this.Page.Form.Controls.Add(horizontalBar);

C# - Get The Full Path From A Fileupload?
When I'm using the file upload control I just get only the file name, but I want to get the full path of the file location. How do I get the full path from the file upload control in ASP.NET?

C# - How To Get Full Path Of Downloaded File
i want to find the downloaded files full path. in my case. iam replacing some data in document and saving in client side. so itz automaticaly saving in thw client side(normally in the Temp folder). i want to get that full path from the client side. code Response.AppendHeader("Content-disposition", "attachment; filename=myword.docx");