|
<code><sessionState mode="Off|InProc|StateServer|SQLServer"
cookieless="true|false"
timeout="number of minutes"
stateConnectionString="tcpip=server:port"
sqlConnectionString="sql connection string"
stateNetworkTimeout="number of seconds"/></code>
<b>
Mode Off Indicates that session state is not enabled</b>.
Best Regards
-----------------
Abhijit Jana
View My Latest Article :- SpyNet : Your Network Spy
"Success is Journey it's not a destination"
|
|
|
|
|
<code><sessionState mode="Off|InProc|StateServer|SQLServer"
cookieless="true|false"
timeout="number of minutes"
stateConnectionString="tcpip=server:port"
sqlConnectionString="sql connection string"
stateNetworkTimeout="number of seconds"/></code>
<b>
Mode Off Indicates that session state is not enabled</b>.
Best Regards
-----------------
Abhijit Jana
View My Latest Article :- SpyNet : Your Network Spy
"Success is Journey it's not a destination"
|
|
|
|
|
Abhijit Jana wrote: Mode Off Indicates that session state is not enabled
Then he won't be able to access session. He don't want to expire the session, not disabling.
|
|
|
|
|
You can increase the session time out limit in web.config file. It won't help you much. I presume you are trying to implement "Remember me next time" kind of stuff ? If so use cookies to store that information and create session each time.
|
|
|
|
|
|
Hi All!
I have VS2005 installed on my machine, i am unable to open resource file in the editor, When i click on the resource file to open it i get an error.
"operation could not be completed, unspecified error".
If someone is having some idea about this error?
Regards
|
|
|
|
|
There are 9 directive like <% Page %>, <%Assembly%>, etc can u give me the usage of all the directive.
Regards,
LEE
|
|
|
|
|
9 directive !!!!!!!!
Can i see that ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
]]>,
]]>,
]]>,
]]>,
]]>,
]]>,
]]>,
]]> and
]]>
Regards,
LEE
|
|
|
|
|
You can google it and get complete documentation for all these.
|
|
|
|
|
|
Hi,
i have one project named P1 with lot of forms and usercontrol and one usercontrol named Login control.One more project is there .i want to use the usercontrol Login control in p1 to this project .how can i do that?
This is a asp.net Project not windows applivcation
Can anyone help me.It is urgent
With regards,
Anu
|
|
|
|
|
First add into the solution explorer and then drag drop into the form.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Hi,
How can i add it into the solution Explorer
Anu
|
|
|
|
|
Is this a user control(ascx file) or server control ?
|
|
|
|
|
|
Then it's not possible. You need to add that control to your project and use it.
|
|
|
|
|
Following is the code , i am doing , but the error is occuring while the execution of last line.
Error
A generic error occurred in GDI+.
Where I am doing wrong
SqlConnection con = new SqlConnection(connectionstring);<br />
con.Open();<br />
SqlCommand cmd=new SqlCommand();<br />
cmd.CommandText = "spSelect_a";<br />
cmd.Connection = con;<br />
cmd.CommandType = CommandType.StoredProcedure;<br />
DataSet ds = new DataSet();<br />
SqlDataAdapter ad = new SqlDataAdapter(cmd);<br />
ad.Fill(ds);<br />
byte[] b = (byte[])cmd.ExecuteScalar();<br />
MemoryStream ms = new MemoryStream();<br />
ms.Write(b, 0, b.Length);<br />
Bitmap bmp = new Bitmap(ms); <br />
bmp.Save(Response.OutputStream,ImageFormat.Bmp);
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Pankaj Garg wrote: A generic error occurred in GDI+.
What does the InnerException says ?
|
|
|
|
|
This is he only exception i am getting , the external exception was handled by the user code , was written on the Exception title.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
I think this code will work just try it. And let me know it's working or not just change image format as per requirement and variable name and also that database fieldname.
Response.Clear();
Response.ContentType = "image/jpeg";
System.Drawing.Image image = null;
Cmd = new SqlCommand("SELECT fieldname FROM tablename where field='" + id + "'", Con);
Cmd.CommandType = CommandType.Text;
SqlDataReader Dr = Cmd.ExecuteReader();
if (Dr.Read())
{
byte[] imageData = (byte[])Dr[0];
MemoryStream memStream = new MemoryStream(imageData);
image = System.Drawing.Image.FromStream(memStream);
image.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
}
|
|
|
|
|
Hi All,
I involved in developing a small web site. I need to filter Questions and it's answers from DataBase into asp.net pages, every page contains just 3 Questions and it's answers, and others questions will be filtered into new pages generated automaticaly according the number of Questions in the database. I need some tips or any idea or topics talking about this.
all Regards
Mr.Wonderful
|
|
|
|
|
Why do you need to create different pages? If you are developing with ASP.NET 3.5, you could use a ListView with paging support to display questions in groups of 3 and allow the user to navigate between the groups of questions using standard paging controls.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
pmarfleet wrote: If you are developing with ASP.NET 3.5, you could...
That's nice. Now, what if he isn't using 3.5?
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: Now, what if he isn't using 3.5?
He didn't specify which version of the framework he was using. In the absence of this information, I would have to assume he was using the latest version, i.e. v3.5.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|