|
|
You can rewrite the url in Application_BeginRequest.
Time is the best teacher; unfortunately it kills all of its students.
जय हिंद
|
|
|
|
|
Hi all,
I have to develop differant modules in dotnetnuke and using asp.net 3.5,
here i got stuck to integrate a asp.net application with a dotnet nuke.I have installed nuke and developed a mudule in which i find only ascx pages and ascx pages we need to use in nuke.can anyone please help me out in integrating a asp.net application with nuke with sample example or can provide steps or links with examples.
|
|
|
|
|
|
Hi,
i have to show values coming from dataset in to dropdown list,
when i tried like this
ddlRegion.SelectedValue = ds.Tables[0].Rows[0]["region_id"].ToString();
it is showing null value
ddlStatus.DataValueField = ds.Tables[0].Rows[0]["status_id"].ToString();
it is showing value while debugging but not displaying in dropdownlist
help me in populating data in dropdown.
|
|
|
|
|
have a look here[^] for a sample.
Calin
|
|
|
|
|
In your ddlStatus also assing the DataTextField.
ddlStatus.DataTextField= "Active"; // Text To be displayed in drop
down list.
ddlStatus.DataValueField = ds.Tables[0].Rows[0]["status_id"].ToString();
|
|
|
|
|
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.
|
|
|
|