|
I have a generic list that I store the item of shoppingcart in it.I don't know how can I show this item in a gridview .my gridview is in another page.please help me.and my gridview is in a cache.
|
|
|
|
|
Dear Friends,
I want to know that what process take place at page level when any Exception fired and how was it handle by default by the Exception Handler class.
Please give me any link regarding this.
Thanks and Regards,
Sasmi
|
|
|
|
|
if you have any method where you didnt handle Exception , using Try , Catch then you have to handle the Error using Following way
1. Page Level
if you handel exception in page level there is a event Page_error where you can handle.
void Page_Error(Object o,EventArgs e)
{
Trace.Write("Error Message " + Server.GetLastError());
Server.ClearError();
}
Note : You can print this Error in any conrols, because from Page_Error Event you dont have any access of any control
2. Application Level:
in Gloabl.asax , ther is and event which fires when any application level error happen.
void Application_Error(object sender, EventArgs e)
{
}
Hope this clear your doubt.
cheers,
Abhijit
|
|
|
|
|
Thanks Abhijit,
this code will help me but i want depth information so that i know what actually the process of Event Handling.
As well as if i throw an exception through any method could i catch it at this Page_Error method?
help me regarding this cause i want to know this i search for it on google but i didn't get any help as provided by you.
thanks and regards
Sasmi
|
|
|
|
|
|
hi all,
I have a grid which contains checkboxes(similar to mail inbox).I have one href control outside the grid.When i click all the chekboxes inside the grid must b selected.When i click again they should b deselected.Can any1 tell me how to accomplish this using client side code?(i mean in javascript)
i wrote a code like this
var isChecked = false;
function check()
{
isChecked = !isChecked;
var checkboxes = document.getElementsByTagName("INPUT");
var index;
for(index = 0; index < checkboxes.length; index++)
{
if(isChecked)
checkboxes[index].checked = true;
else
checkboxes[index].checked = false;
}
}
Check/Uncheck All
The above code is working 5n if the page has no other select controls(radiobutton,checkbox,listbox)outside the grid.
But i have one radiobutton control in my page.So when i click the href all the checkboxes inside the grid gets checked but the radiobutton also gets checked.That shoud not happen.How 2 accomplish this?
T.Balaji
|
|
|
|
|
|
hi abhijit,
i made the necessary changes and i got it..its working 5n now.thanx
T.Balaji
|
|
|
|
|
|
hi abijit,
thats fantastic.but my requirment is when the href is clicked this should occur and moreover href is NOT inside the grid.kindly go thru my
code.Is it possible to make any check that checkboxes are inside the grid and continue ,like
var isChecked = false;
function check()
{
isChecked = !isChecked;
var checkboxes = document.getElementsByTagName("INPUT");
//HERE I WANT TO CHECK CONDITION LIKE
if(document.getElementbyid("ct100_gvclust1")=="ct100_gvclust1")
// AND CONTINUE
var index;
for(index = 0; index <checkboxes.length;>{
if(isChecked)
checkboxes[index].checked = true;
else
checkboxes[index].checked = false;
}
}
T.Balaji
|
|
|
|
|
Your tag
<a onclick="return check_uncheck1(this );" id="Check" runat="server" href="#">check</a>
and Javascript function is as like this
function check_uncheck1(Val)
{
var ValChecked = Val.checked;
var ValId = Val.id;
var frm = document.forms[0];
// Loop through all elements
for (i = 0; i < frm.length; i++)
{
if(frm.elements[i].checked == true)
{
frm.elements[i].checked=false;
}
else
{
frm.elements[i].checked=true;
}
}
}
|
|
|
|
|
Hi in my form i have 2 div tags,Leftdiv & rightdiv
Between this 2 div one image is there,
When ever i will click that image, the leftdiv have to hide and the entire page rightdiv have to appear...,
And if i click next time image, the leftdiv have to appear width 20% and reamining rightdiv have to appear...,
<b>I cant able to get the path,its redirecting to home page:
So plz follow this url,u will get exactly what i need:
http://zoho.com/crm/online-demo.html
In that plz select Start Demo of Inventory Manager Start Demo...,</b>
There u can get what i need...,
It mean it will like scroll...
Plz any one give me some ideas about this
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Give ID to the above two divs.make both runat="server".And then set the width& hieght of the divs at serevrside on imageclick even
Cheers!!
Brij
|
|
|
|
|
No i want to do this using javascript,
Some thing like scrollleft,scrollright javascript events...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Dear,
I have to tried to use ASP.NET AD with i got a stuck with this
DirectoryEntry de = new DirectoryEntry();
de.Path = "LDAP://IP/CN=Username;DC=Domain";
de.Username = @"username";
de.Password = "password";
"IP, Username, Domain, Passowrd all are correct already"
but i got the error
Thread was being aborted.
Socheat
|
|
|
|
|
use another property
AuthenticationTypes
cheers,
Abhijit
|
|
|
|
|
Can you give me a full example?
Because I don know how to do...
Thanks
Socheat
|
|
|
|
|
DirectoryEntry _obDi=new DicrectroyEntry("LdapPath","Domain\userName","password", AutheticationType.None)
cheers,
Abhijit
|
|
|
|
|
Please check whether you have given fullPath of LDAP server
like
de.Path = "LDAP://IP/CN=Username;OU=OUName;DC="intic";DC="in"";
Cheers!!
Brij
|
|
|
|
|
|
An active directory can have many OUs.OU refers to Orgnisational Unit.
Cheers!!
Brij
|
|
|
|
|
I tried already, but still get error "There is no such object on server"
How can i solve this?
My LDADP "LDAP://192.168.206.1/CN=cheatasp;OUs=OU;DC=DOmain;DC=LOCAL"
Socheat
|
|
|
|
|
Can u provide me the full code and error stacktrace.I thonk then it'll be better to give full answer
Cheers!!
Brij
|
|
|
|
|
txtPath.Text ="LDAP://192.168.206.1/CN=cheatasp;OUs=OU;DC=Domain;DC=LOCAL";
DirectoryEntry rootEntry = new DirectoryEntry(txtPath.Text);
//if (!cbIA.Checked)
//{
// rootEntry.Username = txtUserName.Text.Trim();
// rootEntry.Password = txtPwd.Text.Trim();
//}
rootEntry.Username = "cheatasp";
rootEntry.Password = "xkbDF12";
comboBox1.Items.Clear();
DirectorySearcher searcher = new DirectorySearcher(rootEntry);
foreach (string str in rootEntry.Properties.PropertyNames)
{
comboBox1.Items.Add(str);
}
Socheat
|
|
|
|
|
Socheat.Net wrote: LDAP://192.168.206.1/CN=cheatasp;OUs=OU;DC=Domain;DC=LOCAL
just put it in Browser Addrees bar and press Enter , what happend ? are you getting some thing or not ?
cheers,
Abhijit
|
|
|
|