|
thanks , it is a good recemended
|
|
|
|
|
thanks , it is a good recemended
|
|
|
|
|
First item of dropdownlost set text example "select item"
if (DropDownList1.SelectedIndex == 0) <br />
{<br />
}<br />
else<br />
{<br />
}
|
|
|
|
|
if i dont select dropdownlist my dropdownlist.selectedindex is already = 0
and what should i do
|
|
|
|
|
That is true in that case it will search only for the textbox value which is what you want isn't it?
Best Regards,
Apurva Kaushal
|
|
|
|
|
If you didn't pick any item from DropDownLost then search gonna be only from textbox parameter.
Note: set breakpoint in IF statement and by F11 look what's going on when u do not select any item from dropdownlist
|
|
|
|
|
when i started my ASP.NET project, it reported errors: assembly CrystalDecision
missing or something like that
how to resolve this problem
thanks
|
|
|
|
|
You need the Crystal reports stuff installed. It's missing the Crystal Decisions dll
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hello all,
I want install sql scripts, WebService, WebApplication, WindowsService with single installation. For i want to prepare a combined setup.
To prepare combined setup. how to implement this. is there any 3rd party softwares(freewares) are availbale?
plz tell me, will be appricated
regards
GV Ramana
|
|
|
|
|
You can add the setup and deployment project to your solution in Visual Studio. It might be a little extra work for some of this - You can create your own custom installers for anything that doesn't have built in support.
You can also look at InstallShield[^] itself, if that is your preference.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Hi all,
I am doing a website with asp.net and I would like to know how to get a particular field from a database.
After that the user log ins, I need to know if the user is a student or a teacher by checking the occupation that is saved in the table Userlogins in the Database. I tried to do something like the following but unfortunately it did not work
//ds is the typed Data Set
//UserloginsDataTable is the table where the occupation is saved
//Occupation is the name of the column
if(ds.UserloginsDataTable[0].Occupation.ToString().ToUpper() == "STUDENT")
{
}
Can anyone tell me if I am doing it right and if yes why isn't it working
Thanks a lot guys
|
|
|
|
|
alee15.10.88 wrote: I tried to do something like the following but unfortunately it did not work
alee15.10.88 wrote: Can anyone tell me if I am doing it right and if yes why isn't it working
What do you mean by "not working" what are the symptoms? Do you get a compiler error? A runtime error? What?
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Actually it's working... but it isn't logging on with any accounts i'm trying with. The underneath is the code I have in the button submit
string occupation = (UHandler.UserLogIns.Rows[0]["Occupation"].ToString().ToUpper());
if(occupation == "STUDENT")
{
Session["userID"] = txtUsername.Text;
Response.Redirect("UsersViewProfile.aspx");
}
The problem is that I do not have a row filter which returns that 1 particular row, so it's searching in the first row where the occupation of that row is Teacher.
Did you understand me now?
|
|
|
|
|
alee15.10.88 wrote: Actually it's working... but it isn't logging on with any accounts i'm trying with.
In other words it is not working due to a logic error.
alee15.10.88 wrote: The problem is that I do not have a row filter which returns that 1 particular row, so it's searching in the first row where the occupation of that row is Teacher.
Why are you returning so many rows? If you only need one row what are the rest for? Do you only need one column value as well?
If you do need all these rows why not search for the row that you want? (Or is that what you are really asking for?)
Sorry, I'm still not sure how to help you, but the answers to the questions above may help get to the answer.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
I'm sorry that I'm not explaining well. But actually that's what I want... to search that particular row by using a row filter. any idea?
|
|
|
|
|
i think if u write the table name u should not write the table[0];
u can write:
ds.tabel[0].row[1][2].tostring() == "student";
1 is the num of ur row and 2 is the num of ur column
|
|
|
|
|
//ds is the typed Data Set
//UserloginsDataTable is the table where the occupation is saved
//Occupation is the name of the column
try this one
if(ds.Tables["UserloginsDataTable"].Select("Occupation=Student").Length>0)
{
}
ds.Tables["UserloginsDataTable"].Select("Occupation=Student") will return a datarow array. and if the array length is<1 then ther are no records else records exixts.
hope this helps you.
Ramesh.Kanjinghat
|
|
|
|
|
Sir,
I want to know something about code behind file.
Thanks
amaneet brar
|
|
|
|
|
amaneet wrote: I want to know something about code behind file.
Okay, here's something: The code behind file is created automatically by Visual Studio when you create an ASPX page.
If this is not what you are looking for then you could, perhaps, ask a more specific question rather than make a vague declaration.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Hi,
Go through this link probably this will help you.
http://www.4guysfromrolla.com/webtech/100500-1.2.shtml
also search in google.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Sir,
I am displaying images in the image control in datalist .All the code is written in html.Now when i find that the image is portrait, the dimensions of image control is 100,100 and when i find the image is landscape the dimensions are 100,500.
Sir, The height and width of image control will also be mentioned in html file like Now the problem is i have to apply the conditions that when the image is portrait the height and width of image control is this.and when landscape it is this.
<item template="">
I want to apply the condition for every picture.When i find the picture is landscape ihe code should become
Please help me
Thanks and regards
Amaneet Brar
|
|
|
|
|
Hi..
I have used Full-Text Search in a stored procedure with English words whithout any problems..But when i use it with Arabic words it gives me THE Error:
Server: Msg 7619, Level 16, State 1, Procedure SearchProject, Line 19
Execution of a full-text operation failed. A clause of the query contained only ignored words.
The stored procedure :
CREATE PROCEDURE SearchProject
(
@SearchString nvarchar(500),
@CultureName nvarchar(50),
@HowManyResults int OUTPUT
)
AS
CREATE TABLE #SearchTable
(
FieldNO int,
ProjectNO int,
ProjectName nvarchar(200),
ProjectDescription nvarchar(1000),
ProjectImage nvarchar(1000),
CultureID int
)
INSERT INTO #SearchTable (FieldNO,ProjectNO,ProjectName,ProjectDescription,ProjectImage,CultureID)
SELECT P.FieldNO, PL.ProjectNO,PL.ProjectName,PL.ProjectDescription,P.ProjectImage,PL.CultureID
FROM FREETEXTTABLE(Project_Locale,*,@SearchString) AS FT JOIN Project_Locale AS PL ON FT.[KEY]=PL.ProjectCultureID
JOIN Project AS P ON P.ProjectNO=PL.ProjectNO
WHERE PL.CultureID=dbo.GetCultureID(@CultureName)
INSERT INTO #SearchTable (FieldNO,ProjectNO,ProjectName,ProjectDescription,ProjectImage,CultureID)
SELECT P.FieldNO, PL.ProjectNO,PL.ProjectName,PL.ProjectDescription,P.ProjectImage,PL.CultureID
FROM Project_Locale AS PL ,Project AS P,
ProjectField_Locale AS FL,
FREETEXTTABLE(ProjectField_Locale,*,@SearchString) AS FT2
WHERE FL.FieldNO=P.FieldNO
AND FL.FieldCultureID=FT2.[KEY]
AND PL.ProjectNO=P.ProjectNO
AND PL.CultureID=dbo.GetCultureID(@CultureName)
AND FL.CultureID=dbo.GetCultureID(@CultureName)
INSERT INTO #SearchTable (FieldNO,ProjectNO,ProjectName,ProjectDescription,ProjectImage,CultureID)
SELECT P.FieldNO, PL.ProjectNO,PL.ProjectName,PL.ProjectDescription,P.ProjectImage,PL.CultureID
FROM Project_Locale AS PL ,Project AS P,
Feature_Locale AS PFEA,
ProjectFeature AS FP,
Feature AS F,
FREETEXTTABLE(Feature_Locale,*,@SearchString) AS FT3
WHERE FT3.[KEY]=PFEA.FeatureCultureID
AND FP.ProjectNO=P.ProjectNO
AND FP.FeatureNO=PFEA.FeatureNO
AND PL.ProjectNO=P.ProjectNO
AND F.FeatureNO=PFEA.FeatureNO
AND PFEA.CultureID=dbo.GetCultureID(@CultureName)
AND PL.CultureID=dbo.GetCultureID(@CultureName)
SELECT @HowManyResults=COUNT(DISTINCT ProjectNO) FROM #SearchTable
SELECT DISTINCT * FROM #SearchTable
RETURN
GO
I called the stored procedure using the following(in the Query Analayzer) :
USE nabeel1eagle
DECLARE @HowManyResults int
EXEC SearchProject 'ملفات','ar-SA',@HowManyResults OUTPUT
but when I use the previous code directly(without calling the stored procedure using EXEC) in the Query Analyzer it works fine.Like the following (part of the code)code:
SELECT P.FieldNO, PL.ProjectNO,PL.ProjectName,PL.ProjectDescription,P.ProjectImage,PL.CultureID
FROM FREETEXTTABLE(Project_Locale,*,'ملفات') AS FT JOIN Project_Locale AS PL ON FT.[KEY]=PL.ProjectCultureID
JOIN Project AS P ON P.ProjectNO=PL.ProjectNO
WHERE PL.CultureID=dbo.GetCultureID('ar-SA')
Could any one help and tell me how to solve this problem?
"I am too late but i will never give up"
|
|
|
|
|
I want to see datagrid demo on latest realesed VS2005 or Asp.net. If any body have reply me.
|
|
|
|
|
Get the sample code from the site[^], then run in VS 2005. The ASP.NET 2.0 with VS 2005 supports backward compatibility, so if you have the sample code with datagrid running on the ASP.NET 1.x, then it should be working fine with the version 2.0. Or do you mean the GridView[^] control which is the successor of the datagrid control.
|
|
|
|
|
I have created a new WebControlLibrary. What i would like is to create a mouse hover event on the control but i have no idea how to achieve this behaviour. Is it possible to create mouse events on a custom control and how would it be done ?
|
|
|
|
|