|
When I click save button i am calling a function to RegisterClientScriptBlock
Page.RegisterClientScriptBlock("keyClientBlock",jScript);
How should i disable this...I cant remove this function bcoz i have one page inside another page...
Regards,
Sivaprasad
|
|
|
|
|
If you are re-posting a form by reloading the page, the browser sends up this warning. This is a security precausion, so that the user won't re-post data without being aware of it.
The warning might be able to disable manually in the browser, but not by using script.
---
b { font-weight: normal; }
|
|
|
|
|
hi,
i am having an appliction with one MultiLine text box and one lable.
if i selected on sentence in multi line text box it should diply on lable. using java script .
kamalnath
|
|
|
|
|
im trying to return a string value from a windowDialog.
not having much luck, ive got this closeDialog() funtion that i set the return value (retVal) from the value of a Label. the label have a Text value init ("55188") but my dialog continually return null
anm i doing somthing stupidly wrong, any help would be apreciated.
CODE:
<code><TD style="WIDTH: 127px; HEIGHT: 27px"><asp:label id="lbCustID" runat="server"></asp:label></TD>
function closeDialog()
{
var retVal = document.getElementById('lbCustID').getAttribute("Text");
window.returnValue = retVal;
//document.write(retVal); - for debug
window.close();
}
</code>
Thanks.
-- modified at 7:02 Friday 18th August, 2006
|
|
|
|
|
ended up using
document.getElementById("lbCustID").innerHTML;
works perfectly!
|
|
|
|
|
Hi there,
I'm using .net 1.1 and I have the following settings in my web.config:
<authentication mode="Forms">
<forms name="TRVAUTH" loginUrl="/logon.aspx" protection="All" timeout="20" slidingExpiration="true" path="/"></forms>
</authentication>
<authorization>
<allow users="?" />
</authorization>
And then, later on...
<location path="profile.aspx">
<system.web>
<authorization><deny users="?" /></authorization>
</system.web>
</location>
This config worked fine. Whenever an unauthorized user requested the profile.aspx, he was redirected to the logon.aspx, authorized and sent back to the profile.aspx (if authorization was successful). That was yesterday. I've done some bugfixing last night and it was a long night. Today I startup my web-project and do what I did a million times for the last 10 days: I request (unauthorized) the profile.aspx. But WTF, my browser shows me a login dialog instead of showing me the logon.aspx like he did yesterday!!!
What could I have possibly messed up?
Thanks in advance!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
Matthias,
There are a couple of questions to narrow down the scope:
+ Do you have this problem with different browsers?
+ Do you by any chance to disable the anonymous access in the IIS snap-in?
+ Do you have this problem with other web pages?
|
|
|
|
|
hi there,
I already figured what the problem was: I've build in a bug where I'd append (manually) a ReturnUrl to specific pages. One shouldn't do that .
Anyway, thanks for your reply and a good day from rainy berlin.
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
I would like to know whether the caching will have an impact in the case of Network Load Balancing. If there are more than one application server, how to do the caching? I have a doubt that if data is cached in one server and the next request goes to some other server, the cached data may not be there. I would like to know the answer for this with/without IP Affinity masking.
|
|
|
|
|
|
Hi I want to do paging in the datalist.
For that i wrote the code:
public int intStart=0;
private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
ViewState ["Start"]= 0;
list();
}
}
public void list()
{
conn.Open();
SqlDataAdapter sda = new SqlDataAdapter("select name from sampledatagrid",conn);
DataSet ds1 = new DataSet();
intStart = (int) ViewState["Start"];
ViewState ["PageSize"]=7;
sda.Fill(ds1,intStart,(int)ViewState["PageSize"],"sampledatagrid");
dlistSample.DataSource=ds1.Tables[0].DefaultView;
dlistSample.DataBind();
conn.Close();
}
private void lnkPrevious_Click(object sender, System.EventArgs e)
{
intStart = (int) ViewState["Start"] -(int) ViewState["pageSize"];
ViewState["Start"] = intStart;
if (intStart <= 0 )
{
ViewState["Start"] = 0;
}
list();
}
private void lnkNext_Click(object sender, System.EventArgs e)
{
int dlistcount = dlistSample.Items.Count;
intStart = (int)ViewState["Start"] + (int)ViewState["pageSize"];
ViewState["Start"] = intStart;
if ( dlistcount < (int)ViewState["pageSize"] )
{
ViewState["Start"] = (int)ViewState["Start"] - (int)ViewState["pageSize"];
}
list();
}
}
Here the values are displayed correctly in the Datalist., But If i cliks the Next or previus linkbutton(<< or >>) at the time it shows the error:
Object reference not set to an instance of an object.
Error occured in this line:
intStart = (int)ViewState["Start"] + (int)ViewState["pageSize"];
How can we solve this one?
Prabu.T
|
|
|
|
|
on the pageindexchanged event of the datagrid write this code.
DataGrid.CurrentPageIndex = e.NewPageIndex;
after this line call the datagrid to load the contents again
this will work fine.
Vipin
|
|
|
|
|
How do i display the contents dynamically on the right pane of the IE by clicking on a link in tree view? tell me how do i create frames?
|
|
|
|
|
Hi,
BharadwajN wrote: tell me how do i create frames?
You can insert the Frame Set from Visual Studio, directly. Then set the pages to be displayed in the frames.
<marquee>"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
Hi,
How I can get the server side control : radio buttonlist's selected value through javascript.I want to get the selected value on each item selection without posting back..
please show me the right way.
Thanks,
RPM
SoftwareDeveloper(.NET)
|
|
|
|
|
one way could be that onclick of the radio button you iterate through all the elements and then get the value of the element which is checked.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
Thanks much for the reply..Can I get some cod snippet..
Thanks RPM,
SoftwareDeveloper(.NET)
|
|
|
|
|
Hi,
I have a load button which will call a method called btmExport_Click when itz clicked..
Its working fine but my problem is this event is called twice. (ie) after click and again on page load...how can i detach this event on page load(after click)to avoid firing that event again
I am not explicitly calling that function in page load
Regards,
Sivaprasad
|
|
|
|
|
have you checked the ispostback in the load event?
Best Regards,
Apurva Kaushal
|
|
|
|
|
YES i HAVE CHECKED AND MORE OVER I AM NOT CALLING THIS FUNCTION(btn_Export_Click)) ON PAGE LOAD
Regards,
Sivaprasad
|
|
|
|
|
Make sure that autoeventwireup attribute of page directive is set to false
|
|
|
|
|
AutoEventWireUp of the page directive is alreddy set to false..still...
still my issue is not solved
Regards,
Sivaprasad
|
|
|
|
|
|
Hai,
I have a webuser control enriched with some web server controls.In a web form,I have to refer the properties of the controls of webuser control.While I am referring those properties, an error is raising as
'<usercontrolname>.protected dim with events <controlname> as system.web.ui.webcontrols.textbox' is not accessible in this context because it is 'protected'.
Where can I declare the control as public in a web application? and how we can do that?
Any suggestions......please welcome...
-Priya
|
|
|
|
|
U can Refer the controls in the usercontrol
by ((controltype)Page.FindControl("controlId")
((Button)Page.FindControl("btnxxx"))
Regards,
Sivaprasad
|
|
|
|