|
Hi Friends,
I'm using ASP.net 2.0 with VB. I want to create Horizontal menu with submenu that open verticully.
Problem :
1.But problem in frame.. if i'm taking frame then the length of frame became same length of vertical menu ....
2.Also I want call one page of that include menu code & I called the page at all pages so my time & code reduce
Please reply me as soon as possible...
On my mail address : pranav.kalyani@gmail.com
PK
|
|
|
|
|
Pranav Kalyani wrote: 1.But problem in frame.. if i'm taking frame then the length of frame became same length of vertical menu ....
are putting menu control inside IFrame ? Why ?
Pranav Kalyani wrote: Also I want call one page of that include menu code & I called the page at all pages so my time & code reduce
Pranav Kalyani wrote: Please reply me as soon as possible...
On my mail address : pranav.kalyani@gmail.com
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi, you can use Menu or Sitemappath under navigation tool.
why you want to input your menu in a frame?
|
|
|
|
|
just check the properties and don't put in frame. and don't think so. think little it so simple.
with best
j somasekhar
|
|
|
|
|
Dear friends
i have gridview with (one textbox ,dropdownlist,checkbox) , one add button and save btn in aspx form
initially gridview will not show any values , when user clicks Add button , gridview will show textbox ,dropdownlist and checkbox with blanks .
after user will fill up these fields , next when user wants one more row again he will click add button , then it will create new row in gridview with blank fields. finally he will click save button then grid values will be stored in database. for example
Empname(txt) Dept(ddl) Active(checkbox)
-- --- --
xyz Purchase Yes
Add btn Save btn
any body help me regarding this issue?
|
|
|
|
|
when u add each row, add it to a datatbale and finally on the click of the save button, take each row from the datatable and insert it into db.
add the below code in add button click,
DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn("Number", typeof(string)));
dt.Columns.Add(new DataColumn("Name", typeof(string)));
if (ViewState["data"] != null)
dt = (DataTable)ViewState["data"];
DataRow dr = dt.NewRow();
dr["Number"] = this.TextBox1.Text;
dr["Name"] = this.TextBox2.Text;
dt.Rows.Add(dr);
GridView1.DataSource = dt;
GridView1.DataBind();
ViewState["data"] = dt;
and in save button
DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn("Number", typeof(string)));
dt.Columns.Add(new DataColumn("Name", typeof(string)));
if (ViewState["data"] != null)
dt = (DataTable)ViewState["data"];
foreach (DataRow dr in dt.Rows)
{
code to insert in db
}
hope it helps u
|
|
|
|
|
1. Create a DataTable with the following columns Id, Ename, DeptNo, Status(Active/Inactive) with empty rows. Store this DataTable in Session.
2. Bind this DataTable to the GridView. As initially no rows in the DataTable , The GridViewwill be empty.
3. In the GridView RowBound event, Bind DeptNo Dropdown and Status checkbox controls with your data for each row of the DataTable.
4. On clicking add button, Update the changes done in the Gridview to the DataTable and then add an empty row to that DataTable. Again bind this DataTableto GridView. So whenever you click add button, the GridView will have a new row.
Hope this will address your requirement.
|
|
|
|
|
Hi,
I my page i have create two text box which is created by DYNAMICALLY,
Like as below,
dim txt as textbox
dim plc as placeholder
plc.control.add(txt)
So text box is created sucessfully, but i wat to validate the two text box should not be null from Client side when click the button control .
function fnNotNull()
{
var frm = document.getElementById"ContentPlaceHolder1_txtfromdate").id;
var to =
document.getElementById("ContentPlaceHolder1_txttodate").id;
alert(frm.value);
alert(to.value);
return;
}
finally when i click the button it return "undefined" error, not return value of the text box, how to take the value of the text box from client side. If any one know plz answer me....
kannak
|
|
|
|
|
Get the UniqueID of dynamic textbox and use it in your javascript.
Hope this will help you.
|
|
|
|
|
Try this:
function fnNotNull()
{
var frm = document.getElementById"ContentPlaceHolder1_txtfromdate");
var to =
document.getElementById("ContentPlaceHolder1_txttodate");
alert(frm.value);
alert(to.value);
return;
}
|
|
|
|
|
Can i get free template to create my own site..
Thank you !!!
|
|
|
|
|
Hi, yes you can. Theres a lot of free web template for free in the net
|
|
|
|
|
Thank you for the reply..I tried but didn't find.. If possible can i get few links..
I will appreciate your effort.
|
|
|
|
|
Hi, thanks for your reply and sorry for late reply.
<a href="http://www.freewebtemplates.com/">www.freewebtemplates.com/</a>[<a href="http://www.freewebtemplates.com/" target="_blank" title="New Window">^</a>]
<a href="http://www.freewebsitetemplates.com">www.freewebsitetemplates.com</a>[<a href="http://www.freewebsitetemplates.com" target="_blank" title="New Window">^</a>]
<a href="http://www.steves-templates.com/">www.steves-templates.com/</a>[<a href="http://www.steves-templates.com/" target="_blank" title="New Window">^</a>]
<a href="http://www.freetemplatesonline.com/">www.freetemplatesonline.com/</a>[<a href="http://www.freetemplatesonline.com/" target="_blank" title="New Window">^</a>]
Hope this one can help
Thanks
|
|
|
|
|
Hi,
i want to implement an efficient gridview...i have about 1500 rows and it takes time to load into a gridview (with automatic paging), so i want to implement a custom paging scheme in which i show only 100 rows at a time... i have turned on paging, pulled out count for the rows, also pulled out 100 rows but Q1. how do i make gridview generate 15pages link (100 per page,15 pages)... Q2.how would i call the second page with 100 -200 rows.... Please help, ...with question1 especially... also i am binding the gridview at runtime to different tables...i think i am using about 4 different types of tables... so i can't use datasources etc...
please help
haseeb
|
|
|
|
|
Hi,
for the Q1:
Set your Grid property allowpaging=true and pagesize=100
for the Q2:
in your Grid_pageindexchaging:
Grid1.pageindex=e.newpageindex
Grid1.Datasource=dt (your datatable)
Grid1.Databind()
Hope this one can help.
Thanks
|
|
|
|
|
hi...
thanx for ur response... i have already done this and the problem with this is that it isn't efficient... in such example the grid only shows 100 rows but datasource has all data in it... wat i am trying to do is to get count of the no. of rows , somehow make grid generate appropriate page numbers and then pull out only 100 rows at a time... then on pageindexchanging, take get the page index, select another 100 rows this time rows from 100-200...
I think,i have explained my problem... if not, lemme know and i will try my best to retype something that makes sense..
thanx...
regards
haseeb
|
|
|
|
|
the copy website does not work
what can be done????
|
|
|
|
|
What error are you getting??
Im having problems with the copy web site tool as well
At the end, i get an error saying that it had problems, but does upload the file, it only takes too much time, and im using vs2008 professional
Alexei Rodriguez
|
|
|
|
|
Hi, Can you post the error message?
Thanks
|
|
|
|
|
hi friends i need help for, if i put a mouse on a link button then that is show our message of content what we have. how can we will get on mouse overa text message is it possible in link button or anything else. Or that is only possible in flash buttons.
thank you please give me a rep
j somasekhar
|
|
|
|
|
Write javascript for onMouseOver event. Most elements have this event in javascript.
Put the following C# code in page_load to add the even in HTML.
LinkButton.Attributes.Add("onMouseOver", "mouseOver('" + LinkButton.ClientID + "');");
Add the following javascript to your mark up
function mouseOver(btnId) {
var LinkButton = document.getElementById(btnId);
}
function mouseOut(btnId) {
var LinkButton = document.getElementById(btnId);
}
I didn't get any requirements for the signature
|
|
|
|
|
hi dear.
can u help me. plz give me any sample application if u have, plz send it to me by somasekhara777@yahoo.co.in
j somasekhar
|
|
|
|
|
on mouse over message in .aspx page.
thank you
j somasekhar
|
|
|
|
|
Hi,
I have a gridview (source is a list) which contains information that would be required to pull out more data from the database. actually, i wil be using that list when a btn is clicked to retrieve more information and then assign this second list to the gridview... ie 1 grid and two sources but source 2 is dependent on source1. i am using asp.net so with button click , state is lost and i don't have anything in the list. How would i save this state... list1 has about 10 rows of 10 columns... i tried saving it in viewstate but page is showing error...
plz provide help
haseeb
|
|
|
|