HI,
im using the microsoft application block before.. i would like to share the sample programs with you but emails in this site is automatically being removed..
for more info about microsoft app block:
http://www.codeproject .com/cs/database/MS_Application_ Blocks.asp
regards...
User Profile
Collapse
-
Hi,
you may try this sample code...
int[] intArray = new int[3];
intArray[0] = 3;
intArray[1] = 6;
intArray[2] = 9;
foreach (int i in intArray)
{
Response.Write( i.ToString());
}
regards!
=============...Leave a comment:
-
Hi
Me.Page.Registe rStartupScript( "anyname", "<script>window .close();</script>")
try that code
:)
regards!...Leave a comment:
-
Hi,
string w="hi how are you";
if (w.Length >0)
{
int p=w.LastIndexOf (" ") + 1;
Response.Write( w.Substring(p)) ;
}
:)
try that one now...
regards!...Leave a comment:
-
-
Hi...
mmmmm try this code...
//where controlName is defined as Control (as parameter)
<script language=""JScr ipt"">
try
{
window.focus();
document.body.f ocus();
if (document.all(" "" & controlName & """).tagNam e == 'SELECT')
{
document.all("" " & controlName...Leave a comment:
-
Hi,
Try this code...
DataSet1.Tables[0].Rows[0][fieldname];
regards,
ruel...Leave a comment:
-
Hi,
Try this code below... first drag and drop a button control in your webform. then copy paste this code below:
ok enjoy!!
private void Button1_Click(o bject sender, System.EventArg s e)
{
string txtInput = "ABCX123 DEFG111HIGK912" ;
string txt;
txt = "";
string c;
int P;
string o = "1234567890 ";
for (int i =...Leave a comment:
-
HI,
You dont have to write the "IF" or "SELECT CASE" code to test each selected value..
all you have to do is to set the Autopostback property of the dropdownlist1 equal to TRUE.... then put this code in the dropdownlist1 DropDownList1_S electedIndexCha nged handler:
private void DropDownList1_S electedIndexCha nged(object sender, System.EventArg s e)
{
this.DropDownLi st2.SelectedInd ex=this.DropDow nList1.Selected Index;...Leave a comment:
-
HI,
you can simply assign the value directly to the variable:
number = (int)comboBox.I tems[comboBox.Select edIndex].ToString()...Leave a comment:
-
HI,
I think you can control that in your select statement (query)...Leave a comment:
-
-
this might help you...tutorial on webservice:
http://www.w3schools.c om/webservices/default.asp...Leave a comment:
-
HI..
samples are here:
http://dotnetjunkies.c om/Tutorial/E169C6D4-D335-4D2B-AE3F-918EE3161815.dc ik...Leave a comment:
-
Hi...
http://dotnetjunkies.c om/Tutorial/E169C6D4-D335-4D2B-AE3F-918EE3161815.dc ik...Leave a comment:
-
HI...
To bind a datalist is same as binding a datasource in datagrid....
Me.DataList1.Da taSource = contDs
Me.DataList1.Da taBind()
First, you have to edit the template by right clicking the dataitem control..
select the Item Templates and add a label control (for example)
select the label control and open its property.. go to databindings
select the custom binding expression....Leave a comment:
-
-
Hi!
try this....
qry = "Insert into usertable (username,passw ord,Personname) "
qry &= "values ("
qry &= "'" & txtUsername.Tex t & "','" & txtPassword.Tex t & "','" & txtPersonname.T ext & "')"
=============== =============== =============== =========...Leave a comment:
-
Hi,
try to drag and drop a sqldatasource in you webform and then do the wizards of connecting to the datasource...
copy the connection string once you're done.
regards,
ruel...Leave a comment:
-
Hi,
to close a windows application... all you have to do is to use the code below.
Me.Close()...Leave a comment:
No activity results to display
Show More
Leave a comment: