|
Hi,
I'm using session variable in my project, which is been used in each and every page. but right now i'm checking session in every page before using it's value.
Is there any other way to manage session. so that i need not to check session in every page?
Waiting for your valuable response.
Thanks
Krishna veer singh
krishna veer singh
|
|
|
|
|
once u give a value to session variable, it will remain d same, until the session expires or u modify that variable...so why u need to check that in every page...
|
|
|
|
|
sriharsha_12 wrote: until the session expires or u modify that variable
sriharsha_12 wrote: so why u need to check that in every page
Because it could have expired or been changed
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
krishnaveer wrote: Is there any other way to manage session. so that i need not to check session in every page?
There are ways, but simple way is this only.Whenever a pageload occurs have some common function that is called to check, whether session is alive or not ,accordingly take further actions.
For more details Have a look
|
|
|
|
|
I have an Ajax ModalPopupExtender, inside an UpdatePanel, with a Submit button that triggers a click event.
It works fine the first time. If after using it I display the page without the Popup, and then later show it
again, it works fine again. But if right after showing it (and the client submitting it), I display the page
with the popup showing again, it's displayed ok, but if Submit is clicked, it just disappears, but there is no postback to the server.
If I look at the html source sent to the browser in this second display, it contains extra code (something
about AjaxControlToolkit.ModalPopupBehavior.invokeViaServer etc.). But nothing is different in the code that
executes, except that the previous display was different. I've tried using UpdatePanel.Update(), but the behavior remains the same.
I have not been able to find any discussion on the web of this specific scenario. Can anyone help?
|
|
|
|
|
Hi,
I too have the same problem but in my case first time the modal popup will fire and call the server side code and in the next time if i click on the button which fires the modal pop up nothing happens.
please let me know if you get any solution
Thanks,
Vasanth
|
|
|
|
|
Thank you for commenting, Vasanth.
I found no solution, but I am using the following workaround:
- I send out the same page WITHOUT the popup (this seems to
clear whatever setting is causing the problem)
- and then send it out AGAIN, this time with the popup, which
then works ok
- however, if the second send is done too quickly after the
first, it sometimes produces a spurious "Event Validation.."
error - so I've had to turn off EnableEventValidation on
that page (which is not good, but I do my own programmatic
validation)..
Victor.
|
|
|
|
|
Hi,
How we can create ISAM(indexed sequential access method) files?
G. Satish
|
|
|
|
|
How does this related with ASP.NET ?
|
|
|
|
|
Respected,
How to Create Sheduling For Send SMS in asp.net
Please help .
Thanks And Regards,
Lalit
|
|
|
|
|
Nothing to do woth ASP.NET. Create some WindowsServices / Console Application with Schdule Time - That will send SMS to the given list of number.
Now how to send SMS for that you need to look at Google !
|
|
|
|
|
Hey create a windows service and set its time interval. Following are the links which help u...
For creating a windows service
Link
For sending sms
Link1
Link2
|
|
|
|
|
hi
im trying to build a form that enters data from textboxes into my xml file
i need to get to this :
<br />
<chores><br />
<day label="A" ><br />
<job price="30" product="bla bla" size="20x33" amount="22"/><br />
<job price="30" product="bla bla" size="20x33" amount="22"/><br />
<job price="30" product="bla bla" size="20x33" amount="22"/><br />
<br />
</day><br />
<br />
</chores>
can anyone please tell me what should i exactly write in my C# code to get this working?
thanks
modified on Friday, April 9, 2010 12:43 PM
|
|
|
|
|
So what is the problem?You can create the xml in C# very easily.Did you try something?
for samples have a look to the following links
-Link 1
-Link 2
|
|
|
|
|
You have to use XMLTextwriter for creating a Xml file.See below link for help
XMLTextwriter
|
|
|
|
|
First if all your question has nothing to do with ASP.NET. This is normal C# code, where you need to use System.Xml namespace and XmlTextWriter Class to write the XML Object in the file.
|
|
|
|
|
i did try something that is working
mlDocument doc = new XmlDocument();
doc.Load("chores2.xml");
XmlElement elmXML = doc.CreateElement("day");
string strNewCat = "<a>" + this.txtBoxAmount.Text + "</a>" +
"<b>" + this.txtBoxPrice.Text +"</b>" +
"<c>" + this.txtBoxAbout.Text + "</c>" +
"<d>" + this.txtBoxSize.Text + "</d>";
elmXML.InnerXml = strNewCat;
doc.DocumentElement.AppendChild(elmXML);
doc.Save(Server.MapPath("chores.xml"));
but it build the xml file not as i need it to be
my question was how can i build it this way
<chores>
<day label="XXX">
<job a="1" b="2" ..="">
<job a="2" b="3".../">
<day label=XXX>
<job a="1" b="2"../>
<job a="2" b=3".../>
</day>
<day label=XXX>
<job a="1" b="2"../>
<job a="2" b=3".../>
</day>
|
|
|
|
|
If you are going to post code, please learn to format it. Look at the code block or inline code items above the textarea you used to write your post.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
does it really bother you..?
i asked for someone to help me with my code not to teach me how to format my code cuz i know how
|
|
|
|
|
|
YES it really bothers us. That's why there are those nifty convienent code block tags for you to use. And responses like this to long-term members will get you noticed, and no one will be willing to help you in the future. Even if it does have a smiley face at the end.
|
|
|
|
|
hi , iam using asp.net2.0 with c#
in my gridview iam at page load event iam displaying data from view.
my 1st column in the gridview is checkbox, when user selects the checkbox and iam using paging in gridview, when user
selects the checkbox and selects the rows from first page or from any page, that have to be stored in database.
in my database the table contains
orderid int primary key autoincrement
productname nvarchar
price nvarchar
quantity nvarchar
total nvarchar
when user selects the rows then in database how to store multiple rows in that table field
can you give an example which helps me.
|
|
|
|
|
What is the problem you are facing in saving the multiple rows.You have several ways to do it.
either you save it one by one ie call db one by one for all rows those are selected.
or another way you can,create the input in xml form and send to db and there parse the xml and save it in the table.
|
|
|
|
|
my problem is in there is a primary key
orderid int primarykey autoincrement
productname nvarchar()
price nvarchar()
quantity nvarchar()
total nvarchar()
iam displaying data in gridview at page load event.my gridcontains 1st colums is check box when users selcts multiple records
then in table orderid is primary key , and the selected multiple rows from gridview can we store in that fields . can you give me related example which helps me.
|
|
|
|
|
check this latest post for ur issue:
http://opexsolution.com/forum/viewtopic.php?f=15&t=21&p=70#p70
|
|
|
|