|
hmm so far i see all the method are in java issit possible to have them written in the code side of the asp.net? in the file.cs file as my web sites is using c# language, because i may need to pass parameter over
|
|
|
|
|
you can use page.RegisterClientScriptBlock() in code behind language to use javascript method inside the code
|
|
|
|
|
window.open('abc.aspx', _blank); how do i pass some values along to the new browser? like passing parameters
|
|
|
|
|
use querystring like window.open('abc.aspx?id=0088', _blank)
|
|
|
|
|
id=0088
means the variable is id and the value is 0088 rite??
and on the receiving end abc.aspx how do i get the value??
............................
p.s thx for ur help i didnt realise the c# limitation was so big =X
|
|
|
|
|
I recommend that this point that you give up your current project, buy a book on ASP.NET and work through it. It's apparent that you don't really understand what ASP.NET does, or how it works.
Request.QueryString["id"] will return 0088 as a string. You can then use int.TryParse to parse it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
haha actually i been reading the book asp.net2 for dummys and learning it on my own so just trying to learn as i try
|
|
|
|
|
No - all you can do, as has been said, is write your javascript code to the page in C#. C# does not run on the client, javascript does.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi i tryed the java script u suggested how ever it doesnt seem to work it compile smoothly but when i click the button it keep saying error and load back to the same page without any new browser coming out.
below is how i test it out
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<script type="text/javascript"><br />
function OpenWindow()<br />
{<br />
window.open("Default.aspx", "_blank");<br />
<br />
}</script><br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head runat="server"><br />
<title>Untitled Page</title><br />
</head><br />
<body><br />
<form id="form1" runat="server"><br />
<div><br />
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click1" /></div><br />
</form><br />
</body><br />
</html>
Button1.Attributes.Add("Onclick", "<script>OpenWindow();</script>");
|
|
|
|
|
Hi All,
I m stuck very badly.. the scenario is : I have two web applications A and B
what i have to do exactly is from web Appl.. A i have to redirect the login name and password credentials to web appl. B without using Cookies, Querystrings..
I have tried with Stream but prob. with streams is its not redirecting to web application B..
please, tell me the solution..
Thanks in Advance..
-San
-- modified at 3:11 Monday 30th April, 2007
|
|
|
|
|
If you don't use cookies or a querystring, then your only other option is session state. I have imported session state from asp to ASP.NET before, via a service.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanks buddy!
but I don't think it would work in Asp.NET code...
actually problem is session state become reset when we switch over to another web application ..
|
|
|
|
|
Session state is your only other option, and it can only work if you have something like I had, where both apps are on one server, and a service stores the state between apps.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
<configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Message 1 Could not find schema information for the element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:configuration'. C:\Documents and Settings\050661M.SITEI\Desktop\Copy (9) of hog9\web.config 2 2 C:\...\Copy (9) of hog9\
this warning have been bugging me for a while as i dont understand it cause the schemas was auto created when i created the webpage anyway to get rid of the warning to make my project perfect:?
|
|
|
|
|
Hi ALL
How can i create PDF file from ASP.NET
I want to display my DB records in a PDF file
Thx in ADV.
Keerthi
|
|
|
|
|
You can't. ASP.NET has nothing to do with PDFs. You CAN use a .NET PDF library to create PDFs within an ASP.NET project, however.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
HI thx for reply
Yes i added a PDF Lib. to Ref
But it is working in local system only. Not in FTP
(I want to create a stand alone ASP.NET page for PDF file creation )
THAX
Keerthi
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
You can't create PDFs on the clint end, you can just write them on the server and send them to the client.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
My req.Ment is i want to display data from DB in PDF file
And the user will save as the pdf file
Thx
Keerthi
|
|
|
|
|
I am using JavaScript with ASP, when user sign in successful i want to javascript alert message "Sign in successful" only one time whenever user refresh page or something else I don't want to show message, please help me
Regard
Socheat
................
|
|
|
|
|
some we emit javascript from the codebehind like
Page.ClientScript.RegisterStartupScript(typeof(Page), "strScript", sScript);
so please tell me can i emit javascript by the above syntax whenever we will be working with update panel.
if not or if the syntax is different then please tell me the steps in detail with a sample code.
tbhattacharjee
|
|
|
|
|
The most annoying thing about you posting five questions in rapid succession, is that you only really asked three.
ATLAS does do a full page postback, but I don't think it's going to import client script, as it's not rendering the whole page.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
suppose i want to call my function Test() like
function Test()
{
alert("hello");
}
tbhattacharjee
|
|
|
|
|
One good way is to not use ATLAS, and write your own AJAX script.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
in asp.net 2.0 i have one master page and one content page.in my content page there is a datagrid not gridview.my logic is writtent over there
like whenever user will click on a button then i will fetch value from the texboxes placed in footer of the datagrid.
my code was
protected void btnSave_Click(object sender, EventArgs e)
{
for (i = 0; i <= dgList.Items.Count - 1; i++)
{
if (dgList.Items[i].ItemType = ListItemType.Footer)
{
string sUnit = ((TextBox)dgList.Items[i].FindControl("txtUnit")).Text.Trim();
}
}
}
but the problem is my iteration does not get into footer means if (dgList.Items[i].ItemType = ListItemType.Footer) this line never becomes true.
i always get the success whenever i used to do it in asp.net 1.1.but it is not working in asp.net 2.0.so please tell me what is wrong in my code.
so please tell me how could i do this in asp.net 2.0. please rectify my error if there is any and give me a sample code.
tbhattacharjee
|
|
|
|