Add Some Description Against Each Parameter
Oct 26, 2010I have written a function and want to add some description against each paratemeter it takes, how can i do this in vb.net?
[Code]....
I have written a function and want to add some description against each paratemeter it takes, how can i do this in vb.net?
[Code]....
<asp:FormView ID="FormView1" runat="server" DataKeyNames="productnum"
DataSourceID="EDS_Product">
<ItemTemplate>
<div class="ContentHead"><%# Eval("name") %></div><br />
<table border="0">
<tr><td style="vertical-align: top;">
<img src='images/big/<%# Eval("image") %>' border="0" alt='<%# Eval("name") %>' /></td>
<td style="vertical-align: top"><%# Eval("description") %>
<br /><br /><br /></td></tr></table>
<span class="price"><b>Your Price:</b> <%# Eval("price", "{0:c}")%><br /><span class="number"><b>Number:</b> <%# Eval("number") %>
</span><br /><a href='AddToCart.aspx?productnum=<%# Eval("productnum") %>'>
<span class="ProductListItem"><b>Add To Cart<b></font></span></a>
</ItemTemplate>
</asp:FormView
this is from the product details page and the description goes in a straight line always - i want to make the description a box and have lenght of 30 characters every line -- i want to modify the description not to be in a straight line
I have in my database the News Table which consist of => Id, Title, txt . I need to be able to get a description text from the whole text which exist in txt Field , but without any codes like <...> , just a pure text !! how can I do this?
View 3 Repliesi have the following two questions:-
1. let say i have a table for ITEMS including (item id,item description id (FK to the ITEM Description tabe), item price,etc) and have ITEM Description look up table having (item descriptionid,item description),.
so what is better to use the ITEM DESCRIPTION look up table and store the item description id in the items table
or
to directly store the item description "Not the id" in the item table.
2. I am working on an MVC web application using LINQ, now if i want to modify the SQL server tables which i have created for example modify some of the foreign key properties will the effect be directly reflected on any new inserted or deleted records or i have to create a new LINQ to SQL class?
How to replace cell value with their description. This is my grid
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" GridLines="None">
<HeaderContextMenu EnableAutoScroll="True">
</HeaderContextMenu>
<MasterTableView AutoGenerateColumns="False" DataKeyNames="OrderID" DataSourceID="SqlDataSource1">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32" HeaderText="OrderID"
ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID" SortExpression="CustomerID"
UniqueName="CustomerID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="OrderDate" DataType="System.DateTime" HeaderText="OrderDate"
SortExpression="OrderDate" UniqueName="OrderDate">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="RequiredDate" DataType="System.DateTime" HeaderText="RequiredDate"
SortExpression="RequiredDate" UniqueName="RequiredDate">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ShipName" HeaderText="ShipName" SortExpression="ShipName"
UniqueName="ShipName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ShipAddress" HeaderText="ShipAddress" SortExpression="ShipAddress"
UniqueName="ShipAddress">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ShipCity" HeaderText="ShipCity" SortExpression="ShipCity"
UniqueName="ShipCity">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ShipRegion" HeaderText="ShipRegion" SortExpression="ShipRegion"
UniqueName="ShipRegion">
</telerik:GridBoundColumn>
telerik:GridBoundColumn DataField="ShipPostalCode" HeaderText="ShipPostalCode" SortExpression="ShipPostalCode"
UniqueName="ShipPostalCode">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ShipCountry" HeaderText="ShipCountry" SortExpression="ShipCountry"
UniqueName="ShipCountry">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
This grid will load Orders table. How to replace CustomerID with CompanyName which is come from Customers table during run time?
i an sending the url with some inofmation say some thing like this:
"http://localhost:4622/Emp_ResumeResult.aspx?UId=109" now if any one types 110 in place of 109 the infomration of 110 is being displayed so how can i hide this information and how can in encript and decript this issue any url or code.
i am assigned to web part of some project.My duty is to create web form from xml.These xml comes from window part and tells which controls are include in my web form and their properties.My xml Format is like below.
<Object type="System.Windows.Forms.Form">
<Property name="Name">Form1</Property>
<Property name="Text">Option</Property>
[code]...
I need a brief description and concept that what is event mapping in Asp.Net?
If you have any useful link tell me. Write here if you know about this
Can anybody tell me the description about
"#region PageLoad"
which i absorbed in a code given to me....
I am migrating an ASP.NET Web Service toward WCF. The old Web Service endpoint had a nice extensive description page generated from the comment of the underlying class exposed as a service endpoint. In particular, all available web methods were listed.
Is there a way to emulate somehow this behavior with WCF? At least, how can I customize the HTML content of the WCF endpoint?
What is the best method to cache the following? I am creating an intranet web application template that will display the message, e.g., Good Morning, Justin Satyr! near the top of my master page header. Obviously, I will have to determine whether to show Morning, Afternoon or Evening. For clarity, my code is below:
string partOfDay;
var hours = DateTime.Now.Hour;
if (hours > 16)
{
partOfDay = "evening";
}
else if (hours > 11)
{
partOfDay = "afternoon";
}
else
{
partOfDay = "morning";
}
I do not want to re-determine this on each page load because that seems moderately redundant and because I have to poll a SQL server to retrieve the user's full name. What is the best way to cache this nformation? If I cache it for the length of the session, then if the user begins using the application at 11:00 AM and finishes at 3:00 PM, it will still say Good Morning. Is the best thing to do simply re-determine the M/A/E word each page load and cache the person's full name for the session? Or is there a better way?
I am facing the error: Connection refused, When i am browsing any web page on my local machine.I even tried to browse the web pages in my default web site, but facing the same error.My machine is having visual studio. net 2008 and 2005. the data base I am using is Sql server 2005.The OS is windows xp sp 3
View 1 Repliesi have a dropdownlist and i get the value from database and it's working good.. now i want to add description in the same drop down list..
View 5 RepliesI have created the folowing stored procedure and it is working fine... I have used OVER clause in the query written in the WITH block. Can some body provide description about working of OVER clause and why I need to use it with the ROW_NUMBER() function.
CREATE PROCEDURE SelectOrder
@PageIndex INT,
@PageSize INT
AS
BEGIN
WITH Order AS
(
SELECT ROW_NUMBER() OVER (ORDER BY OrderId DESC)
AS Row, *
FROM Orders
)
SELECT *
FROM Order
WHERE Row between (@PageIndex - 1) * @PageSize + 1 and @PageIndex*@PageSize
END
Not so much a "How to" of how to use the framework, but a good description of how the framework itself is put together?
web site? book? or just the source code? :-)
In ASP.NET you can set the Response.StatusCode to for example 404. Should the status line / description always be set? (to in this case "404 Page Not Found")
How do you get the description if you only have the code (404)? Is this somewhere in the framework or do you manually have to hardcode the descriptions?
I created one web user control with property named "ReadonlyField" with boolean datatype. I am able to use in my web pages and now i wanted to add a description to that property so that i dont need to explain each time to my team member what is that property's intention.
I got following snippet in c# but didnt find any equivalent in vb.net and also not sure whether it will work or not.
[Description("My Description")]
public int MyIntProperty
{
get {..}
set {..}
}
I want to know if there is way to change meta description on specific pages, but to keep the meta data from the master page for the pages where I haven't specified any info.
I am trying this approach:
[code]....
Which adds the description tag properly, but I want in same time to remove/disable the meta tag from the master page. Is that possible?
what is best tutorial to implement dynamic title, meta keywords and description in a mvc2 application.
View 1 RepliesI'm doing up a search engine & what i want to happen is to get the title and description from the page as in below:
[Code]....
And here is the code that gets the meta tags:
[Code]....
Just can't write the code to get the title & description to show on the search result page.
i develope the search engine project
how to bold search key word in description of result
How do you deal with images in the HTML Editor from the Ajax Toolkit? I didn't find a way to define the image directory or something to set a relative default path.
Since the Editor is normally in a different subdirectory than the content pages will be displayed afterwards.
Also, there is no option to include images somehow, no?
i set a value for decription column in my table of database.and now i want to show that for html.lablehow can i do it?
View 3 RepliesI have added a dropdown in a column of my gridview control and it is binded to a table. What I need is when the user selects an item from the dropdown, it updates the row with other info. They are selecting an item number and I need the item description and price to be filled in for two other columns in the row. How can I do this on an event?
View 4 RepliesWhere can I control right url address when the page is routed, using new routing feature in asp.net 4?
I tried to catch wrong url in the OnPreinit(), but the error is already thrown.
Error: The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. review the following URL and make sure that it is spelled correctly.