|
I am stucked in to a problem. I am working on a shopping cart project. When a user selects an category from the menu, it showcases the subcategories related to that category. It is showcased like this:
first the image (in the image button control) then below it the name of the category (in the hyperlink control). Both are clickable. Now if the user further clicks on any of the sub category, the name and the category id is passed to the next page through query string. Suppose the name of the category is "Spirit Dispensers & Measures". When I am retrieving this through request.querystring, the problem arises i.e
ch_name = Request.QueryString["name"];
While debugging by using breaking point I found that the variable ch_name is showing only "Spirit Dispensers" and when I am checking the QueryString by mouseover it is showing like this "Spirit+Dispensers+&+Measures" .
But I want the full name in the variable as "Spirit Dispensers & Measures" . So please help me out. Its really urgent.
Waiting for your earliest response.
Actually I am passing it like this:
so how to do it in inline code.
<asp:ImageButton ID="ImageButton1" runat="server" Height="100px" Width="100px" ImageUrl='<%# Eval("cat_image") %>' PostBackUrl='<%# "SubCategory.aspx?name=" + DataBinder.Eval(Container.DataItem,"category_name")+ "&cat_id=" + DataBinder.Eval(Container.DataItem,"category_id")%>' /><br />
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"category_name") %>' NavigateUrl='<%# "SubCategory.aspx?name=" + DataBinder.Eval(Container.DataItem,"category_name")+ "&cat_id=" + DataBinder.Eval(Container.DataItem,"category_id")%>' Font-Underline="false" Font-Bold="true" Font-Names="verdana" Font-Size="Small" ForeColor="#336699" />
cheers,
sneha
|
|
|
|
|
//encode
string aa = "Spirit Dispensers & Measures";
string url = string.Format("Default1.aspx?name={0}", Server.UrlEncode(aa));
Response.Redirect(url);
//decode
ch_name = Server.UrlDecode(Request.QueryString["name"]);
Padmanabhan
|
|
|
|
|
ya, Padmanabhan is correct and I have tried it. you can use Server.UrlEncode()
|
|
|
|
|
Database
Name Product Target Achieved
AAA A1 5 4
AAA A1 3 1
BBB B1 8 5
BBB B1 2 1
CCC C1 56 4
CCC C1 43 32
Grid View
A1 B1
Name Target Achieved Target Achieved
AAA 5 4 3 1
BBB 8 5 2 1
CCC 56 4 43 32
Total 69 13 48 34
i want result like that any one tell solution
|
|
|
|
|
If you use Oracle there is function rowtocol(), you can use that as follows,
SELECT a.deptno, a.dname, a.loc,
rowtocol('SELECT DISTINCT job FROM emp WHERE deptno = ' ||a.deptno) as jobs
FROM dept a;
Which database are you using ?
|
|
|
|
|
i am using sql server 2005
|
|
|
|
|
|
Hi all,
I have textboxes with both single line and multiple line entry. I have noticed that the fonts are different between the two types..
i have been used a CSS class..in that Body part i have given the fonts...
body
{
font-family:Century Gothic,"Trebuchet MS", Tahoma, Arial, Verdana, Helvetica;
margin: 0;
font-size: 10px;
overflow: auto;
background: #ffffff;
}
but still the fonts are diffrent for textbox and textarea...
I would like to set them to be the same. Can someone tell me how to fix that?..
thanks in advance...
|
|
|
|
|
//css
.text { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; }
<asp:textbox id="TextBox1" runat="server" cssclass="text">
<asp:textbox id="TextBox2" runat="server" textmode="MultiLine" cssclass="text">
Padmanabhan
|
|
|
|
|
but am not adding any CSS specifically to any textbox..it should apply the same which i gave in the body part,as what i mentioned...
|
|
|
|
|
this is my code:
<object height="451" width="547" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0">
<param value="/temp/Player.swf" name="movie" />
<param value="high" name="quality" /><param value="false" name="menu"/>
<param value="transparent" name="wmode" />
<param value="true" name="allowFullScreen" />
<param true="" value="FlvPath=Http://localhost/temp/200901161841142187.flv&autoStart=" name="FlashVars" />
<embed height="451" width="547" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" quality="high" menu="false" flashvars="FlvPath=Http://localhost/temp/200901161841142187.flv&autoStart=true" allowfullscreen="true" src="/temp/Player.swf" />
Why it can't play?
Thanks.
|
|
|
|
|
//you can use like this... Preview is my folder name and TRAD.AVI is my video name
<embed src="Preview/TRAD.AVI" style="HEIGHT: 331px; LEFT: 83px; TOP: 171px; WIDTH: 538px" />
Padmanabhan
|
|
|
|
|
still can not play.
only display a Blank region.
|
|
|
|
|
//I am using the same .SWF format file. It plays fine for me.
<embed src="Preview/VISUALISE.SWF" style="HEIGHT: 331px; LEFT: 83px; TOP: 171px; WIDTH: 538px" />
Padmanabhan
|
|
|
|
|
You can use this object.
Here "Images_View/globe.swf" is the complete path of my flash file and set hight and width as per your requirement.
Hope this will helpful for your.
<OBJECT id='hcp' codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'VIEWASTEXT>
<PARAM NAME='_cx' VALUE='20585'>
<PARAM NAME='_cy' VALUE='5054'>
<PARAM NAME='FlashVars' VALUE='20585'>
<PARAM NAME='Movie' VALUE='Images_View/globe.swf'>
<PARAM NAME='WMode' VALUE='Transparent'>
<PARAM NAME='Play' VALUE='-1'>
<PARAM NAME='Loop' VALUE='-1'>
<PARAM NAME='Quality' VALUE='High'>
<PARAM NAME='SAlign' VALUE=''>
<PARAM NAME='Menu' VALUE='0'>
<PARAM NAME='Base' VALUE=''>
<PARAM NAME='AllowScriptAccess' VALUE='always'>
<PARAM NAME='Scale' VALUE='ShowAll'>
<PARAM NAME='DeviceFont' VALUE='0'>
<PARAM NAME='EmbedMovie' VALUE='0'>
<PARAM NAME='BGColor' VALUE='FFFFFF'>
<PARAM NAME='SWRemote' VALUE=''>
<EMBED src='Images_View/globe.swf' quality='high' height='200' width='450' wmode='transparent' menu='transparent' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'> </EMBED>
</OBJECT>
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
Hello,
I want to create web application on ASP.Net using c# language on different language supported (i.e. English,Dutch,etc..),so please help me and guide me that how can i do that,if possible please provide me some reference code.
Thanks.
nikunj padaliya
|
|
|
|
|
|
i'm trying to create a site where the registered user can log in and gather the information in the site and download. but i want to handle the users who has not registered, and they should be allowed to gather some information and download.
how can i solve this.
|
|
|
|
|
Hi,
I have a GridView in My page. I attach a DataSource with it. But Some fields name in my table are large. So, how can I set the width of each column of my Gridview dynamically depending on the column name's length in my data tables.
|
|
|
|
|
|
Hi,
I am trying to post back the page after a button with an updateprogress executes.
The basic layout of the page is this:
1. User control at the top of the page, with no update panel
2. Update panel at the bottom of the page, with a Save button.
When the user clicks save, I want the updateprogress to display while it's processing (working as desired)
However, after saving, I need to do a postback because the save button tries to change some display properties of the user control at the top... but does not do so without a postback.
For various reasons, I could not simply place the user control inside the update panel. To make the long story short, I'm working with an ASP 1.1 site which was just recently compiled in ASP 3.5. There is a high-effort required to make this user control to work, when placed in an update panel.
Thank you for your help!
Rafferty
|
|
|
|
|
I am using the Role manager provided with Visual Studio. I do not know much about it.. I know how to unlock accounts, and do simple user interactions, but what I was wanting to know if there was a way to take that database and integrate it into another database?
Right now my web applicatino contains a database for all of its data, and a database for all the user login data. Is there a way to combine these two? Do I just replicate all the stored procedures, tables, and views from the membership database to my database?
|
|
|
|
|
aspnet_regiis.exe[^]
The above link will walk you through creating the required tables, views, and stored procs.
In your case, just select the web applications current database.
Hope this helps.
Robert Fidler
Springfield, Missouri
I'm listening but I only speak GEEK.
|
|
|
|
|
Ok I was afraid that might do something to my current tables... what about transferring the data in the database I use now to the new on I embed in my own database?
|
|
|
|
|
Using SQL Server Managment Studio import the database from old tables to new tables.
This should be quick and painless process.
Hope this gets you rolln'
Robert Fidler
I'm listening but I only speak GEEK.
|
|
|
|