C# - How To Avoid The Extra Backslash

Dec 10, 2010

I'm have a page which I sent a parameter through the query string.

If I'm retrieving it with Request.QueryString["Format"] I'm having troubles with the type 'CDDVD'. It's being returned as 'CD\DVD'. It's important I get this as the right string.

How do I avoid the extra backslash? Or even get rid of it later?

View 2 Replies


Similar Messages:

How To Replace The Backslash

Sep 9, 2010

I have an image control with the following string

[URL]

I want to replace string cleartext=imagePath.Replace("","/"); but the backslash causes a problem -- how can I replace the backslash?

View 4 Replies

String Manipulation / Instead Parse Out Last Backslash And Get Filename?

Sep 23, 2010

If I have a file in a path lke this:

C:demo estfile.txt

I can a split function and split on the backslash character to get the pieces. But if my directory could change this wouldn't work. So how would I instead parse out the last backslash and get the filename that way so that it wouldn't matter if the path changed?

View 2 Replies

MVC :: Extra Dash On Url When Using Url.Action?

Apr 26, 2010

I am using T4MVC on a Html Helper as follows:

[Code]....

However I get on my HTML output the following:

<img src="//product/getthumbnail/6">

Instead of:

<img src="/product/getthumbnail/6">

This one is working. The first one is not because it gets an extra / on the begining. What would be the correct way to do this?

View 2 Replies

MVC :: Extra Foregin Key Columns - How To Fix It

Mar 5, 2011

i'm having an issue using mv3 and entityfirst coding, all my tables are fin except for one table where it keeps adding an extra foreign key column and i dont know why, here is my code:

[Code]....

like i say, all other foreign keys look fine but for some reason in the entries table i have an extra column. i have the 2 expected foregin key columns:

[code]....

View 2 Replies

Getting Rid Of Extra Padding For RadTab?

Feb 17, 2010

I don't know how strong the support of RadControls over here is, but it can't be worse than Telerik(there I'm lucky to get a response in 2-3 days), so I'm going to try here first.

Basically, I'm trying to do custom theming(using just CSS classes) throughout my application, so I tried setting the CSS classes needed on the telerik RadTab controls.

Well, when inspecting it in firebug, it adds an extra like 50 px of padding to each tab, which there seems to be no control over. This is their rendered markup

<li class="rtsLI rtsFirst">
<a href="#" class="rtsLink ui-state-default"> <!--This is the only place where I can put in my own custom CSS class-->
<span class="rtsOut">
<span class="rtsIn">
<span class="rtsTxt">
Common Application
</span>
</span>
</span>
</a>
</li>

Now, I know you can't see the style classes, but according to Firebug, every class prefixed with "rts" has the line padding-left: 9px in the style sheet which would of course explain the extra padding problem. (Why do they need all this nesting anyway?!)

View 1 Replies

ADO.NET :: ModelState Has An Extra Key Which Is Empty ?

Sep 11, 2010

I created a Model to do registration on my Website, and add some validations to it. When the user inputs a data, the data will be checked for validity using ModelState.IsValid. But when I input a correct data, it always be invalid. So I decided to debug my program and found that there are an extra key in my ModelState.

For my model, I have UserName, Email, Password, ConfirmPassword, SecretQuestion and SecretAnswer (6 elements)But when I debug, in ModelState, I found 7 elements, they are UserName, Email, Password, ConfirmPassword, SecretQuestion SecretAnswer and the last one is "".I don't know why there is an extra "" in my ModelState, and I checked that it was the source of my error.

Below I enclose my source to make it clearer

[Code]....

[URL=http://img37.imageshack.us/i/errorvh.jpg/][IMG]http://img37.imageshack.us/img37/3415/errorvh.jpg[/IMG][/URL]

View 4 Replies

SQL Server :: Add Extra Tag For Output (SQL For XML)?

Jan 18, 2011

this is my script

SELECT * FROM
( SELECT 'OK' AS RESULT,'Done' AS MSG ) A
FOR XML RAW('COLLECTION'),ELEMENTS

the result would be

<COLLECTION>
<RESULT>OK</RESULT>
<MSG>Done</MSG>
</COLLECTION>

would it possible the output as this format ( to add extra tag <H></H>)

<COLLECTION>
<H>
<RESULT>OK</RESULT>
<MSG>Done</MSG>
</H>
</COLLECTION>

View 3 Replies

Web Forms :: Web.sitemap - Add Extra Submenu

May 27, 2010

Whenever i add a exta submenu to:

<siteMapNode url="~/washroom/default.aspx" title="Washroom Supply" description="Washroom Supplies">
<siteMapNode url="~/washroom/example.aspx" title="Example" description="Example" />
</siteMapNode>

I get the error page.I managed to add one sub menu(example) but there is no way that I can add more. Everything looks ok but for some reason dosent work. That's the whole map:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns=[URL]
<siteMapNode url="/" title="Home" description="Home page">
<siteMapNode url="~/cleaning/default.aspx" title="Cleaning" description="Cleaning Services">
<siteMapNode url="~/cleaning/office.aspx" title="Office Cleaning" description="Office Cleaning" />
<siteMapNode url="~/cleaning/ceiling.aspx" title="Ceiling Cleaning" description="Ceiling Cleaning" />
<siteMapNode url="~/cleaning/awning.aspx" title="Awning and Canopies" description="Awning and Canopies" />
<siteMapNode url="~/cleaning/pubs.aspx" title="Pubs, Bars and Clubs" description="Pubs, Bars and Clubs" />
<siteMapNode url="~/cleaning/communal.aspx" title="Communal Areas" description="Communal Areas" />
<siteMapNode url="~/cleaning/carpet.aspx" title="Carpet and Upholstery" description="Carpet and Upholstery" />
<siteMapNode url="~/cleaning/window.aspx" title="Window Cleaning" description="Window Cleaning" />
<siteMapNode url="~/cleaning/pressure.aspx" title="Pressure Washing" description="Pressure Washing" />
</siteMapNode>
<siteMapNode url="~/distribution/default.aspx" title="Distribution" description="Distribution Services">
<siteMapNode url="~/distribution/price.aspx" title="Price Guide" description="Price Guide" />
<siteMapNode url="~/distribution/areas.aspx" title="Areas We Cover" description="Areas We Cover" />
<siteMapNode url="~/distribution/collection.aspx" title="Free Collection" description="Free Collection" />
</siteMapNode>
<siteMapNode url="~/office/default.aspx" title="Office Supply" description="Office Supplies" />
<siteMapNode url="~/washroom/default.aspx" title="Washroom Supply" description="Washroom Supplies">
<siteMapNode url="~/washroom/example.aspx" title="Example" description="Example" />
</siteMapNode>
</siteMapNode>
</siteMap>

View 7 Replies

DataSource Xml Reads Xml With Extra Letters

Oct 29, 2010

I receive lists from a web service and then I convert the lists to datatable and then I add the datatables to a dataset and from there I get the xml from the dataset where I can save it into a sql database. But the problem is that the xml has /r/n between all attributes and elements. I dont know how to get this out of the xml. Can this be because of my converter. If so can anyone give me a better way to get multiple lists into a dataset.

View 2 Replies

Export To Excel W/ Extra Lines?

Jan 27, 2010

It's been a while since I've posted here, but I do have a vexing question. I have an export to Excel that is working just fine with the exception that I have one blank line at the top of my export and one blank line at the bottom of my export. All paging and sorting are turned off at this point, so I'm really not sure where these empty lines are coming from. They appear above the header row and below the last row of data, almost like there's an invisible line that gets created after the data makes it to Excel.

View 6 Replies

AJAX :: CollapsiblePanelExtender Extra Div Wrapper?

Jul 15, 2010

I have this CollapsiblePanelExtender (below) the problem is that in firefox it gives a horizontal scroll bar under the control which has to expand.

[Code]....

Below is the generated HTML

[Code]....

If I remove the "overflow-y:hidden" from the generated div then the scroll bar goes away, which is what I want....

View 3 Replies

Adding An Extra Column In A Datatable

Jun 21, 2010

How do you add an extra column in a datatable which will be used for another query

View 3 Replies

C# - Add Extra UserId Parameter To ReportViewer?

Apr 4, 2011

Using the Asp.net Report Viewer in VS2010 in Remote mode we need to allow the user to use the default controls on the report viewer for entering in the parameters before running the report.

As permissions need to be set on the data we have a UserId hidden parameter on all the reports and the plan was to allow the user to enter in the parameters as normal and then we would add [programmatically] the userId parameter before the report is run.

The data in the report would then return the data that the user had permission to view. [We use the SSRS web service to populate a treeview with a list of available reports for the user to select.]

I guess I'm having trouble with whats the best approach for this. I need to pass the userId parameter value to the ReportViewer and not to the server report. I'm aware that you can use the web service to manage the parameters completely outside of the control but its not an option for us at the minute.

So in summary:

User Selects Parameters in the Report Viewer. Code behind adds the UserId parameter value either as the report is run or initially when its loaded and the viewer passes all the parameters to the server.

View 1 Replies

Web Forms :: Extra Formatting With BinaryWrite Of PDF?

Oct 26, 2010

I have a server page generating a PDF file on the fly. I am currently submitting it to the client with a binarywrite. I would like to submit it formatted with the following "Adobe" options:

pagemode=thumbs

view=Fit

Is there any way to do this with a BinaryWrite? Or any way to do this in Javascript?

View 5 Replies

Possible To Send Extra Information To AutoCompleteExtender From Another Textbox

Feb 17, 2010

is it posseble to send some extra information to AutoCompleteExtender from another textbox to get filterd list to target textbox

View 4 Replies

C# - Collecting Extra Information Using Dot Net's Standard Authentication

Apr 3, 2011

I'm using the inbuilt dot net authentication to register users in a simple web site and trying to add some extra information to be collected on registration. It currently asks for Usernname, email, password, confirm password. I'd like to add some extra bits, something like "favourite colour" - just a simple stringIs there an easy way of doing this? Maybe a simple tutorial I could follow?

View 2 Replies

Preventing Extra Fields From Being Added To A Form

Mar 10, 2011

I realize what I am trying to do is a little unconventional; but I want to make my search SEO. Basically I want the query string resulting from my search to be human readable; if I was doing straight html this would be cake:

<form method="GET"><input type="text" name="Zip" /></form>

I realize that I can change the form method in asp.net, however, all the asp.net state holders show up in the query string. I even tried disabling viewstate and removing all javascript submitting controls (to get rid of __EVENTTARGET) to no avail.

The thing is, I really want to keep using the same master page as I do in the rest of the site; does any one know of anything I can do short of building the page from scratch?

View 1 Replies

Web.config Transforms Add Extra Line Returns Where There Are None

Aug 26, 2010

When my Web.config transforms it is adding a new line before the end value tag in my ApplicationSettings. This new line is showing up in the setting and causing an exception. Example:

Web.config:

<setting name="FilePath" serializeAs="String">
<value>c:path</value>
</setting>
Web.Debug.config:
<setting name="FilePath" serializeAs="String" xdt:Transform="Replace" xdt:Locator="Match(name)">
<value>c:path</value>
</setting>

Published Web.config:

<setting name="FilePath" serializeAs="String">
<value>c:path
</value>
</setting>

The end value tag being on its own line is causing problems. Does anyone know how to get it to stop doing this?

View 1 Replies

C# - Extra Objects In Soap Results And Responses?

Jan 18, 2010

I try to implement simple SOAP server on ASP.NET and simple client on php and get the problem with response and request format. My server is very simple, take one string and return another:

[WebMethod]
public string HelloWorld(string Additional) {
return "Hello " + Additional;
}

I expect, that php client is such simple:

$client = new SoapClient('path');
print_r($client->HelloWorld('homm'));

But actually, function take only objects and return object with single member — HelloWorldResult:

$client = new SoapClient('path');
print_r($client->HelloWorld(array('Additional' => 'homm')));
stdClass Object
(
[HelloWorldResult] => Hello homm
)

What part I need to change, server (ASP.NET) or client(php) to work with results and parameters indirect?

View 1 Replies

Web Forms :: Add Extra Item In Dropdown List?

Nov 3, 2010

I am using database table as datasource for my dropdownlist. I want to add an extra item in my dropdownlist for example "select country".

how can i do that.. currently my code is:

dropdownlist1.datasource=dt;
dropdownlist1.datavaluefield="country_id";
dropdownlist1.datatextfield="country_name";
dt is a datatable , "country_id" & "country_name" are columns

View 7 Replies

Security :: CreateUserWizard With Extra Profile Info?

Sep 23, 2010

I'm using the CreateUserWizard and it's working great. I do have a "step2" that asks the newly created user their first name and last name. Seems simple enough, but I'm getting an error on the Profile.Save(): "This property cannot be set for anonymous users". I'm assuming this is due to the fact that I have DisableCreatedUser="true" for the CreateUserWizard, which is what I NEED to do. Does this mean that until we enable this user, they can't add these few columns? Since the site I am updating requires matching a newly registered user to an already existing "Artist" table, it's important that the administrators are given the first and last name of the user. The aspnet_User table doesn't have that, so I thought I'd give the profile a try.

View 3 Replies

Web Forms :: Extra URL Path Running The Site?

May 27, 2010

[URL] Does anyone know why is generating this strange folder path?

View 2 Replies

Extra Querystring Data On JQuery.ajax()?

Feb 18, 2011

I wanted to know what this extra querystring data is and where it's coming from.

jQuery.ajax({
url: 'MyFile.aspx/ProcessRequest',
data: JSON.stringify({status: status }),
async: false,
dataType: 'application/json',

[code]...

Using tamperdata and also viewing the Request.QueryString in the debugger the resulting url is:

http://localhost/Folder/MyFile.aspx/ProcessRequest?_=1298057136790&{%22status%22:%22pqs%22}

So where does this _1298057135790 come from and why is it there?

View 2 Replies

Web Forms :: Remove Extra Spaces In The UserControl?

Apr 5, 2010

I have control.The browser shows that in HTML code, there were additional gaps.How I can get control without extra spaces and design code HTML ?

View 5 Replies







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