|
click the ignore html tags checkbox...
Then that won't work. You need to output a html button e.g. <input type=submit> etc...
The <asp:button> won't get processed by the server if it's just in a string like this.
|
|
|
|
|
Hi All,
I would like to create a new site, which displays a hierarchial set of information. The hierarchial information keeps growing.
I would like to know how to go about it and start the work. Right now I know VC++, C++, SQL, XML. I am not sure if these skills would help me in anyway. Kindly let me know how I go about it.
Thanks
|
|
|
|
|
Dear Friends,
I am working on ASP.NET 1.1 with C# Domain..
I want to use my project using Visual Source Safe (VSS)...
i have Visual Studio (4 Cd's Pack)..I have 5 PC's , Which i want to connect in such a manner like.. i will keep my project on server and configure through VSS, so that other programmers can able to use it...
so plzzz can any body tell me how to install it on server and client pc...??
Thanks & Regards
Ahuja
grewagvdsvvadfbvb dfbdfbdg
|
|
|
|
|
I want to create a table using java script, The user should enter the number of rows to be created in the txtTable when the user clicks, create table button, the it should create the table on the form(using java script)or any language.
oga m
|
|
|
|
|
If you can use ASP.NET, C# it would be rather simple, create a div in you code.
Your div should look like <div id="myContent" runat="server"> </div>
now in the code behind in your button clicked method you can set the inner html of the div.
eg: myContent.InnerHTML = "<table> //Content </table>"
Now your code should looks something like this you can use a for loop
Buttonevent{
int rows = int.Parse(Texbox1.Text);
//Start
myContent.InnerHTML = "<table>"; //Start Table
for(int i = 0; i < rows; i++){
myContent.InnerHTML = myContent.InnerHTML+"<tr>"; //Start Table Row
myContent.InnerHTML = myContent.InnerHTML+"<td>"; //Start Cell
myContent.InnerHTML = myContent.InnerHTML+" Hello "; //Content of Cell
myContent.InnerHTML = myContent.InnerHTML+"</td>"; //End Cell
myContent.InnerHTML = myContent.InnerHTML+"</tr>"; //End Table Row
}
myContent.InnerHTML = "</table>"; //Finish Table
}
=======================================================================
You can also indent the htmtext using \n 's
Hope this helps
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|
|
[B]
Please could anyone help here. What code do i need to add to this to make the pop up window have no scrollbars or anything else when it opens?[/B]
,
[B]And this link, should open up in a pop up , it can be the same size as above, with no scrollbars etc. [/B]
<%IF ALLOW_E = "1" THEN%>
<%END IF%>
[B]Both the above are in .asp pages Thanks in advance for any help. [/B]
|
|
|
|
|
Here is an example:
<script language="JavaScript">
function OpenWindow()
{
window.open("Sample.htm",null,"height=200,width=400,status=no,toolbar=no,menubar=no,location=no");
}
</script>
<a href="JavaScript:OpenWindow()">Click Here</a>
And here is the documentation[^]
|
|
|
|
|
Hello everyone...
I have a problem with paging in ASP.
Is there any way to keep the values of radio button during paging?
Each time i move to the next page and then going backwards, the radiobutton is unchecked.
I tried to use the querystring, but it wont be so much efficient if i have many pages to show.
Please someone helps....
Thanks..
Doddy Enggarsyah
-- modified at 14:08 Saturday 31st March, 2007
|
|
|
|
|
Is EnableViewState set to true on the radio button?
|
|
|
|
|
Hi every one,
I have a problem with acouple of solutions in mind but I didn't succeed in any of them, so any help would be highly appreciated
I have a long TreeView that I want it to scroll alone as one control and the rest of the page will stay without scrolling, I couldn't do it so I used a in an htm page where the TreeView is in a single frame alone, now when the other page post back I need the page that contains the TreeView to postback too.
Any suggestions??
Thank You
|
|
|
|
|
You can use the overflow:auto style to add scrolling to elements in the page.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi all
I have a login php page that is working correctly apart from it wont redirect to another page on successful login.
This is the code I am using:
-----------------
if($rec=mysql_fetch_array(mysql_query("SELECT * FROM user WHERE UserName='$userid' AND Password = '$password'")))
{
if ( headers_sent( $file, $num ) )
{
print "headers were sent in file: $file on line: $line";
}
else
{
header( "Location: http://www.example.com" );
exit;
}
}
--------------
But it seems that the page is loading twice. It is being caught in the if and states that headers have been loaded. However it says that the location is the header() in the else.
Hope that makes sense !! Basically I think it is loading the page the firs time and going into the if statement. Then rather than redirecting to that page it loads itself again and this time gets caught in the else.
WHY is it reloading ????? Any help would be fab
Big Thanks
John
|
|
|
|
|
Could you please provide a bit more of the script. You can email it to me if you would rather not publish it.
BTW change exit; to exit(); They are two very different things.
Brad
Australian
- Bradml on "MVP Status"
If this was posted in a programming board please rate my answer
|
|
|
|
|
I reviewed the script you gave me... This is something I threw together:
<?php
if ($_POST['Submit'] == "Submit") {
$userid=mysql_real_escape_string($userid);
$password=mysql_real_escape_string($password);
if (!$rec = mysql_query("SELECT * FROM `user` WHERE UserName='$userid' AND Password = '$password'")) {echo "Database Maintenance in progress."; exit();}
if (mysql_num_rows($res) == 1) {
header( "Location: http://marhay1.100webspace.net/Login/preupload.php" );
exit();
}else{
echo "Incorrect Username or Password.";
}
}
?>
<!-- Form data etc --> Make sure that absolutely nothing is before the first <?php tag.
Brad
Australian
- peterchen on "Who has the worst keyboard"
Keyboard? Ha! I throw magnets over the RAM chips!
|
|
|
|
|
Thanks Loads for that !!!!
It worked perfect
I didnt know puting the PHP script at the top made a difference. I am still learning but i will get there
Thanks again
John.
|
|
|
|
|
That is absolutely no problem.
The reason for not putting anything above the PHP tag is because if their is the server will send it down straight away. Because the headers need to go before the page content the they are sent then and their. I can't tell you how many times I made that mistake when I started.
Anyway if you need any more help just post here.
Brad
Australian
- peterchen on "Who has the worst keyboard"
Keyboard? Ha! I throw magnets over the RAM chips!
|
|
|
|
|
Hi again
My site has multiple pages and different bits of .
How do i pass a variable from one page to another ??? would global variables work or are they distroyed at the end of .
Really sorry for keep quizing you !!!
Thanks SO much
John
|
|
|
|
|
That is no problem. The easiest way to do this in PHP is through session variables.
Basically it relies on cookies but stores the data on the server side. This is not a perfect way to do it but unless you use databases it is very good.
Here is the gist of it:
First Page:
<?php
session_start();
$_SESSION["example"] = "Hello World";
?>
<a href="secound_page.php">Click here to go the secound page.</a> Secound Page:
<?php
session_start();
echo $_SESSION["example"];
?>
You can find more out at: http://www.php.net/manual/en/ref.session.php[^]
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
hello,
i am working on an asp project.
The database is given by the client.
The client has stored imgaes in datbase in binary format.
I want to extract that data and store it in image file and dispaly the file on my page.
Any idea how can i do this?
Any help is appreciated.
Regards,
Nilesh Hapse.
|
|
|
|
|
|
Hi,
I'm beginner in ASP.NET and I want to implement a voice conferencing chat on internet
any idea would be appreciated
|
|
|
|
|
ASP.NET has nothing to do with a voice chat/voice technologies; maximum that you can do is a simple (text) chat.
Creating a voice chat involves creating a client/server software with something like C++/C#. Just Google for "writing Voice Chat client".
-------------------------
Don't worry, be happy  )
|
|
|
|
|
Can someone please explain what code i need to add to keep a set of links at the bottom of a pop up window?
I need it in a page where people post comments. It is a pop up window, of about 500x400 where peoople post comments, and can read the previous and next ones.
I have tried aligning it to the bottom of the window, in a table using the "space" keys, and the align bottom etc. however what happens is that if someone posts some lines of text or a very long message, and you read the comment, you have to scroll to the bottom of the message for the links to be visible. This is not the solution because if the buttons are at the bottom to begin with, then they go down the same distance after the last line of text.
If i align them to appear right after the last line of text, then if someone posts only a few words or one line, means that the links appear in the middle of page, ie. right after the last line of text agains.
I want a situation, whereby, the buttons are fixed at the bottom of the pop up window, no matter how short or long the message. ie. if the message is long, there can be scroll bars but on opening the pop up commenting windows the "previous next" buttons should always be there.
Just to further clarify, it is a pop up page and it is an .asp page.
|
|
|
|
|
Is there a way to access the .Text value of a Textbox control on the Masterpage from one/all of its Contentpages. If not, what is the best way to share data between pages.
I am using VWD Express.
Thanks,
RickD
|
|
|
|
|
Are all the pages open at the same time?
Brad
Australian
- unknown PHP Developer on "Job Prospect"
Requirement: * Experience working with XML, XSL, XPath
Comment: and other things starting with X.
|
|
|
|