ADO.NET :: How To Achieve The Same In The Linq
Nov 4, 2010[Code]....
I'm not sure how to achieve the same in the Linq.
Or is there any better way?
[Code]....
I'm not sure how to achieve the same in the Linq.
Or is there any better way?
I have a function called selType that returns either "mc" or "car"
Then in my datalist i would like to check if the function returns "mc" it should output pName, else pNameFI from my db.
I need something like this..
Code:
<%# if selType="mc","pName","pNameFI") %>
But this don't work.. I don't know how to achieve this.
I am learning ASP .NET and I want to understand the workflow when working with dynamic data. For a basic page structure: header, menu, content panel, I would like to use the content panel to display data ( a profile like page ) I have in a database base on the user selection in a menu control. What I want to find out is how do I implement that content panel part so that it gets built dynamically. What is the best practice for this creating custom controls for every dynamic section of the page? Do I need to create my own ContentPanel user control? Or is there a way to take that <div> andinject content in it at runtime?
View 1 RepliesI'm learning ASP.Net for the first time having spent all my Windows development time doing client applications in VS.Net. As you know, when you drop buttons and text box controls (to name but two) onto a form you can drag-and-drop them anywhere on the form and use the cursor arrows to nudge them to precise locations. When I've created .aspx pages and I select controls from the toolbox they always appear left-justified on the page. There is no way that I can see where I can move the control around the form.
Can someone tell me how I can do that? As an example, it's typical Windows application style to have main form buttons on the lower right corner of a form. But I can't seem to find a way of putting controls anywhere on a page except on the left-hand side. I'm probably racing ahead of myself but I reckon this a reasonable thing to do so could someone briefly describe it to me?
In my DataTable I have 3 columns: ID, Title, Url. lstFKDoc is a ListBox, I want to use ListBox hoot the 3 columns without access database twice.
[Code]....
I would like to integrate few menus of my website with outlook, how can i achieve it.
View 1 RepliesI have one small problem. I am using Asp.Net web services in my application. In aspx application i have a condition that
for sample,
[code]....
look up my above condition. In the else if condition suppose a is greater than zero i wil call webservices. But what i need that suppose the services are not returned the value within 4 seconds, i will need to go to first condition that is call stored procedure. I hope you understand.
How can we achieve this condition. I thought that we can achieve syncronous. But i dont know exactly about it.
In my earlier verison, I used Active Directory to authenticate users which was Custom. In the sense that, I had passed UserName and password along with a token request through datalayer to authenticate against AD. it would eventually check the DomainNameUserName, password against AD and will get authenticated.
View 5 RepliesMost of the time during coding, i found that whether i can write code in less number of line.I don't know when we write some login in less number of line in c# then whether we achive good performance or not? whether dotnet compiler compile code faster or not?Is ere any source of tutorial/ book/ guideline so that we will make checklist before writing code.
View 6 RepliesI have one div where i display data using jquery & web service as below....
name:abc
name:nnnn
when click at name it goes to different page. so, i want to use url Rewriting technique using jquery.
How can I achieve hover effect for the ajaxtoolkit combobox. I just need an outline for the entire combo i.e. outline for combo-textbox and combo-button when hovering over the combobox otherwise it should return to the normal outline color.
I could only get the hovering effect for combo-textbox alone and that too an outline creates at outer of the existing combo-textbox outline.
BTW: how can I attach an image from my desktop?
I tried the CSS style as below
[Code]....
I want o upload the folder to server. for that when user drag and drop the folder the i will get the path at that time ui will zip it uploadedd to the folder.
View 1 RepliesIn my MVC view (page) having one link button while clicking the button I need to refresh the data in two div. I have converted my link button to AjaxLink button ie
<%=Ajax.ActionLink("AjaxRefersh",
"Index",
new
AjaxOptions { UpdateTargetId =
"div1" })%>
It's providing option to give one div to refresh but I want to refresh the data in two div. Do I able to achieve this through AJAX.
Is there any way i can create circular pie chart instead of regular pie or a dougnut pie inside a doughnut pie main intention of having it is,i would like to have 5 diff circles in a pie(assuming 5 circular layers with 5 diff colors,with green as outer circle beginning is life and ending with red as death),i would like to make a chart such that..i can display the particular technology is in particular stage...i need to point in the report.
is that possible with SSRS or anyway...asp.net reports or any other 3rd party controls...
I want to achieve 30 numeric 2 decimal point text box. how can I achive this
View 4 Repliesi have just found that i cant create postback triggers on the fly (i had a function that runs onclick that creates buttons and postback triggers)
so i need an alternative or a method to achieve this
what happens is onclick of a button, updatepanel1 is updateded and depending on what button you click in panel1 more buttons are added, these buttons that are added also have an oncllick event that should update a wysiwyg in panel2 with content
heres my code below, if anyone has any ideas or knows of other methods to get this to work it would be great
[Code]....
Here is scenario:
I have view with Telerik Grid. On selected row, I have to make WCF service, which inturn checks if record is locked or not. If record is not locked it will lock the record for the user and returns thr response. If record is already locked by some other user,
in response it will give info about locked user. Based on this if record is locked by current user, he/she can review the record. If record is locked by different user alert needs to be shown.
Based on my current implementation, Review action twice.
Current Implementation
I have HomeController and ManagerController. HomeController has Index action. Index view has grid. On Grid's RowSelect event, I call following script:
[Code]....
ManagerController Review Method is as follows:
[Code]....
I know problem is with my implentation. But I don't know how to resolve it. Can someone guide me and tell me how to avoid multiple POST ....
I am working on globalization project.We are supporting multilingual website.Based on country we have some product offers.If country is germany we don't have that offer.Now in german resource file we have resourcekey and it's value to nothing(no value).Now when we run website we are seeing that blank value.
Now I want to implement logic if metaresource key is empty just don't show on website.
For eg: I have link which gets to that offer and text to go that offer is wrapped in literal control.
[code]....
I have this key defined in resx file called abc.aspx.fr-FR.resx .
[code]....
How can I achieve functionality to stop rendering value if resource is empty.
I have the code below:
SqlConnection sqlConnection = new SqlConnection(selectedConnStr);
sqlConnection.Open();
SqlCommand sqlCommand = new SqlCommand("SELECT * FROM " + tableName, sqlConnection);
schema = sqlCommand.ExecuteReader(CommandBehavior.CloseConnection).GetSchemaTable();
Just want to know how can I get the foreign keys from schema?
I want to build my navigation so I can use it on multiple views. How do I do this? Nested views? Whats the best practice and show me a quick example?
View 1 Repliesam developing web application using csharp using visual studio 2005.I have the records that are being displayed on gridview. Now I want two columns to have a culumativetotals.How can I achieve this? data is as follows: How can I achieve Comulative totals as in Column 4.
View 2 RepliesWhat is the best way to use jQuery Templates with GridView to achieve similar functionality of an UpdatePanel, such as add/edit/delete data without PostBack?
View 2 RepliesI am trying to achieve a list view with this structure.I have many categories with many products
<table>
<tr>
<td colspan="3"><h2>Cat1</h2></td>[code]...
As you see the <td> for products must always be no more than 3 columns. but if there are 8 products then there will be 3 rows (2 full rows and one row with only 2 products) So far I have this:
<asp:ListView ID="lvProducts" runat="server">
<LayoutTemplate>
<table cellpadding="0" cellspacing="0" border="0" width="800"> [code]...
it doesn't work .
I want to show my html document like this- [URL] how can i achieve this functionality to show the large document page wise.Which editor i should use.
View 3 RepliesWe are developing SOA based application using .NET 3.5 and WCF & WPF.
One common issue we are facing is mapping between WCF enum and WPF enums. We had to do mapping between WCF enums to WPF enums. Following is sample code
Switch(WCFServiceObject.Status)
{
Case WCFServiceStatus.Married[code]....
You can see that we have to do mapping WPF and WCF enums. Is there any easiest way to achieve this mapping without writing tedious switch statements? One way of doing this is using Dictionary, but apart from this, is there any good way? We have lots of enums for which have to do mappings.