Click here to Skip to main content
15,892,809 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: asp.net Pin
Paddy Boyd10-Nov-08 2:13
Paddy Boyd10-Nov-08 2:13 
QuestionHow to display all logged users Pin
pradees4u5-Nov-08 19:51
pradees4u5-Nov-08 19:51 
AnswerRe: How to display all logged users PinPopular
Ashfield5-Nov-08 21:33
Ashfield5-Nov-08 21:33 
GeneralRe: How to display all logged users Pin
_AK_5-Nov-08 22:59
_AK_5-Nov-08 22:59 
JokeRe: How to display all logged users Pin
AprNgp5-Nov-08 23:44
AprNgp5-Nov-08 23:44 
QuestionSession expire when delete folder. Pin
Imran Khan Pathan5-Nov-08 19:11
Imran Khan Pathan5-Nov-08 19:11 
AnswerRe: Session expire when delete folder. Pin
Sandeep Akhare5-Nov-08 19:31
Sandeep Akhare5-Nov-08 19:31 
Questionconfuse and get error Data Type miss match to use of ms access data type currency and Numeric Decimal in asp.net Pin
sanjay305-Nov-08 18:39
sanjay305-Nov-08 18:39 
plese any one help me

Actualiy i doing search page for Wieght and price using ms access database in asp.net.

my problem is i assing For Weight numeric decimal data type of ms access.
When i fill my sql command in datalist it give error data type miss match.
and i take data type in asp.net decimal for numeric decimal data type of ms access.
my code folling way.

Deciml FromWieght;
Decimal ToWieght;

ToWieght =Convert.ToDecimal(txtToWeight.Text);
FromWieght = Convert.ToDecimal(txtfromWeight.Text);
if (FromWieght ==0 && ToWieght != 0)
{
cmd1 = new OleDbCommand("select * from DtlItem where CategoryID=@CategoryID and Wieght <='" + ToWieght + "' ", myAccessConnection);
}
else if (FromWieght != 0 && ToWieght == 0)
{
cmd1 = new OleDbCommand("select * from DtlItem where CategoryID=@CategoryID and Wieght >= '" + FromWieght + "'", myAccessConnection);
}
else if (FromWieght != 0 && ToWieght != 0)
{
cmd1 = new OleDbCommand("select * from DtlItem where CategoryID=@CategoryID and Wieght between '"+FromWieght +"' and '"+ ToWieght +"'", myAccessConnection);
}

int CatID = Convert.ToInt16(ViewState["CatID"]);
// cmd1.Parameters = CommandType.Text;
OleDbParameter Cat_ID = new OleDbParameter("@CategoryID", OleDbType.Integer);
Cat_ID.Value = CatID;
cmd1.Parameters.Add(Cat_ID);
OleDbDataAdapter adp = new OleDbDataAdapter(cmd1);

DataSet ds = new DataSet();
myAccessConnection.Open();

int x = Convert.ToInt32(Label1.Text);
adp.Fill(ds, x, 10, "MstCategory");
datalist.Datasource=ds.table[0];
QuestionDisable Copy/Paste in ASP.Net Login Control Pin
vkadam20065-Nov-08 18:07
vkadam20065-Nov-08 18:07 
AnswerRe: Disable Copy/Paste in ASP.Net Login Control Pin
Brij5-Nov-08 19:05
mentorBrij5-Nov-08 19:05 
QuestionInteractive whiteboard application help Pin
yesu prakash5-Nov-08 18:03
yesu prakash5-Nov-08 18:03 
Questionhow to select item in datalist Pin
sarang1215-Nov-08 17:56
sarang1215-Nov-08 17:56 
AnswerRe: how to select item in datalist Pin
eyeseetee5-Nov-08 21:41
eyeseetee5-Nov-08 21:41 
QuestionRe: how to select item in datalist Pin
sarang1215-Nov-08 21:58
sarang1215-Nov-08 21:58 
AnswerRe: how to select item in datalist Pin
eyeseetee5-Nov-08 22:41
eyeseetee5-Nov-08 22:41 
QuestionOpen other page on iFrame and complete login data .... Pin
Phoen255-Nov-08 14:41
Phoen255-Nov-08 14:41 
AnswerRe: Open other page on iFrame and complete login data .... Pin
Guffa5-Nov-08 15:01
Guffa5-Nov-08 15:01 
Questionhow to edit only a part of a webpage using asp.net Pin
dshenoy5-Nov-08 12:45
dshenoy5-Nov-08 12:45 
AnswerRe: how to edit only a part of a webpage using asp.net Pin
Kannan Ar5-Nov-08 17:25
professionalKannan Ar5-Nov-08 17:25 
QuestionProblems with MasterPage in VS 2008 Pin
Marcos Aguiar Jr5-Nov-08 8:41
Marcos Aguiar Jr5-Nov-08 8:41 
QuestionProgrammatically figuring out if a COM DLL is registered or not Pin
PareshDehadray15-Nov-08 6:18
PareshDehadray15-Nov-08 6:18 
QuestionBlank File download issue Pin
Steve Westbrook5-Nov-08 4:52
Steve Westbrook5-Nov-08 4:52 
AnswerRe: Blank File download issue Pin
Steve Westbrook6-Nov-08 3:27
Steve Westbrook6-Nov-08 3:27 
QuestionSharepoint Web Part refreshing problem Pin
nishantkainth5-Nov-08 3:16
nishantkainth5-Nov-08 3:16 
Questiondynamically adding rows in gridview Pin
Mogaambo5-Nov-08 1:23
Mogaambo5-Nov-08 1:23 

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.