|
i need something like a vb6 tab control in asp.net, what control in asp.net can i use
t.aransiola
|
|
|
|
|
|
Hi,
I DataGrid if Paging is allowed then,if table that is binded to DataGrid has 300 rows,and each page dispalys 10 rows.In default paging,for the first page DataGrid get the 300 records and displays the firts 10 records.for the seocond page Datagrid gets 300 records and display 11 th 20 th records.This affects on Performance.So for the datagrid we implement Custom Paging.In the New version VS2005 there is GridView.For the GridView if paging is allowed
My Question is:GRIDVIEW ALSO FETCH THE RECORDS SIMILS TO DATAGRID.
And one more question is For the DATALIST AND REPEATER controls,There is no Built in paging facility so I USED ThePAGEDDATASOURCE class to implement paging for the above 2 controls.For DATAGRID Custom paging Can we use the PAGEDDATASOURCE,or we have to write stored procedure to fetch required number of records?
Thanks in advance.
|
|
|
|
|
hi,
i ve a code which will insert a pic using execCmd to a div and saves that content to the DB as Html code.
but when an image is inserted, it is not saved to the server and the local path is saved into the DB along with the HTML code. so when i run this web application in another machine, images will not show up...
is there a way to save the image to server and save the server path to the src of the img tag inside HTML code and save the HTML code to DB.
Thanks in advance...
|
|
|
|
|
Sir,
I have a datagrid and when i go to delete the row in the grid i want to make it confirm that Are u sure u want to delete that record having id=10
Id is that column in the datagrid.
Can I send this message even with the id number.I mean when i delete the record and the row contains id 10 then it should display the message .Are u sure u want to delete the row having id =10.
Sir I want to write the code in code behind file.
Please help.
|
|
|
|
|
Yes, you can. You simply add the id value when emitting the confirm client side script in the server side code. See the sample code from here[^].
|
|
|
|
|
Hi,
In a web app we are using ID Tech VersaKey POS Keyboard 3 track to read card information.
How to read data and show it in textboxes in an asp page.
A sample code or article will be more helpful.
Thanks in advance
|
|
|
|
|
Sir,
I want to learn NTFS file Extentions I mean how to make programs and before that what are NTFS File Extentions .
Can u please help.
Thanks
|
|
|
|
|
Seems your question does not have anything to do with ASP.NET.
|
|
|
|
|
I have made a collapsible composite custom control that has two panels acting as Header and Body of the control. I dont know how to make its designer so that users of the control are able to drag and drop controls in its Header or Body. I can add/remove controls in them programmatically but I dont know how to make it work at design time.
I dont want to use Templates in my custom control. I want to use all the properties of Panel control and thats why I am using Panels as Header and Body of the control. But I want to make it behave like two editable regions at design time too.
Thank You
Regards
Khalid
|
|
|
|
|
|
I know that I would have to make a custom designer for my control. The problem I am getting is that I have not used ITemplate in my custom control and I just dont want to use it for some reason. Instead, I have used Panel controls in my Custom Control. So, in this situation how can I make my custom designer so that there are two editable regions over it that actually make Header and Body of the control and correspond to respective Header and Body Panels of the control.
Regards
Khalid
|
|
|
|
|
Hi...
How can i sort a datalist items? i mean sort a column in datalist.
thanks.
behnam davoodi
|
|
|
|
|
when click on the column name(datalist header) rebind the datalist with the updated resultset(orderby that column name).
Best Regards,
Apurva Kaushal
|
|
|
|
|
So I have a project in SourceSafe but there are no solution files.
Now im going around in circles creating new project and virtual directories etc but i can't get it to work, can i create the project without the project/solution files?
I will respond if any additional information is needed, need help ASAP if possible
Thanks in advance,
Colum
Ps Using Visual Studio 2003 and asp.net
|
|
|
|
|
You should be able to create an empty solution and add the existing projects to it.
The project itself usually doesn't contain any more information than references to DLLs and other projects. If all else fails, you could just create new projects and add the source files to it.
---
b { font-weight: normal; }
|
|
|
|
|
how to write DropDownList1_SelectedIndexChanged() method fro dropdownlist which is inside datagrid.
Pradeep Reddy
|
|
|
|
|
What you can do is put the name there in the html part of the dropdownlist(inside the datagrid) at "OnSelectedIndexChanged" and then define it in the code behind. Don't forget to make autopostback property to true.
BTW please use a better subject line.
Best Regards,
Apurva Kaushal
|
|
|
|
|
public void ddl3(object sender,System.EventArgs e)
{
calculate1();
}
iam using name ddl3 in inlinecode
public void calculate1()
{
TextBox tb1,tb2;
DropDownList dl1,dl2;
tb1=(TextBox)DataGrid1.FindControl("TextBox3");
tb2=(TextBox)DataGrid1.FindControl("TextBox4");
dl1=(DropDownList)DataGrid1.FindControl("DropDownList3");
dl2=(DropDownList)DataGrid1.FindControl("DropDownList4");
tb1.Text=dl2.SelectedValue;
int a=int.Parse(dl1.SelectedValue);
int b=int.Parse(dl2.SelectedValue);
int c=a/b;
tb2.Text=c.ToString();
}
this is giving error
Pradeep Reddy
|
|
|
|
|
What error?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Pradeep Reddy
|
|
|
|
|
you try accessing the dropdownlist like this in the event:
DropDownList list = (DropDownList)sender
and then use it.
Best Regards,
Apurva Kaushal
|
|
|
|
|
sir can u plz explain me little bit clearly this
Pradeep Reddy
|
|
|
|
|
Actually why you were getting the error because you were not been able to get the control and then was using it that why you getting that object reference.. error.
In you event just set the reference for the dropdownlist and check whether it works or not.
suppose this your method:
public void Test(object sender, System.EventArgs e)
{
DropDownList list = (DropDownList)sender;
string hh = list.SelectedItem.ToString(); //to get the selected string.
}
Best Regards,
Apurva Kaushal
|
|
|
|
|
thank u sir, i got it
Pradeep Reddy
|
|
|
|