|
Hi all,
I have a javascript function written in html block of aspx page. I have string vairible declared in it, when I try to print it on a paper its printing whole page, instead of printing that string variable only. Can anybody please suggest me or give me some code snippet how to do it. If possible give me the code snippet for 2-browsers Mozilla and IExplr
My code is as below :
function printdoc(text)
{
var lbl="<%=str4%>";
if (lbl == "Valid")
{
var lbl1="<%= str1 %>";
text=lbl1;
print(text);
}
else
{
alert("Bio-metrics have not been done");
}
}
Can anybody please tell me how to do it. Thank you.
Regards,
Aleem.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Please don't cross post.
---
single minded; short sighted; long gone;
|
|
|
|
|
hi every body
i want to delete previous cookies during page load
is it possible ? How ?
thanks in advance
SP
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
Loop through the cookies in Request.Cookies, and set the expiry date of each cookie to a passed date in Response.Cookies.
---
single minded; short sighted; long gone;
|
|
|
|
|
web service support for
a) data reader
b) dataset
c)Both a and b
d) none of above
which one is correct.
|
|
|
|
|
Your statement/options/question (it was a question right?) make absolutely on sense what so ever....
|
|
|
|
|
Hi guys, I need someone who is quite an expert to help me with this one.
I set up a database that reads content (In html code string) into a div on my site. the div I set to runat server;
the htmlCode I get from the Database is then put into the InnerHTML of the Div. Now I have set a method that creates a controll out of the keyword htmlCode = htmlCode.Replace("//KeyWord","//ASP.NET Button");
The problem I get that the ASPButton displays on the htmlCode string but doesnt show in the div ?
Please help .
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|
|
How are you putting in the asp button, like this <asp:button> etc...?
|
|
|
|
|
Yes in the string I am replacing a word like design with <asp:button text="Design" ect="" ect.="">
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|
|
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!
|
|
|
|