|
Please provide the complete code to know the problem.
Meanwhile ensure that you have set the control properly for DataTextField and Value Columns before DataBind
ddlRegion.DataTextField = "region_id"
ddlRegion.DataValueField = "region_value"
If the above code exists then when you assign values with either SelectedIndex or SelectedValue or SelectedText should work..
|
|
|
|
|
Hi every one!
i am facing a small issue pls help me out!
In my application i am playing a video in iframe (which is opening as pop up)in WM player or Quicktime player.My issue is whenever i close that pop up still that video is still playing in background.pls tell me how can i stop it's playing when ever that pop up is closed.
|
|
|
|
|
Hello Everybody
For Online Ordering System there is some criteria like
1. Add Product into Shopping Cart (product.aspx)
2. Shipping Address (shipping.aspx)
3. Make Payments (payments.aspx)
4. Confirmation (confirmation)
As Navaneeth said that keep order information into session table is not a good idea.
Now I facing some problem to keep pre-order information into tempOrder data table. So I need to know how will I handle the following information.
1. After adding product into shopping cart if the customer close the window then how will I delete that order information. (i do have custID into tempOrder table). How do I know browser is closed by customer or there is an internet connection problem.
2. All those 4 criteria has to be success before placing an order.
3. Mean anything happen before that time I have to delete order information for that customer
Please give me some idea.
Thanks in Advance
Sarfarj Ahmed
|
|
|
|
|
Sarfaraj Ahmed wrote: 1. After adding product into shopping cart if the customer close the window then how will I delete that order information. (i do have custID into tempOrder table). How do I know browser is closed by customer or there is an internet connection problem.
There is no way to know when a browser window is closed. You can do couple of tricks though
1- Set a JS timer on the client, when the timer is set, make a call to your server to end the session, then you can clean tempTable entry for the given custID.
2-Time Stamp your tempTable entry, then run a job on given interval to wipe out all expired records
3-On SessionEnd, clean your tempTable entries for the given custID
Yusuf
|
|
|
|
|
Dear Yusuf
Thank you very much for your help
Regards
Sarfaraj
Sarfarj Ahmed
|
|
|
|
|
I'm not sure if you can use Ajax and onunload enent
|
|
|
|
|
Hi Guys
You have probably heard this question before.
I sit and try to create a Master Page with nested Master Page in
That I had intended is this:
I have a Master Page (globalMaster.Master) which contain the Header and Footer.
In the Master Page I have a nested master of the left menu (leftColumnNav.master) and right menu (RightColumnNav.master)
In addition, I have Content Placeholder for my content.
My problem is that I neither get my left or right menus to show. While the text in the middle (content) is showing fine.
I lists the code (yes is f. ..... long)
What do I do wrong and is there a more clever way to do it.
Themes?
I'm using VS2008
GLOBAL MASTER
<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="GlobalMaster.master.vb" Inherits="WorkMasterpages.GlobalMaster" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>TESTER Masterpage</title>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
<link href="xxxxx.css" rel="stylesheet" type="text/css" />
<link href="yyyyy.css" rel="stylesheet" type="text/css" />
</head>
<body class="White">
<div id="main_wrapper">
<div id="header">
<div id="header_inner">
<h1>Tester</h1>
</div>
</div>
<div id="threecolwrap">
<!--encloses the three columns-->
<div id="twocolwrap">
<!-- encloses the left and center columns-->
<div id="nav">
<!-- the left column-->
<ASP:CONTENTPLACEHOLDER ID="LEFTCOLUMNNAV" RUNAT="SERVER"></ASP:CONTENTPLACEHOLDER>
</div>
<!-- end nav div -->
<div id="content">
<!-- the center column -->
<div id="content_inner">
<ASP:CONTENTPLACEHOLDER ID="CONTENTPLACEHOLDER1" RUNAT="SERVER"></ASP:CONTENTPLACEHOLDER>
</div>
<!-- end content inner -->
</div>
<!--end of content div-->
</div>
<!--end of twocolwrap-->
<div id="promo">
<ASP:CONTENTPLACEHOLDER ID="RIGHTCOLUMNNAV" RUNAT="SERVER"></ASP:CONTENTPLACEHOLDER>
<!--end of inner promo div-->
</div>
<!--end of promo div-->
</div>
<!--end of threecolwrap div-->
<div id="footer">
<div id="footer_inner">
<p>Footer</p>
</div>
<!--end of footer inner div-->
</div>
<!--end footer -->
</div>
<!--end main_wrapper-->
</body>
</html>
------------------------
leftColumnNav
<%@ Master Language="VB" MasterPageFile="~/GlobalMaster.Master" AutoEventWireup="false" CodeBehind="LeftColumnNavMaster.master.vb" Inherits="WorkMasterpages.LeftColumnNavMaster" %>
<asp:Content ID="Content2" ContentPlaceHolderID="leftColumnNav" runat="server">
<div id="nav_inner">
<ul>
<li><a href="#">Nav item 1</a></li>
<li><a href="#">Nav item 2</a></li>
</ul>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
----------------------
RightColumnNav
<%@ Master Language="VB" MasterPageFile="~/GlobalMaster.Master" AutoEventWireup="false" CodeBehind="RightColumnNav.master.vb" Inherits="WorkMasterpages.RightColumnNav" %>
<asp:Content ID="Content4" ContentPlaceHolderID="RightColumnNav" runat="server">
<div id="promo_inner">
<h3>Højre menu</h3>
<p>tester</p>
</div>
</asp:Content>
---------------------
This page is used to view the content. Is not a master page but a plain. . aspx
<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/GlobalMaster.Master" CodeBehind="Home.aspx.vb" Inherits="WorkMasterpages.Home"
title="Untitled Page" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h2>xxxxx</h2>
<p> bla bla bla bla</p>
</asp:Content>
|
|
|
|
|
don't post the same question again. If you make a mistake, you can use the delete button to delete the second entry.
Yusuf
|
|
|
|
|
|
Hi Guys
You have probably heard this question before.
I sit and try to create a Master Page with nested Master Page in
That I had intended is this:
I have a Master Page (globalMaster.Master) which contain the Header and Footer.
In the Master Page I have a nested master of the left menu (leftColumnNav.master) and right menu (RightColumnNav.master)
In addition, I have Content Placeholder for my content.
My problem is that I neither get my left or right menus to show. While the text in the middle (content) is showing fine.
I lists the code (yes is f. ..... long)
What do I do wrong and is there a more clever way to do it.
Themes?
I'm using VS2008
GLOBAL MASTER
]]>
<title>TESTER Masterpage
<asp:contentplaceholder id="head" runat="server" xmlns:asp="#unknown">
<asp:contentplaceholder id="LEFTCOLUMNNAV" runat="SERVER" xmlns:asp="#unknown">
<asp:contentplaceholder id="CONTENTPLACEHOLDER1" runat="SERVER" xmlns:asp="#unknown">
<asp:contentplaceholder id="RIGHTCOLUMNNAV" runat="SERVER" xmlns:asp="#unknown">
------------------------
leftColumnNav
]]>
<asp:content id="Content2" contentplaceholderid="leftColumnNav" runat="server" xmlns:asp="#unknown">
<asp:content id="Content3" contentplaceholderid="ContentPlaceHolder1" runat="server" xmlns:asp="#unknown">
----------------------
RightColumnNav
]]>
<asp:content id="Content4" contentplaceholderid="RightColumnNav" runat="server" xmlns:asp="#unknown">
---------------------
This page is used to view the content. Is not a master page but a plain. . aspx
]]>
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="server" xmlns:asp="#unknown">
xxxxx
bla bla bla bla
|
|
|
|
|
|
Yes i'm sorry
I know i've posted two same question - it's my first time on this forum.
Ok I have studied the link, you gave me. But can't get the code to work on my local server.
What do I do wrong? Take a look of my code.
TIA
Bebbob
|
|
|
|
|
Hi
I have a form which has a mixture of text boxes and drop down lists. The data that a user enters in through the form are sent off to a database query with the results appearing in a gridview on another page. To give the user flexibility the values they enter are stored in session variables, which after they have seen their results in the gridview page, they can click back and see their parameters. All of this works great, but I have a big problem in that the values on the form can't be changed!! Even though I can enter in new values on the form and click submit, when I see the results in the gridview, I am seeing the results of the first query, and when I click back I see the parameters of the first entry too!
Further, when I run the page in debug mode in Visual Studio 2008, I can confirm that the values in the textboxes and dropdown lists are not showing the amended values. In my submit button I do reset my Session Variables, and then give them new variables to hold by passing the values from the text boxes and dropdown lists.
So, my scratching head question is - why can't reset my form to show the new values I have entered in?
Can someone please help me!
|
|
|
|
|
check all the places your are setting the session variables.
It is very hard with out looking on the code to know what is going on. post some of the code snippets where you are setting your session variables
Yusuf
|
|
|
|
|
Hi
On my page load I have set a Session Flag called keepsession, which is set by the result page. If this flag is true on load of the page then the session variables, which are set when the submit button is clicked will pass the values from the sessions to the textboxes and dropdown lists, else nothing goes to them. This is working, because if I enter the form from a different part of the site, the boxes and lists are empty, which is what I want, and if I enter the page from the results page, the parameters from the first query are present.
The problem being is that I can't enter in new values to overwrite the old ones.
On my Page Load on the form page, I have
If keepsession = true then
TextBox1.Text = Session("var1")
TextBox2.Text = Session("var2")
Else
Session.Remove("var1")
Session.Remove("var2")
End If
On my button Submit
'Make sure sessions are cleared down
Session.Remove("var1")
Session.Remove("var2")
Session("var1") = TextBox1.text
Session("var2") = TextBox2.Text
'Stored Procedures go here to pass parameters to Db
Gridview takes the result from the stored procedure, which goes into a session variable. This session variable is taken in to a SqlDataSource called by the gridview to show the results on the second result page.
This is all I have done. It is not really complicated stuff.
On the debug in my button submit method and on the page load method the text boxes etc shows the values from the first query not the new values I have entered in
What do you know what the problem is?
|
|
|
|
|
AndyASPVB wrote: On my page load I have set a Session Flag called keepsession, which is set by the result page. If this flag is true on load of the page then the session variables, which are set when the submit button is clicked will pass the values from the sessions to the textboxes and dropdown lists, else nothing goes to them.
I'd simplify as follows
Create your session variables the first time you need it. From that time, I'd not remove them at all, either I set the value or I clear the value. Then
if session variables exist then load to the text box.
TextBox1.Text = Session("var1")
TextBox2.Text = Session("var2")
In this case it will have either a previous string or String.Empty whenever you clear it.
I think this will simplify your code and you can then debug it wherever your are settings/clearing it.
just my 2cents.
Yusuf
|
|
|
|
|
Try adding the following to the start of your form_load sub:
If IsPostBack then
Return
End If
If it works, it's because the submit button postback forces the form_load to happen, which resets the control values. The fix avoids that.
If it doesn't work, then I'm stymied.
|
|
|
|
|
May be it is because you are not refreshing the page.Just make a temporary
button to refresh dataset and gridview.
|
|
|
|
|
|
You should change the message title, for instance 'JOTD' looks more appropriate.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: You should change the message title, for instance 'JOTD' looks more appropriate.
and moved to Lounge.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
zarinapdm wrote: Hello friends Smile ,
I am looking for a personal tutor who may be able to teach me ANY of the following technologies:
- C#, ASP.NET 3.5, Visual Studio 2008, MSSQL 2008
- Siverlight, Ajax, Office Sharepoint Designer, designing websites within sharepoint.
- Web services, SOA, UDDI, SOAP, WSDL, XML
- WSS 3, MOSS 2007 Configuration and development
- Object oriented analysis and design
- PHP 5, MySQL
Please send your response to zarinapdmATyahooDOTcom.
This is an obvious attempt at harvesting email addresses for some nefarious purpose.
zarinapdm wrote:
I have an interest in travel and software development.
I'm willing to bet that most of the people here share the same interests...
zarinapdm wrote:
so receiving personal coaching in another country is what I am looking for.
Sounds like you need to find a hooker.
zarinapdm wrote:
I have some analysis and programming experience. Your role is to teach me step by step ANY of the above technologies within 6-8 weeks.
Is six weeks really enough?
zarinapdm wrote:
You should have least 5 years of work experience in ANY of the above set of technologies. You should have the ability to teach technical concepts to others.
It still sounds like you need to find a hooker.
zarinapdm wrote:
You must speak English.
DAMN! I was *almost* qualified!
zarinapdm wrote:
*** Time: Around June-July 2009 or to be arranged.I can personally come to your country to be your student.
This will only work if all of these requiremebnts are met:
a) you're a female
b) you're hot
c) you can't out-run me
d) you can convince my wife it really is programming I'll be teaching you
zarinapdm wrote:
*** Hours of personal tuition required:2 hours per day. 6 days, approximately up to 8 weeks (2*6*8=total 96 hours)
First it was 6 weeks - now it's 8. So which is it? (I don't know if I can fool my wife for the extra two weeks).
zarinapdm wrote:
*** A Single room or shared accommodation is required near your area.Room Budget is China Yuan Renminbi 1200 per month or 300 per week.
Well, that pretty much kills convincing the wife...
zarinapdm wrote:
*** My budget for your personal tuition is China Yuan Renminbi 1200 per month or 300 per week.My total budget for tuition and accommodation per month is Renminbi 2400. Or equivalent currency. It is what I can afford at the moment. These rates are slightly negotiable.
So how much is that in English?
zarinapdm wrote:
I will pay 20% bonus for being a good host.
It still sou8nds like you need to find a hooker.
zarinapdm wrote:
===============================================
The above message is not valid after Dec 2009.
===============================================
I don't like time limits.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: ===============================================
The above message is not valid after Dec 2009.
===============================================
I don't like time limits.
Even if the time limit is after the teaching date? Lesson number 1 should be - December comes after June/July.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys
|
|
|
|
|
China Yuan Renminbi 1200 = ~$175 US ... good luck with that ... although I suppose in come countries that is a fortune ... but probably not many of the ones where English is a primary language
he would be better off using the money to get good internet access and look for free or very low cost online courses.
...now where is that black rose...
Steve
_________________
I C(++) therefore I am
|
|
|
|
|
I do not like your hooker comments. It reflects your own culture only.
I just want to learn the technology.
|
|
|
|