|
This is so FRUSTRATING...
I was losing session information when embedding an iFrame inside a PHP site, so decided to switch from InProc mode of sessions to StateServer. Made/added the following lines to my web.config:
<br />
<sessionState mode="StateServer" timeout="60" cookieless="AutoDetect" stateConnectionString="tcpip=localhost:42424" /><br />
<pages enableSessionState="true"> <br />
<httpModules><br />
<add name="Session" type="System.Web.SessionState.SessionStateModule" /><br />
and yet, the first time I touch a Session variable I get a:
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.
I am using Master and Pages and the Session is in the Master Page_Load code behind.
Any help is greatly appreciated.
|
|
|
|
|
Steve van Niman wrote: I was losing session information when embedding an iFrame inside a PHP site,
So, you want to maintain Session for two different site ?
Have a look into this article, It may help you
Exploring Session in ASP.Net[^]
|
|
|
|
|
No - just one site. Just need to get it out of IIS. Server managing sessions is the same server; however, if this is in place, then I am set to start a server farm if necessary.
|
|
|
|
|
what about Iframe inside in PHP Site? I am not able to understand section ?
|
|
|
|
|
Please don't worry about iFrame in PHP at this point. I can't get this to run as a simple website on my machine...
|
|
|
|
|
Wow - sometimes it amazes me as to how frequently the "website" or "project" becomes corrupted in Visual Studio. At wits end, started brand new website and literally copied over web.config from website giving me issues with sessionState - StateServer. Worked out of the gates... Ok so my config was correct, so why would my existing site not work? Went to \windows\Microsoft.Net\Framework\n.n.nnn.release\Temporary ASP.NET Files\ and deleted all websites - still a no go.
Then remembering what one of my friends told me, "It is common for the solution/website to become corrupted. When this happens, copy all files to a new directory and start over. Bingo - works out of the gate. Lost two days on something that should have worked because the platform I'm on cannot remain uncorupted...
|
|
|
|
|
I want to create a feed back form in asp.net using VB script
anybody pls help how to code that
if user click submit button it send a mail to my id
i designed the user interface page but i cont able to code to onclick action
|
|
|
|
|
|
i think that code was in C# but i am using VB script in asp.net
i tried that its not working i designed a user interface in as feedback.aspx
using language as VB
|
|
|
|
|
I am not able to understand what is your exact problem. In your Feedback form you should have Email, Subject and Comments field ( May be different based on requirments ) . On click of submit button you need to send mail on Email Id. Now, how to send mail I have alredy told you.
I think your problem is something different and you are not able to express it . Please try to explain in properly so that we can help you out !!
Thanks !
|
|
|
|
|
I designed a user interface for a web form
i have 11 text box, 4 dropdown box, and 2 button
Button 1 name is submit
Button 2 name is Reset
Now i any user click the submit button the content what was filled by the user in the text box and dropdown box should mail to a email id in text format this the task what i want to do
i am using asp.net and language as VB
|
|
|
|
|
kn.nageshwaran wrote: i am using asp.net and language as VB
Quote Selected Text
If you had tried searching the Code Project articles you could have found this[^].
|
|
|
|
|
Hey buddies , I am a new to ASP. I am a C# programmer............................. But my customers wanted me to make them web Pages when I made a software in C# for them.......................I have learned an introduction to Web Development in HTML and PHP. But I wanted to know ASP.Net . One of my friend told me to work on PHP bcoz ...."U can get more free codes when u r in trouble even Tutorials" as he said. For now I wanted to develop Personal sites. But latter I also wanted to develop my own advertisement site.
So which one do u recommend me to use? i.e which one is better in all case.
Thank you.
modified on Sunday, October 4, 2009 10:19 PM
|
|
|
|
|
It Depends Upon the website You Are Developing?But You Will get the most Help for Microsoft technologies when compared to any other technologies..!But Also Dont Forget Your Are In ASP.net Forum..!
All The Best For Your Future..!
|
|
|
|
|
Ok tnx for your information. By the way for now I am going to develop for 2 persons a personal site. Then I also wanted to develop my own advertisement only site(if it makes me more money). By the way I also heard that web pages developed by Asp.Net are slower than others developed by php. Is that really true? Why?
|
|
|
|
|
|
thank u man. It really helps me.
|
|
|
|
|
CoderForEver wrote: thank u man
Any Time ..!
But Dont Forget to mark it answer if it helps..!
|
|
|
|
|
I have deployed my asp.net application local to my machine
and when I open IIS7 and select to brows my application it works fine
and the url appears like http://localhost/myapplication
but when I replace localhost with my machine name (i.e. http://mymachine/myapplication)
it bombs
I guessed it is an IIS configuration issue but failed to fix it
foreach(Minute m in MyLife)
myExperience++;
|
|
|
|
|
Mohammed Gouda wrote: I guessed it is an IIS configuration issue but failed to fix it
It might be helpful for for us if you give us the error message.
Did you also try with IPAdress instead of localhost?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Thanks Manas for your help
I found the problem
I had to disable firewall
foreach(Minute m in MyLife)
myExperience++;
|
|
|
|
|
Mohammed Gouda wrote: I had to disable firewall
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi
i want to display the site logo on address bar.
One person's data is another person's program.
--J.Walia
|
|
|
|
|
J walia wrote: i want to display the site logo on address bar.
It is called Favicon[^].
The simplest way is to create an icon (16*16 or 32*32), name it as favicon.ico and put it in the root directory of your website.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
<I have written code to test the SqlDataAdaptor's LoadOpton functionality for LoadOption.OverwriteChanges.
But the code that i written is not working.. Values are not getting overwritten
Here are the values which i am getting when i run the code
***Default***
Original Value: Chai, Current Value: Chai
***Values Before Reload***
Original Value: Chai, Current Value: Coffee
***LoadOption.OverwriteChanges;***
Original Value: Chai, Current Value: Coffee
Expected results are
***Default***
Original Value: Chai, Current Value: Chai
***Values Before Reload***
Original Value: Chai, Current Value: Coffee
***LoadOption.OverwriteChanges;***
Original Value: Chai, Current Value: Chai
Here is the code which i have written. i scratched my head almost 2hrs couln't get any answer.
Please let me know where i have done wrong..
protected void Page_Load(object sender, EventArgs e)
{
DataSet poductsDS = new DataSet();
string query = "Select ProductName, UnitPrice from Products";
string _conStr = System.Configuration.ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString;
SqlDataAdapter da = new SqlDataAdapter(query,_conStr);
da.Fill(productsDS);
Display(productsDS, "Default");
//updating table filed values
DataRow row = productsDS.Tables[0].Rows[0];
row["ProductName"] = "Coffee";
Display(productsDS, "Values Before Reload");
//Reloading
SqlDataAdapter da2 = new SqlDataAdapter(query,_conStr);
da2.FillLoadOption = LoadOption.OverwriteChanges;
da2.Fill(productsDS);
Display(productsDS, "LoadOption.OverwriteChanges;");
}
private void Display(DataSet ds, string Heading)
{
Response.Write("***" + Heading + "***");
Response.Write("<br/>");
DataTable table = ds.Tables[0];
DataRow row = table.Rows[0];
Response.Write(string.Format("Original Value: {0}, Current Value: {1}", row[0, DataRowVersion.Original].ToString(), row[0, DataRowVersion.Current].ToString()));
Response.Write("<br/>");
Response.Write("<br/>");
}
Satish
modified on Sunday, October 4, 2009 5:09 AM
|
|
|
|