tag:blogger.com,1999:blog-30028301391120357232024-02-08T20:25:50.928+05:30Asp.Net-Csharp,Asp,Ado.Net,Ado,Micosoft,Visualstudio,Visual webguisanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-3002830139112035723.post-63692435428931776532010-02-03T15:17:00.000+05:302010-02-03T15:19:22.266+05:30what is localization and globalization in asp.net<span style="font-weight:bold;">what is localization and globalization in asp.net</span><br /><br />Globalization is the process of designing and developing applications that function for multiple cultures. Localization is the process of customizing your application for a given culture and locale.<br /><br /><span style="font-weight:bold;">Create a Multi-Lingual Site with Localization and Globalization in asp.net</span><br /><br />Clear example in video: http://www.asp.net/%28S%28ywiyuluxr3qb2dfva1z5lgeg%29%29/learn/videos/video-40.aspx<br /><br /><span style="font-weight:bold;">Create a Multi-Lingual in windows form application c#,winforms,c .net</span><br /><br />Clear example step by step: http://msdn.microsoft.com/en-us/library/y99d1cd3(VS.80).aspxsanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-28839264423115659152009-12-11T18:39:00.000+05:302009-12-11T18:40:26.642+05:30Overview and example for Datatable in asp.net<span style="font-weight:bold;">Overview and example for Datatable in asp.net:</span><br /><br /><br /><span style="font-style:italic;">MEthod 1:<br /><br /><br />DataTable cTable = new DataTable();<br />DataRow d3;<br /><br />cTable.Columns.Add("A", typeof(string));<br />cTable.Columns.Add("B", typeof(string));<br />cTable.Columns.Add("C", typeof(string));<br /><br />d3 = cTable.NewRow();<br />d3[0] = "A:"; <br />d3[1] = B;<br />d3[2] = "C";<br /><br />cTable.Rows.Add(d3);<br /><br /><br />Method 2:<br /><br />DataTable dtProducts = new DataTable();<br />DataColumn productColumn = new DataColumn();<br /><br />productColumn.DataType = System.Type.GetType("System.Int32");<br />productColumn.ColumnName = "id"; <br />productColumn.Unique = true;<br />dtProducts.Columns.Add(productColumn);<br /><br /><br /> DataTable dtProducts = createProductDT();<br /><br />DataRow aProduct = dtProducts.NewRow();<br /><br />aProduct["id"] = 11;<br />aProduct["thumb"] = "images/widget0.jpg";<br />aProduct["name"] = "Red Widget";<br />aProduct["price"] = 19.99; <br />dtProducts.Rows.Add(aProduct);</span>sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-25309982942734793202009-12-09T16:36:00.002+05:302009-12-09T16:39:58.176+05:30Types,Modes,Differences of session in asp.net<span style="font-weight:bold;">Overview of session modes and types in asp.net:</span><br /><br />Normally http protocol is stateless to maintain state following namespace is used.<br /><br />System.Web.SessionState.HttpSessionState<br /><br /><span style="font-weight:bold;">Modes And's Provider:</span><br /><br />Session State Mode State Provider<br /><br />InProc In-Memory Object<br />StateServer Aspnet_state.exe<br />SQLServer DataBase<br />Custom CustomProvider<br /><br /><span style="font-weight:bold;">Session Event's: </span><br /><br />There are two types of session events available in asp.net <br /><br /> * Session_Start <br /> * Session_End <br /><br /><br /><span style="font-weight:bold;">Types:</span><br /><br />1.inproc Mode (ie inprocess)--->Its availble inside the webserver itself not ouside the application.<br />2.StateserverMode(ie out process) -->Its availble outside the webserver,not inside the application.<br />3.sqlserver Mode -->To store session datas in sqlserver.AND DATAS CAN BE SHARED BETWEEN OTHE APPLICATIONS.<br />4.Custom Mode --> To create a manual session id's.<br /><br /><br /><br /><span style="font-weight:bold;">1.inproc Mode </span><br /><br />Advantages :<br /><br /> * It store Session data in memory object of current application domain. So accessing data is very fast and data is <br /><br />easily available.<br />*Datas not alive when application restarted.<br /> * There is not requirements of serialization to store data in InProc Session Mode.<br /> * Implementation is very easy, just similar to using View State.<br /><br />DisAdvantage:<br /><br />If the worker Process or application domain recycles all session data will be lost. <br /><br /><br /><span style="font-weight:bold;">2.StateserverMode</span><br /><br />This session state is totally managed by aspnet_state.exe.<br /><br />This approaches has several disadvantages due to the overhead of serialization and de-serialization.<br /><br />Datas will be alive it the aspnet services restarted also.<br /><br /><br /><span style="font-weight:bold;">3.sqlserver Mode</span><br /><br />The most easiest way to configure SQL Server, is using aspnet_regsql command. <br /><br /><span style="font-weight:bold;">4.Custom Mode</span> --> To create a manual session id's.sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-53973249419950445132009-11-26T11:50:00.004+05:302009-11-26T11:59:42.187+05:30Find client and server ip address in asp.net,C#.<span style="font-weight:bold;">Find client and server ip address in asp.net,C#.<span style="font-style:italic;"></span></span><br /><span style="font-weight:bold;"><br />To get Server IP Address and Name(ie)where your domain hosted in an server:</span><br /><br /><span style="font-style:italic;"> 1. string strHostName = System.Net.Dns.GetHostName();<br /> 2. string clientIPAddress = System.Net.Dns.GetHostAddresses(strHostName).GetValue(0).ToString();</span><br /><br /><span style="font-weight:bold;">To get Client IP address ie system current IP address:</span><br /><br /><span style="font-style:italic;">1.Response.Write(Request.ServerVariables["http_user_agent"].ToString());<br /><br />Your IP address is:<br />2.Response.Write(Request.ServerVariables["remote_addr"].ToString());<br /><br />The DNS lookup of the IP address is:<br />3.Response.Write(Request.ServerVariables["remote_host"].ToString());<br /><br />The method used to call the page:<br />4.Response.Write(Request.ServerVariables["request_method"].ToString());<br /><br />The server's domain name:<br />5.Response.Write(Request.ServerVariables["server_name"].ToString());<br /><br />The server's port:<br />6.Response.Write(Request.ServerVariables["server_port"].ToString());<br /><br />The server's software:<br />7.Response.Write(Request.ServerVariables["server_software"].ToString()); <br /><br /></span>sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com1tag:blogger.com,1999:blog-3002830139112035723.post-47371990666999033282009-11-22T17:00:00.001+05:302009-11-22T17:04:28.107+05:30Download application or word or doc or pdf code in asp.net,c#<span style="font-style:italic;">Download application or word or doc or pdf code in asp.net,c#</span><br /><span style="font-weight:bold;">if (Page.IsPostBack){<br /> <br /> Response.ContentType="application/ms-word";<br /> Response.AddHeader( "content-disposition","attachment; filename=RegistrationFormDownload.pdf");<br /> //Source from server <br /> FileStream sourceFile = new FileStream(@"c:\inetpub\vhosts\www.com\httpdocs\Form.pdf", System.IO.FileMode.Open,System.IO.FileAccess.Read, System.IO.FileShare.Read );<br /> //Source from Local system <br /> FileStream sourceFile = new FileStream(@"system file path", System.IO.FileMode.Open,System.IO.FileAccess.Read, System.IO.FileShare.Read );<br /> long FileSize;<br /> FileSize = sourceFile.Length;<br /> byte[] getContent = new byte[(int)FileSize];<br /> sourceFile.Read(getContent, 0, (int)sourceFile.Length);<br /> sourceFile.Close();<br /><br /> Response.BinaryWrite(getContent);<br /> }<br /></span>sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-83608090451062514612009-11-21T12:26:00.003+05:302009-11-21T12:34:39.967+05:30Differences::::Div vs span vs iframe<span style="font-weight:bold;">Differences::::Div vs span vs iframe</span>
<br />
<br />Blogger wont allow HTML content you can get full article which is given below from this link.You can download it.. http://www.4shared.com/file/156448190/930b924a/div_vs_frame_vs_span.html
<br />
<br />
<br />DIV is short for "division" because it divides elements.
<br />
<br />span is inline, div a block.span is permitted in a div, but not div in a span.
<br />
<br />The main difference is that span element is in-line and usually used for a small chunk of in-line HTML whereas a div (division) element is block-line (which is basically equivalent to having a line-break before and after it) and used to group larger chunks of code.
<br />
<br /><div> is a block level element -- it's going to 100% width, and it will line break - and is best used for structure (stands for 'division' -- semantic markup here!)
<br /><span> is inline, it can go next to other elements and is best used for text editing... adding rules to special text in a paragraph, hiding text (like navigation), etc.
<br />
<br />Eg;;
<br /><span style="font-weight:bold;">
<br /><html><head>The div tag has forced a line break.<div>The div tag will force a line break. </div>The div tag has forced a line break.<span>The span tag does not force a line break. </span>There is no line break. </body></html><span style="font-style:italic;"></span></span>
<br /><span style="font-weight:bold;">
<br />Reference to div tag properties:::: http://www.searchwin.net/spandiv.htm</span>
<br />
<br />IFrame and Div are HTML tags. They are only for the layout purposes. Using IFrame, you can view another html file in your main html.
<br />Div is used to display contents in a html page. You can put some text,image, and/or combination to display in a div.
<br />
<br />An iframe is like having a hole on your page, and in that hole is another web page. If that page is clicked ONLY that page will refresh so that the rest of the site appears to stay in the same place. It's not valid HTML and is therefore not encouraged because browsers can interpret iframes however they want. An iframe is only a container and the page that goes inside it still needs to be written as usual.
<br />
<br /><span style="font-style:italic;"><span style="font-weight:bold;">To get small idea to get what is div tag</span>
<br />
<br /> #framearea {
<br /> width: 550px;
<br /> height: 150px;
<br /> margin-bottom: 10px;
<br /> }
<br /> .framebody {
<br /> overflow: auto;
<br /> width: 550px;
<br /> height: 150px;
<br /> }
<br /> <div id="framearea">
<br /> <div class="framebody"> ...content here... </div>
<br /> </div>
<br />
<br /><span style="font-weight:bold;">Using a DIV as variable to write into IFRAME</span><span style="font-weight:bold;"></span></span>
<br />
<br />http://www.devarticles.com/c/a/HTML/The-power-of-DIV-with-IFRAME/sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-30084058449582873282009-11-14T13:15:00.001+05:302009-11-14T13:20:16.996+05:30Installing windows Azure ,Installing windows Azure SDK7<br /><br />Prerequist:2<br />IIS 7.0 has to be configured in Vista.8<br />ASP.NET Application Development components installed.2<br /><br />WPIlauncher install(Microsoft Web Platform Installer 2.0 Beta)4<br /><br />Click on the Web Platform tab and customize the Web Server option with: <br />ASP.Net, Default Document and CGI (if you want to run fastCGI apps)<br /><br />Click “Install” when you are ready. You’ll get an opportunity to review your selection, <br />then the download and install will commence.<br /><br />Finally, if you are using WCF, you will want to install WCF HTTP Activation. (this is a .Net feature) <br /><br />On Vista: From the Start menu, choose Settings | Control Panel | Programs | Programs and Features,<br /> Click Turn “windows Features On or Off”, under Microsoft .Net Framework 3.0, select WCF HTTP Activation<br /><br />On Windows Server 2008 – In Server Manager under Features Summary, choose Add Features – under .Net Framework 3.0 Features, select WCF Activation.<br /><br />Install the Windows Azure Tools<br /><br />http://www.microsoft.com/downloads/details.aspx?FamilyID=8d75d4f7-77a4-4adf-bce8-1b10608574bb&displaylang=ensanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-8491935729406834802009-11-14T13:08:00.001+05:302009-11-14T13:15:53.291+05:30What is Localization,Resource,resx in asp.net,C#.<span style="font-style:italic;">Please refer the following sites to get idea about What is Localization,Resource,resx in asp.net,C#.<span style="font-style:italic;"></span></span><br /><br /><span style="font-weight:bold;"><br />http://www.c-sharpcorner.com/UploadFile/prasham/RESOURCEFILES02132008080733AM/RESOURCEFILES.aspx(About Resource file .resx)<br /><br />http://www.codeproject.com/KB/aspnet/LocalizationPackage.aspx(about localize)<br /><br />http://www.west-wind.com/presentations/wwDbResourceProvider/introtolocalization.aspx(Example for localize and resource file)</span>sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-89070663294398630382009-11-14T13:00:00.002+05:302009-11-14T13:08:14.612+05:30To retrieve table data using table column in asp.net,C#<span style="font-weight:bold;"> SqlDataReader rdr = null;<br /> SqlConnection sqlcon = new SqlConnection("Server=___;Initial Catalog=____;Integrated security=true");<br /> sqlcon.Open(); <br /><br /> SqlCommand cmd1 = new SqlCommand("select * from ____;", sqlcon);<br /> rdr = cmd1.ExecuteReader();<br /> while (rdr.Read())<br /> {<br /><span style="font-style:italic;"> <span style="font-weight:bold;"> string ___ = rdr.GetString(rdr.GetOrdinal("column name"));<br /> string ___ = rdr.GetString(rdr.GetOrdinal("column name"));</span></span><br /> }<br /> sqlcon.Close();</span>sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-30250882538561703452009-11-14T12:59:00.001+05:302009-11-14T13:00:51.998+05:30Substring in asp.net,c#<span style="font-weight:bold;">To find the last character in a string</span><br />string lastCharacter = myString.Substring(myString.Length - 1, 1);<br />//i.e. the last character is a SubString of myString, one character long, starting one character short of the length of myString<br /><br /><span style="font-weight:bold;">To remove the last two characters of a string</span><br />string myNewString = myString.Substring(0, myString.Length - 2);<br />//i.e. the new string is a SubString 2 characters shorter than myString, starting at the beginning of myStringsanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-4281756904431571552009-10-27T22:49:00.003+05:302009-11-14T12:53:42.442+05:30Difference between Repeater , Datalist, DataGrid(or GridView)<span style="font-weight:bold;">Difference between Repeater , Datalist, DataGrid(or GridView) </span><br /><br /><br /><br />Repeater :<br /><br /> It contains Header Template, Item template , alternate<br />Item template and footer template . it can't support<br />Selection, editing, sorting and paging. this is read only<br />and fast.<br /><br /><br />Datalist :<br /> <br /> It contains Header Template, Item template , alternate<br />Item template , Edit itm template and footer template . it<br />can't support sorting and paging but support selection and<br />editing<br /><br /><br />DataGrid(or GridView) :<br /><br />It contains Header Template, Item template , alternate Item<br />template , Edit itm template and footer template . it can<br />support selection, editing , sorting and paging . Mostly<br />every developer caught used this control.<br /><br />http://forums.asp.net/p/1072020/2217049.aspx<br /><br /><span style="font-weight:bold;">Datagrid vs Gridview</span><br /><br />In datagrid you cannot set a permisiion level........<br /><br />In gridview you can do the access level............<br /><br />GridView is a composite data-bound control and shares a common set of methods and properties with all other data-bound controls, including DropDownList, DetailsView, and ListBox.<br /><br />GridView can render on mobile devices.<br /><br />Grid view Control take care automatically deletes or updates records from the datasource.sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-36179189910390839572009-10-25T11:53:00.003+05:302009-10-25T11:58:21.542+05:30Gridview Rowdatabound.<span style="font-weight:bold;">Gridview Rowdatabound:<br /><br />DataKeyNames="id" OnRowDataBound="GridView1_RowDataBound"<br /><br /> protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)<br /><br /> if (e.Row.RowType == DataControlRowType.Pager)<br /> {<br /> e.Row.Cells[1].Text = "RS. " + e.Row.Cells[1].Text;<br /> }<br /> <br /><br /> </span>sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-58712823207967366762009-10-22T15:31:00.002+05:302009-11-22T17:18:29.291+05:30sql connection string in asp.net<span style="font-weight:bold;">Connetion string used for mssql server which is installed in you server.</span><br /><br />SqlConnection sqlcon = new SqlConnection("data source=localhost;Initial Catalog= ur database name; User Id=XXX; Password=XXX");<br /><br /><span style="font-weight:bold;">Connetion string used for mssql server which is installed in you system(ie .sql<br />server management studio express)</span><br /><br />SqlConnection sqlcon = new SqlConnection("Server=.\\SQLExpress;Initial Catalog=ur database name; User Id=XXX; Password=XXX; Integrated security=true");sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-5991326145564913332009-10-22T15:27:00.003+05:302009-11-22T17:20:04.301+05:30Calendar Control in Asp.net.<span style="font-weight:bold;">Calendar Control:</span><br /><br /><asp:Calendar ID="Calendar1" runat="server"></asp:Calendar><br /><br /><span style="font-weight:bold;">TO get calendar selected value to textbox:</span><br /><br />this.shippeddate.Text = Calendar1.SelectedDate.ToShortDateString();<br />Calendar1.Visible = false;sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-88565035667403680622009-10-22T15:18:00.003+05:302009-10-22T15:26:10.216+05:30Validation control in asp.net<span style="font-weight:bold;">RegularExpressionValidator-To accept only numbers</span>
<br />
<br /><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="orderid" ErrorMessage="Enter Only Numbers" <span style="font-weight:bold;">ValidationExpression="[0-9]*"</span>></asp:RegularExpressionValidator>
<br />
<br /><span style="font-weight:bold;">RegularExpressionValidator-To accept only characters not numbers.</span>
<br />
<br /><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="orderid" ErrorMessage="Enter Only Numbers" <span style="font-weight:bold;">ValidationExpression="[a-z]*[A-Z]*"</span>></asp:RegularExpressionValidator>
<br />
<br /><span style="font-weight:bold;">RegularExpressionValidator- Expression to get minimum value and maximum value from the user</span>
<br />
<br /><asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="customerid" ErrorMessage="Value should be >1 <7" <span style="font-weight:bold;">ValidationExpression="^([\S\s]{1,7})$"</span>></asp:RegularExpressionValidator>sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-26897664768246753252009-10-12T11:21:00.005+05:302009-10-12T12:00:50.033+05:30SilverLight 3.0 Features.<span style="font-weight:bold;">Silverlight 3.0 Features:</span><br /><br />1.SLOOB(SilverLight out of browser).<br /><br />Its like a java Applet(Application embedded into browser).but in silverlight we can get that application out of browser and we can use it and access/modify it.After finishing your work you can update it.<br /><br />We can download that Apllication into your local system by the following ways,<br /><br />A, Context Menu(By right clicking the app in the browser u can install it in your local system. <br /><br />B, By the Button click event(Here you can write your program for the installation of Browser App).<br /><br />There are two main events (Trigger and Network Event)<br /><br />Network Event:<br /><br />When you are working in your App(online) if suddenly your connection disconnected it will gives status as its disconnected its done through coding.<br /><br />Trigger Event:<br /><br />When you are working in your App(offline) you can update ur app at anytime from the main app(online).By placing the button like install.<br /><br />SLOOB:<br /><br />The files or datas what you are working with offline app it wont affect your local system other drives such as c:,d:,etc.....It's mean SECURITY.<br /><br />It allot separate space for his work that place is ISOLATED STORAGE.<br /><br />Default size of isolated storage 25MB. But it can extended to what ever size(UNLIMITED).sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-48509208713588723652009-10-12T11:02:00.013+05:302009-12-02T18:05:08.606+05:30Difference between DotNet 1.0,2.0,3.0,4.0DotNet 1.0 = Managed code.<br />DotNet 2.0 = Generics,ADO.NET.<br />DotNet 3.0 = Linq(Language Integarated Query),Partial Methods, VAR Keyword.<br />DotNet 3.5 = WPF,WCF,ASP.NET AJAX.<br />DotNet 4.0 = Dyanamic Programming.<br /><br /><span style="font-weight:bold;">DotNet 1.0 Understand It:</span><br /><br />.Net managed code enjoy's benefits of CLR, which automatically checks for object scope and if it is not referenced by any object than it is removed from memory.<br /><br /><span style="font-weight:bold;">What is the difference between managed and unmanaged code?<span style="font-style:italic;"></span></span> <br /><br />Program written in any .net compatible language will go for<br />compilation for 2times.<br />In the first compilation of the program, the language<br />compiler will generate MSIL code which is the managed code. & <br /><br />the code generated after the second execution ie by the CLR<br />is called unmanaged code which is machine understandable and<br />not by the user.<br /><br /><span style="font-weight:bold;">What is MSIL code ? <span style="font-style:italic;"></span></span><br /><br />When the code is compiled, the compiler translates your code<br />into Microsoft intermediate language (MSIL). The common<br />language runtime includes a JIT compiler for converting this<br />MSIL then to native code.<br />MSIL contains metadata that is the key to cross language<br />interoperability. Since this metadata is standardized across<br />all .NET languages, a program written in one language can<br />understand the metadata and execute code, written in a<br />different language. MSIL includes instructions for loading,<br />storing, initializing, and calling methods on objects, as<br />well as instructions for arithmetic and logical operations,<br />control flow, direct memory access, exception handling, and<br />other operations.<br /><br /><span style="font-weight:bold;"><span style="font-weight:bold;">DotNet 2.0: Generics,ASP.NET-AJAX.<span style="font-style:italic;"></span></span></span><br /><br /><span style="font-weight:bold;">DotNet 3.0: Understand It:</span><br /><br />1.1-->Partial Methods(Refer:http://jalpesh.blogspot.com/2009/07/permanent-redirection-in-aspnet-40.html)<br /><br />1.2-->LINQ stands for Language-Integrated Query. This means we can use any relational or XML-specific features to our programming languages and runtime. It is a general approach query and provide facilities to the .NET Framework to access any kind of sources of information, not just relational or XML data. It's a Language-Integrated Query to indicate that query is an integrated feature of the developer's primary programming languages (for example, Visual C#, Visual Basic). Language-integrated query allows query expressions to benefit from the rich metadata, compile-time syntax checking, static typing and IntelliSense that was previously available only to imperative code.<br /><br />The format of the query is more or less simillar to that of SQL. The Select, From, Where clauses are also used here with the same meaning but in different style/location/position. Here is an example of a LINQ program.<br /><br />using System;<br />using System.Linq;<br /><br />class sample<br />{<br />static void Main()<br />{<br />int[] arrMarks = {78, 90, 56, 45, 89, 23, 67, 93};<br /><br />IEnumerable<int> Distinction = from m in arrMarks<br />where m > 70<br />orderby m<br />select m;<br /><br />foreach (int distMark in Distinction)<br />MessageBox.Show(distMark.ToString());<br />}<br />}<br /><br /><span style="font-weight:bold;">DotNet 3.5 Understand It:</span><br /><br /><span style="font-style:italic;">WPF = Windows Presentation Foundation.</span><br /><br />WPF is the latest in desktop app development in .Net. It features markup based layout much like asp.net. The markup language is XAML. It provides a new way to develop desktop applications keeping UI and logic separate.<br /><br /><span style="font-style:italic;">WCF = Window Communication Services</span><br /><br />WCF is used to communicate between different applications with stuff like services. It is much like web services, but is much more robust and configuration enabled. WCF web services can be configured to act like asmx webservices, or use json or something else. Anything that represents a service can benefit from WCF, such as web services, windows services etc.<br /><br /><span style="font-weight:bold;">DotNet 4.0: Dyanamic Progamming<span style="font-style:italic;"></span></span><br /><br />1.Named and Optional Parameters.(Refer:::http://jalpesh.blogspot.com/search/label/C%23.NET)<br />2.Integarated COM interop.<br />3.Co and Contra Variance(Used in interface and delegates).<br />4.Dyanamic Typed Objects.<br />5. Response.PermanentRedirect,Page.Keywords and Page.Description Properties for SEO<br />Refer(http://jalpesh.blogspot.com/2009/07/pagemetadescription-and.html)<br /><br />Example For Dyanamic Keyword:<br />http://jalpesh.blogspot.com/2009/11/c-40-dynamic-data-type-difference.htmlsanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com12tag:blogger.com,1999:blog-3002830139112035723.post-65686521001612690552009-10-08T16:47:00.004+05:302009-11-22T17:26:56.563+05:30free sms webservice to send sms using way2smshttp://www.aswinanand.com/sendsms.php(WEBSERVICE)<br /><br />By the above web service link any one can able to send free sms through ASP.Net code via way2sms.<br /><br /><span style="font-weight:bold;">Implementation of webservice in our code<span style="font-weight:bold;"></span></span>e:<br /><br /><br />Before using you should create way2sms account to use this webservice.<br /><br />Method to add webreference in visual studio:<br /><br />1.Rt click ur project and click AddWebReference and paste the above top link in it then it will produce xml code below and click ok.<br /><br />then follow/use the below code<br /><br />you can write below code in Button event for trial purpose..<br />com.aswinanand.www.SendSMS sms = new com.aswinanand.www.SendSMS();<br /> sms.sendSMSToMany("ur way2sms username","password","to number","message");sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com52tag:blogger.com,1999:blog-3002830139112035723.post-32412673010347690402009-08-24T13:43:00.002+05:302009-11-22T17:29:24.375+05:30Cookies-State,Session-State,Application-State,QueryStringQueryString:<br /><br />It's one of way to tranfer datas or values from one aspx page to another.Before knowing query string u should know GET method and POST method.<br />In Get method u can transfer a values but its limited about 256 characters and u can view it in the address bar example: www.abc.com/a.aspx?s=1<br />In post method its unlimited values transering so better choose POST method in a form tag.<br />From the address bar url we get values to the another page.<br /><br />Application State:<br /><br />It's one of way to tranfer datas or values from one aspx page to another.But the state or values in the memory were stayed till open -(to) close the application.Application in the sense for eg; Browsers. <br /><br />Cookies:<br /><br />It's one of way to tranfer datas or values from one aspx page to another.cookies means a small data ie key value pairs were stored in our local systems and it has been accessed by all other aspx pages.But its not good practice because some of systems ie browsers has not support the function of cookies.Because it were disabled.<br /><br />Session State:<br /><br />It's one of way to tranfer datas or values from one aspx page to another.When we talk about session there are many types.But basically means maintaning the state of the user. Example:when user logged into certain site for shopping till he log out the id for him is provided automatically intially..By that id we can track the user and maintain his state till logout.sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com2tag:blogger.com,1999:blog-3002830139112035723.post-63219191733529344032009-08-24T10:46:00.001+05:302009-09-06T10:30:54.148+05:30Mail Settings to send a mail in ASP.NETusing System.Net;<br />using System.Net.Mail;<br /><br />SmtpClient smtp = new SmtpClient();<br />MailMessage mail = new MailMessage();<br />mail.From = new MailAddress("XXX@gmail.com"); // this is your from mail id<br />smtp.Credentials = new NetworkCredential("URMAILID", "URPWD");<br />mail.To.Add("XXXr@gmail.com");<br />mail.Subject = "YourSubject";<br />mail.Body = "Mail Body";<br />mail.ReplyTo = mail.From;<br />mail.Sender = mail.From;<br />mail.IsBodyHtml = true;<br />smtp.Port = 587;<br />smtp.Host = "smtp.gmail.com";<br />smtp.EnableSsl = true;<br />try<br />{<br />smtp.Send(mail);<br />Response.Write("sucess");<br />}<br />catch (Exception ex)<br />{<br />//lblerror.Text = ex.Message;<br />}sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0tag:blogger.com,1999:blog-3002830139112035723.post-29366947334917047192009-08-24T10:35:00.000+05:302009-08-24T10:44:06.267+05:30What made me to create this blog!!!!!Hello Friends,<br /><br />Why iam created this blog mean i struggled a lot in the beginning of my career in the field of web development without knowing some basics things basically iam from ECE department.So i decided to give some of the basics needs to the freshers in web development in Dotnet Domain.sanyonhttp://www.blogger.com/profile/18366574606603436209noreply@blogger.com0