|
Magh_M wrote: i am using some links in one of my form...,
Those links i want in all my other forms too...,
Am I missing Something in Your Question?
Why dont u use a master page that contain the link u want..so if u want those link in other form just add your pages into the master page
Regards,
Tomi
|
|
|
|
|
Means?,
I didnt get what ur trying to say?,
Ya,i have shown those links in my default.aspx page...,
If i selct the link it will go to another aspx page...,
There also i need all those links...,
How to do that?,
Regards,
Magi
|
|
|
|
|
Tomi means that you should create MasterPage.master not .aspx. If you create link in MasterPage.master, it will shown in all your webpage.
Regard,
Edwin
|
|
|
|
|
What i'm trying to explain is:
First u have to create a masterpage that contain the link that u want to be appear in other page
For example :
i have a masterpage name master1.master
on that master page i have a link name : Login (redirect to login.aspx), Home (redirect to default.aspx), Second(redirect to secondpage.aspx), and etc..After i go to my secondpage.aspx i want my link (Login, Home, Second,etc..) also appears in the secondpag.aspx
is that what u want?
if yes..then when u make secondpage.aspx and any otherpage that u want the link to be appear, you have to check the checkbox select masterpage then choose the masterpage (in my case is master1.master)..by doing that u will have your link to be appear in anypages u make(in case u select the masterpage)
Hope Can Help U..if u still confuse please tell me
Kind Regards,
Tomi
|
|
|
|
|
Ya still i am confuse...,
I searched in my solution explorer,
I dont have any .master file format...,
Where i should get?
See my probs is:
One of the user login his mailid...,
It will transfer him to default.aspx page...,
There he will get menu bars...,
If he select in that any menu...,It will show according to the selection menu aspx page...,
Now in that aspx page also that menu bars want to be there...,
This is my question...,
Regards,
Magi
|
|
|
|
|
- In your solution explorer try to right click and choose add new item
- Then If u use VS 2005 Master Page item will exist.
Create menu bars in that masterpage.
Then U add new Item Webform and fill the choose masterpage's checkbox.
U will see your menu bar in webform that U just created
Regard,
Edwin
|
|
|
|
|
Hello Magh,
the masterpage file(*.master) can be found if u have already created the file..add new item=>choose masterpage
in master page u only design the form put some link, tables or anything u want to be able in your firstpage, second page, any page that u want the link or anything else to be show..
Tell me if u still have a problems
-- modified at 5:31 Tuesday 31st July, 2007
Regards,
Tomi
|
|
|
|
|
Really, in my add new item place...,
I didnt get .master file format...,
I got only...,
.aspx,ascx,.vb,.xsd,.xml.........etc
Like that only i got,
I didnt get .master file,
Plz for that .master file i have to add any reference?, or any other things?,
Regards,
Magi
|
|
|
|
|
I see..are u using VS2003 for u'r web development?
I suggest u use VS2005 or Visual Web Developer Exprress Edition 2005..by using that u will have a master page file in your add new item
I have a video trainning for using a master page..Pls inform me when u needed it..
"Knowledge is free"
Regards,
Tomi
|
|
|
|
|
My website has 6 sub-domains.
when any user login in main domain
and go to any sub-domain , session is lost.
plese help me..
|
|
|
|
|
ajau wrote: and go to any sub-domain , session is lost.
That is how webapplication works. Session won't be transfered from domains to subdomains.
|
|
|
|
|
anyone interested in doing research projects
do it
how to import the data from xml to tally
|
|
|
|
|
i have created a website and it is running successfully when it is in local system, but when i connect other system in LAN and enter the url in the browser the website is not appearing...
what is the procedure...plz..
|
|
|
|
|
You need to specify with the system name or IP to access,
|
|
|
|
|
Hi Guru's
I'm not used on calling javascript function over a string concatination calls but it leads me no choice.
I created a link (a href tag) dynamically by calling it on a db and placing it on label control, what I want to do is to add an onclick function on the a href tag which will insert a value to a session.
Below is my snippet.
For x As Integer = 0 To dt.Rows.Count - 1
With dt
sb.Append("")
End With
Next
What I want to add is something like this:
a href='" & CType(.Rows(x).Item('pageLocation'), String) & "' onclick='javascript:<%session('ID')%> = ctype(.rows(x).item('pageID'),string)'"
but no luck
Please advice.
regards
Dom
-- modified at 3:56 Tuesday 31st July, 2007
|
|
|
|
|
Hi,
I would like to preview an image taken from my hard disk using File control.
I try to do it but it doesn't work.
Here is an extract of my code:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head >
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
// <!CDATA[
function PreviewImage(wThis)
{
document.getElementById("img1").src=wThis.value;
}
// ]]>
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<img src="" style="width: 96px; height: 96px" id="img1"/> <br />
<input id="File1" type="file" onchange="return PreviewImage(this)" style="width: 240px" /></div>
</form>
</body>
</html>
Thanks,
Shay Noy
|
|
|
|
|
When user selects file are you getting call on PreviewImage function ? alert it and check ?
|
|
|
|
|
I already checked and yes I am getting the right path.
function PreviewImage(wThis)
{
alert(wThis.value);
document.getElementById("img1").src=wThis.value;
}
Shay Noy
|
|
|
|
|
When you alert image path are you seeing path like c:\somefolder\somefolder.jpg ? If yes you need to replace \ with \\ to make it work.
|
|
|
|
|
Thanks but it doesn't work too.
Shay Noy
|
|
|
|
|
What's witht he CDATA[[ ]] ? This is Javascript, not XML...
anyway... I suspect this may be a Firefox issue... it works fine in IE, and there is nothing wrong, in principle, with what you're doing.
FF has an option to prevent scripts from updating images, but this is turned off by default - still, I can't help wondering if there is bug somewhere around that...
Be interesting to know if you ever get it sorted...
have you tried Googling for "javascript image preview" or some such? I vaguely remember coming across a script for this some time back...
Fred
|
|
|
|
|
I try to googling a lot, but with no success.
It doesn't preview image, can you post your html page because if it works to you, it should work to me too.
Perhaps this is a configuration problem?
I am working with ASP.NET 2005.
Please help, thank you
Shay Noy
|
|
|
|
|
My code is the same as yours, in essence - as I say, it works in IE but not FF. This has nothing to do with .NET - it is pure html/javascript.
<html>
<head>
<title></title>
<script language="javascript" type="text/javascript">
<!--
function PreviewImage(wThis) {
document.getElementById("img1").src=wThis.value;
}
// -->
</script>
</head>
<body>
<form>
<div>
<input id="File1" type="file" onchange="PreviewImage(this)" style="width: 240px" /></div>
<br>
<img src="" style="width: 96px; height: 96px" id="img1" name="img1" /> <br />
</form>
</body>
</html>
|
|
|
|
|
I copy the code to notepad and save as html. When I ran it, I got an Information bar as following:
"To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options."
After click popu up the 3 options:
1) Allow Block content...
2) What the risk?
3)More information
I click the first option and click yes for stop blocking and then the code run well.
So I believe that this is the problem, How can I unblock through my code so everyone will be able to preview images on his computer?
Thank you.
Shay Noy
|
|
|
|
|
You will get this security warning if you run your HTML file by double-clicking it - but if you run it through a web-server it will not appear.
This will not be a problem for 99% of users. A small number may indeed have their security settings set to block all javascript, but very few, and there is nothing to can do about that - it's their choice, and they will know what they are missing out on.
So don't worry about it.
|
|
|
|