Web Forms :: Define Generic In One Line
Oct 8, 2010Define Generic in one line / I know that List<string>, Stack<string>, Queue<string>, Dictionary<string,string> & linkedList<string> alls are generic but i want to know its one Line
View 3 RepliesDefine Generic in one line / I know that List<string>, Stack<string>, Queue<string>, Dictionary<string,string> & linkedList<string> alls are generic but i want to know its one Line
View 3 RepliesI'm trying to create a validation layer that will contain methods to validate all my objects (in my Business Objects layer) .. but when I try to reference both the validation and business objects to each other I get a circular dependency error .. so I've decided to create a new layer (BLL) to validate the objects for me and I'll be able to reference both the validation and the object layers.
so I want to build some kind of class/interface -I don't know what fits more- to be like a generic type or a parent type that my method could accept it as a parameter and check for it's Name/ID property. Instead of defining a new method overload for each object type I have
Simplification
I am using a textbox to populate mySQL database. My problem is when I recall the text it displays without line brakes or line spacing, inserted in the input textbox. I have tried all the field types i.e. Text, Small, Medium Text and Chars. I have tried gridview, repeater and datalist all displaying continuous text without line brakes.
View 4 RepliesI have a gridview which i want to update line by line.Its for confirmed users.SO i have a list of users and they are confirmed by clicking the checkbox and updating the value in the database.But how can i find the checkbox on the gridview and get the value. Ive tried the following code but no joy
[Code]....
I am trying to read a multilined textBox line by line into a List<String> but with the code below the compiler says that "'System.Environment' does not contain a definition for 'Newline'
[Code]....
i have insert a text in a textbox with the textmode = multiline.. when i display out the data, i wan the data will be display with the break line. for example, my input is like that
18.0 million effective pixels
Auto lighting optimizer
Full HD video 1920 x 1080
the text is line by line. but when i display out the data i have inserted through textbox it cannot display line by line in the front page.
I'm trying to create a control out of a class I found, and one of the overridden functions is the following:
protected override void PerformDataBinding(IEnumerable data)
However, when I try to build the control I'm getting the error as shown in the subject. I've tried searching, and it seems the signature for the original function matches the one I have, and all other solutions I've seen uses the same signature.
What is the difference between generic and non-generic collection?
View 1 RepliesIf I have a text file like:
123, joe blow, USA
Where the first values represent:
USERID, NAME, COUNTRY
If my file has 5000 rows, could I update a particular row somehow using C#?
If I have a variable that contains text information (say taken from a textarea), how can I read the text content held in a string variable line by line?
The text entered in the text area will have (enter key) to separate the line.
I insert a text box, change the parameters to multi line and then pass the string to sql. Users insert comments etc, using line breaks, however because I just pass this as a string the line breaks are not there when they view the text box after input. Example: Here is a well formatted comment. as I typed in the text box today. Inserted in to sql as a string, returns this on select:
Here is a well formatted comment.as I typed in the text boxtoday. How do I insert the line breaks in the string from a textbox?
I am developing SMS portal in asp.net c# where people register & send sms.I M Using multiline asp:textbox for input message. i want to break line where user hit enter/new line in textbox. if there any textboxeditor which support only <br/>.
View 2 RepliesI m uploading a file and I want to read that file line by line. I have 200 users accessing that application at one time and I have more than 300 lines in a text file to read. If I do it in a normal code, it may crash. So, what are the ways to do this application? Web services or COM+. which is the better way? I dont want my application to crash at any point.
View 5 Replieshow do I loop through, line by line, the contexts from a textarea in asp.net?
streamreader and stream both don't accept a string.
I'm reading about URL routing at How to: Define Routes for Web Forms Applications and there's something in the example I don't understand. If you look at the example provided below,
routes.MapPageRoute("", "SalesReport/{locale}/{year}/{*queryvalues}", "~/sales.aspx");
I want to define a DataList in the code behind but i don't know how to do it.
I just just know how to do it in the ASP.NET:
Data Source DataList
<asp:AccessDataSource ID="adsExample" runat="server"
DataFile="~/MyDatabase.mdb"
SelectCommand="SELECT Best4.[Year], Countries.Flag, Countries.ENAME AS Champion FROM (Best4 INNER JOIN Champions ON Best4.CHID=Champions.CHID) INNER JOIN Countries ON Champions.CountryID=Countries.CountryID ORDER BY Best4.[Year];">
</asp:AccessDataSource>
DataList
<asp:DataList ID="DataList1" runat="server" DataSourceID="adsExample">..........
When i am running my Visual Web Developper, the result is a list of x numbers of three values:
1999 [an image (Canadian Flag)] Canada
2003 [an image (US Flag)] USA
2005 [an image (Indian Flag)] India
...
define the following styles in code behind, so that when applied to a 'Panel' control having id 'panel1' the hover and non-hover styles get applied?
[Code]....
what is the stack for a asp.net Web forms application?and why?
example for ASP.NET MVC there is an example:
http://codeclimber.net.nz/archive/2009/10/15/my-asp.net-mvc-stack-and-why-i-chosen-it.aspx
I have a function that sets the Theme for the page but I want to define this in a MasterPage for each page that uses that MasterPage. This seems like the most likely way to do this to me, am I doing something wrong?
Here is what I have:
[Code]....
If i copy this to an ASPX page it works but it doesn't seem to work at all in a MasterPage.
I have a page which is linked with masterpage.
In my masterpage i have already defined metakeywords and description. But for one of my page i would like to define metakeywords and description which will be for that page only.
The metakeywords and desciption defined in master page is for the website.
Where and How to define metakeywords and desciption for any page which doesn't have <head> tag as it is linked with masterpage.
This is my About.aspx page code :
<%@ Page Language="C#" MasterPageFile="~/MasterPages/OneColumn.master" AutoEventWireup="true"
Inherits="Web.AboutPage" CodeBehind="About.aspx.cs"
%>
<%@ Register TagPrefix="MyTag" TagName="Topic" Src="~/Modules/Topic.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
<nopCommerce:Topic ID="topicAbout" runat="server" TopicName="About">
</nopCommerce:Topic>
</asp:Content>
i want to create roles for my application.But i don't want to use the built in membership framework. what will be the procedure for that.(i have already created the roles using the built in membership framrwork).
and if i dont use the ASPNETDB.mdf database that what will be the necessary tables that i should create to define that..
I have a custom CRM package and I need to allow specific users have different layouts on selected screens. I do not want to support multiple software packages so I am thinking that I have some type of interface that allows a user to select what fields they want to input on a given screen. However, what is the easiest way to make this happen? I am thinking that I have some type of XML file that is read that a user can define.
View 1 RepliesI define Div in my page and I define background image for my page's Body
body
{
background:url(../image/BGheader21.png) ;
text-align:center;
}
now I want the Div that I define, doesn't have any background and it show Body's Background Image in below image imagin that flower is body's background image and div with red border is div that I define I want some thing like below image
How to navigate on compatible websites offline and synchronize when going back online. how to do it ?
View 2 Repliesin .vb file, in a class i have created a button control, assigned its ID, and other properties.
In code behind file of a aspx page i have created object of that class.Run the page and browser Button control is coming. Now i want to do something in its click event.
But i am confused how to define that one, since presently there is no any button control instantiated.It is getting instantiated at the runtime.So, how to define its click event or any other events ?