|
lists three types of server control events.
P.PaVaN KuMaR
|
|
|
|
|
hi dears,
how can i get the sample papers of microsoft 305 exam and which is the best site to refer this .
|
|
|
|
|
if i dont want select any item from dropdownlist what should i do?????????
|
|
|
|
|
you simply don't select, in that case, add an extra empty item to the dropdownlist and make it the default when the page loads....
I hope this helps...
Mickey
|
|
|
|
|
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
|
|
|
|