|
Yes i did the following but still not working
|
|
|
|
|
It should work even without "Not IsPostback", Create a new application. May be there is problem in your current app.
|
|
|
|
|
Debug step by step, you will come to know the problem
|
|
|
|
|
Put the break point and check so that you will know where the error is.
Regards,
Satips.
|
|
|
|
|
It seems, you have set the TextMode property of the TextBox to Password. You cannot assign the Text for Password TextBox. If you do, it will be cleared automatically.
|
|
|
|
|
Is TextBox1.TextMode Password?
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
I have a web project which writes something in a Response object and displays to the user in an excel file. The code looks like:
<br />
Response.Clear();<br />
Response.ContentType = "application/vnd.ms-excel";<br />
Response.Charset = "";<br />
Response.AddHeader("content-disposition", "attachment; filename=abc.xls");<br />
this.EnableViewState = false;<br />
<br />
XmlTextWriter xml = new XmlTextWriter(Response.OutputStream, Encoding.UTF8);<br />
<br />
...<br />
...<br />
...<br />
...<br />
<br />
Response.Flush();<br />
Response.End();<br />
When I try to run this code it runs perfectly. But when I try to excapsulate it in a Class Library, it says Response object cannot be used in the context. True, I understand. But then is there a way I can response the following in memory text to user to display excel.
If my mind can conceive it, and my heart can believe it, I know I can achieve it.
|
|
|
|
|
HttpContext.Current.Response
only two letters away from being an asset
|
|
|
|
|
My Class Library is not able to use HttpContext.Current.Response. I tried using the namespace System.Web too. But invain. Pls help.
If my mind can conceive it, and my heart can believe it, I know I can achieve it.
|
|
|
|
|
Pass the Response Object as a parameter to the Class and use that Object to do the Response actions.
|
|
|
|
|
Unnecessary, the code is running in appdomain and thus has access to the Response object directly.
only two letters away from being an asset
|
|
|
|
|
Hello any one knows how to add controls to gridview dynamically and get the value of it
Please help me..........
Nagu
-- modified at 1:37 Tuesday 19th June, 2007
|
|
|
|
|
Please select the suitable topic for your subject.
Dont post it as "please help me"
Regards,
Satips.
|
|
|
|
|
Sorry i am new to this forum
|
|
|
|
|
Before posting did you read the guidlines for posting it in the forum.
Regards,
Satips.
|
|
|
|
|
DataGridViewComboBoxColumn Column2 = new DataGridViewComboBoxColumn();
this.dataGridView1.Columns.AddRange(new DataGridViewColumn[] {Column2});
|
|
|
|
|
|
Hello To Everyone,
I used as follow:
dim pass as string
pass="Hemant"
TextBox1.Text = pass
i'm wrting the code Page_load...
it is working for label but not textbox
but nothing is coming in textBox....
What is problem.?
Suggest me what eRRor is ther..
Thank You.
-- modified at 1:36 Tuesday 19th June, 2007
|
|
|
|
|
Where are you using this code?
only two letters away from being an asset
|
|
|
|
|
i'm wrting the code Page_load...
it is working for label but not textbox
-- modified at 1:34 Tuesday 19th June, 2007
|
|
|
|
|
It would be helpful to post your code. Are you setting the textbox anywhere else?
only two letters away from being an asset
|
|
|
|
|
Hi,
I have taken Input(File) html control for uploading of files to the server.It's working good on a local machine.When set up is done at server, it's not working.
The problem i noticed is that when i attach a file from my machine to the server, server is considering the file is from it's machine and raises the exception(File does'nt exist in the path specified).i.e,It is taking the file locally even the file attached is from client machine.
I would take the FileUpload control(server control) but our entire application is being developed using client callback.So i opted for Input(File) html control for uploading of files.
plz help me out of this.
|
|
|
|
|
Hi,
Iam working in a webapplication in which I am using RSA cookie authentication to login. I login using secure RSA ID in which i login using different users with different Tokens such as Admin , client etc.., for ex.. if i login using Admin account and RSA pincode i have to redirect to a different destination page than that of the client account's destination page. The thing is that i have written RSA secured Cookie for login in a page called Authorize.aspx as follows in the HTML page of Authorize.aspx:
<%
Dim RSACookieAPI
'//Response.Cookies["RSACookieAPI"].Expires = DateTime.Now.AddYears(-30)
RSACookieAPI = Server.CreateObject("Rsacookieapi.RSACookie")
%>
Hello <%=RSACookieAPI.RSAGetUserName() %>
<%
session("rsauser")=RSACookieAPI.RSAGetUserName()
%>
<%
Response.Redirect("auth.aspx")
%>
My question is that when i click logout in the destination page for each account the RSA cookie's time frame and user's session should expire and come to the home page. I don't know how to end the RSA cookie's session as i have different accounts in each page from which i logout. So pls help me with this issue. i think i have confused u a bit with my question. Sorry for that. pls help me with this issue.
Thanks and Regards
Vijay.
|
|
|
|
|
Try This
protected void Session_End(Object sender, EventArgs e)
{
Response.Cookies["__rsauser"].Expires = DateTime.Now.AddDays(-1);
}
manojchilhate
|
|
|
|
|
Thans Manoj,
But how can i call this procedure in my source page, as i click the home link i have to go to a page called UnAuth.aspx in which i have to remove my session completely and have to go to the Home page. So i have to write the coding only in UnAuth.aspx. For that i can't use the cookie i have created in Auth.aspx. How can i call that RSACookie which was initialised in Auth.aspx. pls help me with this issue Manoj.
Regards
Vijay.
|
|
|
|