This blog is created so as to help young developers, to get through some difficult problems in ASP.Net, SQL Server, Javascript, jQuery and CSS.
Tuesday, September 30, 2008
Upcoming Microsoft Visual Studio 2010, Rosario
I came across the new version of the Visual Studio of Microsoft, the Visual Studio Team System (VSTS) 2010, code-named Rosario.
The VSTS 2010 is expected to be equipped with .Net framework 4.0, and jQuery.
Microsoft plans to focus on five areas: riding the next-generation platform wave, inspiring developer delight, powering breakthrough departmental applications, enabling emerging trends such as cloud computing, and the Application Lifecycle Management (ALM).
Additionally, Microsoft also announced that VSTS 2010 will provide a unified VSTS Development and Database product. Any customer with Visual Studio Team System 2008 Development Edition or Visual Studio Team System 2008 Database Edition and a service contract will be able to get a free upgrade to Visual Studio Team System 2008 Development Edition or Database Edition.
You can find more on : http://msdn.microsoft.com/en-us/vstudio/bb725993.aspx
-
ShriKrishna Bhardwaj , With ASP.Net, SQL Server, Javascript
Thursday, September 25, 2008
Calling Server-Side(ASP.Net) Method from Client-Side(Javascript)
.ASPX Code ...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test_ClientToServerPostback.aspx.cs"
Inherits="test_ClientToServerPostback" %>
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Calling Server-Side Method from Client-Side Javascript.title>
<script type="text/javascript">
function LookUp()
{
var lbl = document.getElementById("TextBox1");
CallServerMethod(lbl.value, "");
}
function ReturnedServerData(retValue)
{
document.getElementById("Label1").innerHTML = retValue;
}
script>
head>
<body>
<form id="form1" runat="server">
<div>
Try Writing : accept/reject <br/> and see the result.<br />
<asp:TextBox ID="TextBox1" runat="server">asp:TextBox><br />
<a href="#" onclick="LookUp();">ClickMea><br />
<br />
<asp:Label ID="Label1" runat="server">asp:Label>
div>
form>
body>
html>
===============================
.CS Code ...
using System;
using System.Web.UI;
public partial class test_ClientToServerPostback : System.Web.UI.Page, ICallbackEventHandler
{
protected String returnValue;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
String cbReference = Page.ClientScript.GetCallbackEventReference(this, "arg", "ReturnedServerData", "context");
String callbackScript = "function CallServerMethod(arg, context)" + "{ " + cbReference + ";}";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "CallServerMethod", callbackScript, true);
}
}
{
if (eventArgument.Trim() == String.Empty)
{
returnValue = "Sorry, please write somthing in textbox.";
}
else
{
if (eventArgument == "accept")
{
returnValue = "Congrats, for accepting!";
}
else if (eventArgument == "reject")
{
returnValue = "You have succesfully rejected !";
}
else
{
returnValue = "You have entered : " + eventArgument + ".";
}
}
}
{
return returnValue;
}
}
-
ShriKrishna Bhardwaj , With ASP.Net, SQL Server, Javascript
Tuesday, September 16, 2008
Populating Second DropDownList With Another DropDownList !
DropDownList2.DataValueField = dt.Columns["property_type"].ToString();
DropDownList2.DataTextField = dt.Columns["property_type"].ToString();
DropDownList2.DataBind();
-
ShriKrishna Bhardwaj , With ASP.Net, SQL Server, Javascript