Click here to Skip to main content
15,919,245 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: SiteMapDataSource Pin
shapper25-Sep-06 11:12
shapper25-Sep-06 11:12 
AnswerRe: SiteMapDataSource Pin
Bishoy Labib25-Sep-06 9:12
Bishoy Labib25-Sep-06 9:12 
GeneralRe: SiteMapDataSource Pin
shapper25-Sep-06 13:18
shapper25-Sep-06 13:18 
GeneralRe: SiteMapDataSource Pin
Bishoy Labib26-Sep-06 12:48
Bishoy Labib26-Sep-06 12:48 
GeneralRe: SiteMapDataSource Pin
Bishoy Labib29-Sep-06 14:03
Bishoy Labib29-Sep-06 14:03 
Questionconverting auto generation code from vb.net to c#.net Pin
pranavcool25-Sep-06 4:56
pranavcool25-Sep-06 4:56 
AnswerRe: converting auto generation code from vb.net to c#.net Pin
Meax25-Sep-06 5:04
Meax25-Sep-06 5:04 
AnswerRe: converting auto generation code from vb.net to c#.net Pin
Dave Doknjas25-Sep-06 15:59
Dave Doknjas25-Sep-06 15:59 
The following was produced with our Instant C# VB to C# converter:

//TODO: INSTANT C# TODO TASK: Insert the following converted event handlers at the end of the 'InitializeComponent' method for forms or into a constructor for other classes:
btnadd.Click += new System.EventHandler(btnadd_Click);

private void btnadd_Click(object sender, System.EventArgs e)
{

// Following is the code for auto generating the costomer id

int ctr = 0;
int len = 0;
string custid = null;
string custidval = null;

dt = Dscust1.Tables["customertracking"];
len = (dt.Rows.Count - 1);
dr = dt.Rows[len];
custid = dr("custid");
custidval = custid.Substring(1, 3);
ctr = System.Convert.ToInt32(custidval);

if (ctr >= 1 & ctr < 9)
{
ctr = ctr + 1;
txtcustid.Text = "c00" + ctr;
}
else if (ctr >= 9 & ctr < 99)
{
ctr = ctr + 1;
txtcustid.Text = "c0" + ctr;
}
else if (ctr >= 99)
{
ctr = ctr + 1;
txtcustid.Text = "c" + ctr;
}

txtcustid.Enabled = false;

}


David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter, VB to C++ converter
Instant Python: VB to Python converter

Questionajax method to load another control Pin
max_dev2006@yahoo.com25-Sep-06 4:48
max_dev2006@yahoo.com25-Sep-06 4:48 
QuestionSerial ports in vb.net 1.1 asp.net Pin
amaneet25-Sep-06 4:42
amaneet25-Sep-06 4:42 
QuestionSingleton Classes Pin
robert11025-Sep-06 4:14
robert11025-Sep-06 4:14 
AnswerRe: Singleton Classes Pin
CWIZO25-Sep-06 4:24
CWIZO25-Sep-06 4:24 
GeneralRe: Singleton Classes Pin
robert11025-Sep-06 4:28
robert11025-Sep-06 4:28 
AnswerRe: Singleton Classes Pin
CWIZO25-Sep-06 4:36
CWIZO25-Sep-06 4:36 
GeneralRe: Singleton Classes Pin
eggsovereasy25-Sep-06 9:11
eggsovereasy25-Sep-06 9:11 
QuestionSmartNav.htm Pin
DanB198325-Sep-06 4:07
DanB198325-Sep-06 4:07 
QuestionProblem deploying a web service Pin
RossWinds25-Sep-06 3:50
RossWinds25-Sep-06 3:50 
Questionhow t o convert byte to float Pin
sunita ramesh25-Sep-06 2:37
sunita ramesh25-Sep-06 2:37 
QuestionProblem with datagrid fixed column Pin
Kanjinghat25-Sep-06 2:35
Kanjinghat25-Sep-06 2:35 
AnswerRe: Problem with datagrid fixed column Pin
leckey25-Sep-06 15:54
leckey25-Sep-06 15:54 
GeneralRe: Problem with datagrid fixed column Pin
Kanjinghat25-Sep-06 20:25
Kanjinghat25-Sep-06 20:25 
AnswerRe: Problem with datagrid fixed column Pin
Khawar Abbas125-Sep-06 17:41
Khawar Abbas125-Sep-06 17:41 
GeneralRe: Problem with datagrid fixed column Pin
Kanjinghat25-Sep-06 20:28
Kanjinghat25-Sep-06 20:28 
AnswerRe: Problem with datagrid fixed column Pin
Kanjinghat25-Sep-06 21:50
Kanjinghat25-Sep-06 21:50 
Questionget the difference between two dates Pin
abdelhameed8125-Sep-06 1:51
abdelhameed8125-Sep-06 1:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.