|
|
Okay...the code. I originally created BreadCrumbs.cs
Next, created BreadCrumbs.ascx and BreadCrumbs.ascx.cs
Finally, the article said to put the following in the code behind in each .aspx page
**code behind for .aspx***
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace Sabre_Solutions.Loads.Topographic_Effects
{
///
/// Summary description for BreadCrumbTest.
///
public class BreadCrumbTest : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Literal lblPageTitle;
protected NameSpace.headerBreadCrumb header;
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
string PageTitle = "Test the Title";
lblPageTitle.Text = PageTitle;
headerBreadCrumb.HeaderText = PageTitle;
}
}
***end code***
The bolded two lines are what are confusing me. I am apparently supposed to declare another class of headerBreadCrumb but I have no idea what to include in the code itself.
|
|
|
|
|
Hi all,
I want to play my audio,video data from database to custom player like media player,without saving option in C# asp.net webform.Any body having ideas or free source code please reply back as early as possible.
regards
sastry.
venkat
|
|
|
|
|
Hi,
If i create a session or cookie within a web service, will the session / cookie be created on the consuming pc or on the system hosting the web service?
Thanks for any info
munklefish
|
|
|
|
|
Looks like you cant do
Response.Cookies in a web service anyway.
|
|
|
|
|
Does anyone know if it possible to implement Web Parts in ASP.NET 2.0 such that it is possible to move them from one web part zone to another without reloading the page each time, as is the case with sharepoint?
Thanks
|
|
|
|
|
Hi,
I get an xml string and now I would like to read the value of one of the elements in this xml string.
Please note that I would like to read an xml string not an xml file.
In this example let's say i would like to get the value for <wardcode>
Thanks
"
<postcodes xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<postcodeitem>
<containsmostlikelymatch>false
<postcode>HA53TN
<wardcode>00AQGL
<postcodepossiblegeographiesdataset>
<postcodepossiblegeographies>
"
|
|
|
|
|
The XmlDocument.LoadXml[^] method allows to load the xml document from a specified string, then you can read the value of a particular node.
|
|
|
|
|
Hii,
I am trying to parse the innerHTML from a treeview like this...
//InnerHTML = "<INPUT id=TreeViewPR1_TreeView1n14CheckBox title=Hostage type=checkbox CHECKED name=TreeViewPR1_TreeView1n14CheckBox>
//<SPAN class=\"TreeViewPR1_TreeView1_0 TreeViewPR1_TreeView1_1\" id=TreeViewPR1_TreeView1t14 title='Extract This string'>Hostage</SPAN>"
function AddNodeid(InnerHTML)
{
var TitleIndex=InnerHTML.lastIndexOf("title=");
if (TitleIndex > 0)
{
var SubString= InnerHTML.substring(TitleIndex+6, InnerHTML.length+1);
var EndIndex=SubString.indexOf("id="); // For Firefox
if(EndIndex <=0)
EndIndex=SubString.indexOf(">"); // For IE
var Nodeid=SubString.substring(0, EndIndex);
alert(Nodeid);
}
else
alert("No NodeId");
}
the problems are becoz of browsers..
Firefox interchanges the positions of title and id in <SPAN> tag...
and another prob with this code is that IE returns id without quotes( i.e 01) but FF returnsin double quotes(i.e "01").
can you tell why this happens and is there a way by which I can directly get
title, value pair.
Cheerio
Abhishek
-- modified at 10:08 Tuesday 9th May, 2006
|
|
|
|
|
Hi,
I have a data grid with check boxes by which we can select the rows in the grid. I want to get the data in the selected row. How can i achieve this.
Thanks,
Jaikrishna
|
|
|
|
|
This is a good source[^] for information related to datagrids, you can look there.
daniero
|
|
|
|
|
Hi,
I'm struggling with the split function of ASP. I'm using Dreamweavers ASP, Javascript.
The string looks like this:
+ 'test=1L1S1=INSERT INTO SHIFTDEFINITION (SHIFT,DATACOLUMN,DATAVALUE,DATATYPE,FIELDDESCRIPTION,LINENO,SEQNO,COMPANY) VALUES ('ABC' + , + 'NTSTART' + , + '15:30' + , + 't' + , + 'Start Time', + 1,1, + 'ASP')L1S2=INSERT INTO SHIFTDEFINITION (SHIFT,DATACOLUMN,DATAVALUE,DATATYPE,FIELDDESCRIPTION,LINENO,SEQNO,COMPANY) VALUES ('ABC' + , + 'NTEND' + , + '16:30' + , + 't' + , + 'End Time', + 1,2, + 'ASP')L1S3=INSERT INTO SHIFTDEFINITION (SHIFT,DATACOLUMN,DATAVALUE,DATATYPE,FIELDDESCRIPTION,LINENO,SEQNO,COMPANY) VALUES ('ABC' + , + 'CHANGEDBY' + , + 'RICHARDB' + , + 'S' + , + 'Changed By', + 1,3, + 'ASP')
As you can see there is sql in the string. The L1S1 stands for LineNo 1 and SeqNo 1 and so on, because I'm building the HTML dynamically. There is a variable called id which runs though a loop and builds the id example. var id = ("L"+x+"S"+y);
I get the string from a hidden field in the HTML called "hide". The hidden field was populated with a javascript function that reads the sql out of a cookie passed on from another page.
Then I use the split function to extract the sql from the string to execute it.
And this is what I have tried so far with no success:
<%
var WordArray= new Array(11);
var THESQLString = new Array(11);
THESQLString = Request.Form("hide");
// with loops in this statement
WordArray[y] = THESQLString[y].split(id);
All I receive is an error saying: Object Expected or WordArray[y] is null or not an object
The en result must look something like this (for each Lines SeqNo):
INSERT INTO SHIFTDEFINITION (SHIFT,DATACOLUMN,DATAVALUE,DATATYPE,FIELDDESCRIPTION,LINENO,SEQNO,COMPANY) VALUES ('ABC' + , + 'CHANGEDBY' + , + 'RICHARDB' + , + 'S' + , + 'Changed By', + 1,3, + 'ASP')
Thanx alot if someone can Help me
Richard a.k.a Programm3r
|
|
|
|
|
sir,
i want to display the pictures in new window with its original size. I am using Datalist in which pictures are in small size i want to display these photos 0n mouse click in its original size in new window
please help me
|
|
|
|
|
If you know the location (http://www.codeproject.com/images/standard/logobottom.gif for example) then you can set following code in the event:
Response.Write("<script language='javascript'>window.open(http://www.codeproject.com/images/standard/logobottom.gif);</script>");
As you see, i'm in fact writing some javascript code on my page which is going to open a new window, as the url of that window i set the image url. You can now also set some javascript attributes if you want.
Greetings,
KrIstOfK
|
|
|
|
|
i insert unicode format data from asp.net to mysql 4.1 with utf-8 encoding on the odbc 3.51 & v5 driver
but
it is insert "?????" in entity of table
Mohammad Kazem Sattari
|
|
|
|
|
Hello!
I want to make a DropDownList Server Control with the drop list with a specific width!
Can anyone give me any ideeas?
Eusebiu
|
|
|
|
|
1. In the HTML code:
<asp:dropdownlist id="ddlClient" Runat="server" width="200"></asp:dropdownlist>
2. Or drag and drop your dropdownlist on your asp.net form and set the property with to 200
3. In code behind:
ddlDropDownList.Width = new Unit(200);
Greetings,
KrIstOfK
|
|
|
|
|
I don`t think I made myself clear.
I want the DropDrownList Control to have 100px and the list 200px;
Eusebiu
|
|
|
|
|
How can import/transfer data from excel to Access database using asp.net
|
|
|
|
|
Hello I have a Parent page and inside that parent page i have a child page
in the child page i check if a request.querystring value = not empty and if it is empty
then i have to response.redirect the whole page is parent page to the start up page.
if i use response.redirect it just load the start up page in the child iframe section.
Need help.
Help in need is the help indeed
|
|
|
|
|
You can't use a redirect to change the parent page. When the request comes to the server, it's already decided where the page will be displayed.
Return a page that contains a Javascript that changes the location of the parent window.
---
b { font-weight: normal; }
|
|
|
|
|
that is a good little idea.
Thanks Mr Guffa.
I will try that.
Regards
Help in need is the help indeed
|
|
|
|
|
how to display the live time in web form.
i want to display time continuously..
so help me for code....
Dipan Patel.
|
|
|
|
|
If you want to show the time the page is rendered on the server: DateTime.Now; (in C#)
If you want to show the time passing second by second on the webpage you'll have to go javascript or something like that.
|
|
|
|
|
i want it in vb.net or send me javascript for it becoz i cant find it...
Dipan Patel.
|
|
|
|