Modify DomainService Code?

Oct 24, 2010

How can one modify DomainService code without the custom code being overwritten?

Is there a way to put the custom code in a seperate class file?

View 1 Replies


Similar Messages:

AJAX :: JS Code Is Cached On IIS 7.0 Windows Vista And Cannot Modify JS Code

Jun 22, 2010

I have a WCF 3.5 service with JSON and a aspx page consuming it by using ASP.NET Ajax Library

I was able to call service succesfully.In the aspx page I wrote my Java code directly and then I wanted to modify my JS function but it is always picking the old JS function code

I even restarted the machine no change, looked up on the internet, msdn and I have Default pool with Integration mode

code bellow

<asp:ScriptManager
ID="ScriptManager1"
runat="server" [code]....

View 2 Replies

VS 2010 LinqToSql DomainService Metadata

Feb 3, 2010

I have some datatables in a LinqToSql entity model (edmx) that are structured like this: SalesOpportunity *<-1 User *<-1 Person i.e Many SalesOpportunities / 1 User, Many Users / 1 Person Anyway, My DomainService is SalesOpportunity centric, and I want to serialize info about the person into the metadata class. I can serialize data about the user without any problem like this:

MetaData Class:
<Include("UserName", "UserName")> _
Public User As User
DomainService Class - GetOpportunities()
Return Me.ObjectContext.Opportunities.Include("User")

I've been trying for several hours to get the Person information. If you have any tips, I'd be grateful to hear them.

View 1 Replies

C# - Modify <param> Value From Code?

Dec 23, 2010

I am trying to embed a visio doc in an aspx page using the following code

<OBJECT classid="CLSID:279D6C9A-652E-4833-BEFC-312CA8887857"
codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe" [code]...

i need to modify the value parameter SRC from code , how do i go about it ?

View 2 Replies

Modify The Code To Display A Table In The ReportViewer?

Mar 11, 2010

I'm repeating my question because the prior one under this topic was lost.

I want to use MicrosoftReportViewer for Web Forms so that the DataSource be set programmatically. There is some sample code on the Internet for Windows Forms but I haven't found anything for Web Forms. For example, here is some code I've tried to use. It gives no errors but nothing is displayed.

How should I modify the code to display a table in the ReportViewer?

[code]....

View 1 Replies

Iis - Modify Content Of XML File From Published Code?

Aug 18, 2010

I am trying to modify an xml file from my aspx code. The file is in another directory from my project like in D:folderfile.xml When publishing my code and running it I am receiving an error as not to be able to access this directory, access in denied. Which user account shall I add to this folder in security option to be able to modify it. I tried adding IIS user but it does not seem to work.

View 2 Replies

Web Forms :: Control Is Being By Asp Before Any Other Code Has A Chance To Modify It?

Feb 4, 2011

I am workining on a large site for a client. I have a control (an asp.net textbox) that is rendering with two class tags i.e.:<textarea class="x" class="y" />I have no idea how or why that is happening and I dont expect to find an answer here.however I hope that one of you can tell me the best way to debug it.I would like to see how that control is being by asp before any other code has a chance to modify it (the site uses telerik controls but the control in question is an asp.net textbox control).

View 7 Replies

Web Forms ::how To Modify The Code For The Excel To Work With A .csv File

Aug 20, 2010

In my orginal post i asked the question to handle this within the .Net side.

I was trying to stay away from using SSIS package, and with help from another member, i was able to get the process to work with an excel spreadsheet.

But part of my project requires us to allow .csv files.. so my question is how can i modify the code i have now for the excel to work with a .csv file?

You can find the current code in my original post here:

[URL]

I not sure what the best solution is for the end result.. I was reading somewhere online that you can right the data from the file to a datalist or gridview so you can present the user with a view of what is being uploaded, then use that datacontrol to insert into SQL.

In my current code, im uploading the file, then using that file to do the insert. This works fine for .xls files.. but i need to accomplish the same thing for a .csv file.

View 11 Replies

Crystal Reports :: Modify The Code Which Is In Indian Currency Format?

Oct 28, 2010

modify the code which is in indian currency format?

View 1 Replies

DataSource Controls :: Modify Sql Data Source Command In Code Behind

Oct 18, 2010

i had a requirement for dynamic sorting so i wanted to assign order by.. dynamically depending on what column is clicked for sorting

i tried to modify the sql data source command

in ds selecting event by using

e.command.CommandText=modifiedCommandHere; but it doesnt work as it always picks up selectCommand specified in aspx page

View 1 Replies

Web Forms ::modify The Attached Code To Open The Linked Web Page In A New Window?

Nov 25, 2010

How can I modify the attached code to open the linked web page in a new window?

[Code]....

View 1 Replies

Forms Data Controls :: Listview Control Modify Display Of Datavalues In Code Behind

Jan 30, 2011

I'm using a sqldatasource to retreieve and display values in a listview. I used a list view since I wanted to use custom formating. I have an itemtemplate with the retreieved values. I have list one of the rows

<td
class="eventnestedr2col1"

<asp:Label
ID="eventdateLabel" [code].....

View 1 Replies

Web Forms :: Print Button Should Not Print A Panel / How To Modify Code

May 6, 2010

I have this print button on a webform which has many other tools I don't want the invoice history panel to get printed when I click the print button, how do I modify the code for it.I have attached the code for my print button but this prints even the invoice history panel which I dont want

[code]....

View 6 Replies

Use Css File - Modify?

Jun 26, 2010

I am doing some research on themes in asp.net. (Just Learning) is this a practical use of my time? Should I just use css files and if someone wants to modify anything let them use the css to do it? Are themes a waste of my time? I really want to create my app but give the end user the ability to customize the look and feel without jumping through hoops. Can someone push me in the right direction with pros, cons etc

View 3 Replies

C# - How To Modify MapRoute (add New Dir)

Mar 26, 2010

How can I change my map route so I can have another dir, and not just the controllers and actions.What I want is to have another directory before the controller so that way I can separate controller per "module"

routes.MapRoute(
"Default", // Route name
"{module}/{controller}/{action}/{id}", // URL with params
new { module = "module", controller = "controller", action = "Index", id = ""}

This is what I want, but the code doesn't work. What more do I need to change to change the MapRoute?

View 2 Replies

.net - Modify An Asp:BulletedList In C#?

Jan 20, 2011

I've different buttons like this

<asp:Button ID="button1" runat="server" Text="single" title="single" EnableViewState="false" />

When this button is clicked I want that the text in a list like this changes

<asp:BulletedList ID="list1" runat="server" EnableViewState="false">
<asp:ListItem>Item1</asp:ListItem>
<asp:ListItem>Item2</asp:ListItem>
<asp:ListItem>Item3</asp:ListItem>
<asp:ListItem>Item4</asp:ListItem>
</asp:BulletedList>

How in C# can I select the first, the second or the third element of the list?

protected button_Click(object sender, EventArgs e)
{
list1. ...;
}

View 1 Replies

How To Modify Dataset Data

Jan 12, 2011

I'm trying to call a dataset, modify a value, and then put it back into a dataset.

I think this is possible but I'm doing something wrong

attached is an image of the table and the code

[Code]....

View 3 Replies

VB.net Getting Last Inserted Record / How To Modify It To Get The Last Id

May 12, 2010

I know this is a common request, I've googled loads but found lots of complicated code for such a simple task.

My basic insert code is below, can someone tell me how/ where I can modify it to get the last ID?

[code]....

View 7 Replies

ASMX :: Modify SoapAction In WCF?

Apr 2, 2010

My application uses the default URL http://tempuri.org rather then using specific URL. In my C# code, how do I change the SoapAction? Is it in the ServiceContract? OperationContract? I'm not sure.

This is in the binding level.

View 1 Replies

MVC :: Modify The Routes Dictionary?

Feb 16, 2010

how to do routing. My problem basically relates to "logged in" and "logged out routes" and having both as "/".

i.e. I have home/index for logged out user which appears as "/" but this has got me confused as to how I can have home/home for logged in user and still have "/".

I keep getting 127.0.0.1/home/home

I could modify like 127.0.0.1/home - but I want it like "/". My confusion relates to the fact that the "/" [127.0.0.1/] is bound in the routes collection to home/index.

how I can modify the routes dictionary (which will be binded ONCE at the start) so that the "/" can be shared for logged and non-logged users ?

View 8 Replies

Hide Or Modify The Url Extension?

Feb 24, 2011

I want to hide or modify the url extension by default it is set to aspx. Can it be modified in asp.net

View 2 Replies

Open And Modify Text File?

Feb 12, 2011

I have a C# web application (VS 2005).

I need to open an existing text file and add data to each row.

View 4 Replies

How To Modify Re Dim Preserve For Dynamic Array

Oct 21, 2010

I wrote the following code to preserve the values of a dynamic array

but the 2nd time around I get the 'ReDim' can only change the rightmost dimension.

Here is the code ...how should I modify it? Initial lead_count value is 0

[Code]....

View 1 Replies

To Modify Source And Add A Little Scriplet Inside It?

Apr 19, 2010

I m trying to modify a .aspx page which i think is precompiled.(Whenever i open any aspx file it contains following "This is a marker file generated by the precompilation tool, and should not be deleted!").Is there any chance that i can modify source and add a little scriplet inside it?

View 6 Replies

Web Forms :: How To Modify Hyperlink Using FindControl

Apr 15, 2010

I have a literal control on a page that gets it's value from a resource file like this...

<asp:Literal ID="Literal2" runat="server" meta:resourcekey="Literal2Resource1"></asp:Literal>

The resource file contains the following HTML code...

<a runat=server id="bylchau" href="./pothole_locator_map.aspx?lang=en-gb&lat=53.153977&lng=-3.533306">Bylchau</a>

Therefore when the page is loaded it renders a hyperlink to the page.

What I want to do, is modify the href of this hyperlink after the page has loaded (in Page_LoadComplete??)

Have tried the following but get error, 'Object reference not set to an instance of an object.'

Dim quicklink As HtmlAnchor = DirectCast(Form.FindControl("bylchau"), HtmlAnchor) quicklink.HRef = quicklink.HRef + "boo"

What I was hoping for is that the href of the anchor would change to href="./pothole_locator_map.aspx?lang=en-gb&lat=53.153977&lng=-3.533306boo"

View 9 Replies







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