|
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
|
|
|
|
|
Tridip Bhattacharjee wrote: if (dgList.Items[i].ItemType = ListItemType.Footer)
You should use the item data bound event to find the footer.
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 have one master page and one content page.whenever i am trying to capture a control of a content page from content page
at that time i getting error like object reference is not found.how could i fix this error.
tbhattacharjee
|
|
|
|
|
How does this differ from qustion 1 ?
You need to use findcontrol recursively, there is no guarentee that a control will be on the top level. You fix that error by not writing code that assumes the search succeeds.
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 )
|
|
|
|
|
are you searching for the control within the page? if so try searching for it within your content panel or whatever holder you're using for it such as
mycontentpanel.controls.item(0).findcontrol(mycontrol).
|
|
|
|
|
please give me small sample code by which i can find or capture a control of a content page from master page.
tbhattacharjee
|
|
|
|
|
If a control is always in the content, perhaps it belongs in the master page ?
this.Page.FindControl()
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 have made some of my columns in gridview invisible and now when i update my gridview the invisible column values are set to null
how can i update the gridview having invisible columns
madhu
|
|
|
|
|
You have to make that column visible before u r binding grid.After binding again u can make that column invisible.
Ex
GridEdit.DataSource = ds_projectSelect;
GridEdit.Columns[0].Visible = true;
GridEdit.DataBind();
GridEdit.Columns[0].Visible = false ;
hope that this will help u.
|
|
|
|
|
Hi,
Can I use <% = and %> tags to insert ASP.NET code snippets into my HTML? If yes? why doesn't the following code work?
<asp:RadioButton id="<% = r[i]["ID"].ToString() %>" runat="server" />
Also, if I use something like:
<asp:RadioButton id="SomeID" value="<% = r[i]["Value"].ToString() %>" runat="server" />
Any Ideas?
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
signbit wrote: Can I use <% = and %> tags to insert ASP.NET code snippets into my HTML?
Yes...
signbit wrote: <asp:radiobutton id="<% = r[i][" id"].tostring()="" %="">" runat="server" />
But what is r in your code?
<< >>
|
|
|
|
|
Try this:
<%String val=r[i]["ID"].ToString();>
<asp:RadioButton id="SomeID" value="<%=val%>' runat="server" />
If this does not work, use double quotes instead on single quotes.
r must be a public member.
Regards,
Arun Kumar.A
|
|
|
|
|
hi i been seeing web site which whent he user clicked edit on a perticular item another browser appear wit textbox for user to change the data of the the item they click edit and whent he update button is clicked the main browser would refresh itself
i would like to ask how is this done?
what method izzit using
is this possible with asp.net2?
|
|
|
|
|
Just view html code to see how it is done...
neodeaths wrote: is this possible with asp.net2?
Yes...
<< >>
|
|
|
|
|
in asp.net2 we use redirect to redirect the current page to the desired one
how can i make a new browser pop up?
also what code in my sub browser am i to put to make the main browser refresh?
|
|
|
|
|
neodeaths wrote: how can i make a new browser pop up?
using window.open(...) method to open up new window
neodeaths wrote: what code in my sub browser am i to put to make the main browser refresh?
try this window.opener.location.reload(); ..let me know if it works or not
<< >>
|
|
|
|
|
Error 104 The name 'window' does not exist in the current context
is the error given to me for the window.open()
do i have to import any thing like
using .....
|
|
|
|
|
Nope...those are javascript methods...Do you know how to how to use js function?
<< >>
|
|
|
|
|
rougly by the way can u comfirm if my thinking is correct
asp.net2 code behind files are handled at server means the calculation made in the code behind file are made at server side
where by the java script is made at client side?
|
|
|
|
|
However, in code behind you can generate javascript code to execute at client side...
<< >>
|
|
|
|
|
How do I get javascript such as that listed below to be read in an ASP file before the command <%response.redirect iurl(url)%>
<%id = request("id")
sql = "Select * from listings where id ="&id
open_recordset rs,SQL
hits = rs("hits") + 1
sql ="update listings set hits ="&hits&" where id = "&id
conn.execute(sql)
url = rs("url")
closelink(rs)
closeDB()%>
<%response.redirect iurl(url)%>
At the moment it just redirects to the new page without executing the javascript.
If I remove <%response.redirect iurl(url)%> then the javascript is read, however when I add <%response.redirect iurl(url)%> the javascript is ignored and it just redirects to the new page. Any ideas why this is happening?
|
|
|
|
|
Where do u want to call that java script function?Could u please be little bit clear?
|
|
|
|