|
Thank you. I wanted to know this only.
|
|
|
|
|
anada8886 wrote: but I want to use theme in master page.Any suggestions?
Why? you want to change theme at runtime?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Actually, I tried on the aspx page and it was working but it's not feasible to set this for every page. So, I wanted to know if I can set the theme using master page.
Well, Thanx for your reply.
|
|
|
|
|
anada8886 wrote: I tried on the aspx page and it was working but it's not feasible to set this for every page.
Then what is the problem with use web.config to set the Theme.
There are three way to apply the theme in your application.
1.
<%@ Page Theme="ThemeName" Language="C#"%>
2.
protected void Page_PreInit(object sender, EventArgs e)
{
Page.Theme = "ThemeName";
}
3. In web.config
<pages theme="ThemeName" />
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hiiiiiii.....I m developing a Shopping Cart and for creation of cart i m using data table with session. i have wrote this code on my home page.
On PAGE Load EVENT
If Not IsPostBack Then
makeCart()
End If
Sub makeCart()
Dim objDT As System.Data.DataTable
Dim objDR As System.Data.DataRow
objDT = New System.Data.DataTable("Cart")
objDT.Columns.Add("ID", GetType(Integer))
objDT.Columns("ID").AutoIncrement = True
objDT.Columns("ID").AutoIncrementSeed = 10000
objDT.Columns.Add("ProductID", GetType(Integer))
objDT.Columns.Add("ProductName", GetType(String))
objDT.Columns.Add("ProductQty", GetType(Integer))
objDT.Columns.Add("ProductPrice", GetType(Decimal))
objDT.Columns.Add("ProductImage1", GetType(String))
objDT.Columns.Add("ProductDescription", GetType(String))
objDT.Columns.Add("ProductManufacturer", GetType(String))
Session("Cart") = objDT
End Sub
the Problem i m facing is that whenver user comes to home page after adding products to cart....it becomes empty.....the reason behind this is that the code i have written on load event of home page .......and if i checks for existence of session then it got saved permanently....means it didnt clear the cart data table....what to do in this condition........and how to use cookies in this case.......plz guide me a bit
|
|
|
|
|
KhandelwalA wrote: and if i checks for existence of session then it got saved permanently....means it didnt clear the cart data table....what to do in this condition........and how to use cookies in this case
I think you are not clear in this section. why you are trying to use Cookies over here?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I'm a bit confused by what you're asking.
Do you want to be able to store the content of the cart even if the user closes your site? Or do you just want the cart to still be available if the user navigates back to your home page from another page on your site?
If it is the second case you can simply do...
<pre>
If Session("Cart") <> Null Then
makeCart()
End If
</pre>
Well, it will be something like that, my VB isn't very good.
|
|
|
|
|
Does anyone know how to make a bar chart using MSChart control from a column of a postgresql database that is imported from an ODBC connection that is using the Microsoft.ODBC.dll? I am finding a lot of information on creating charts with other data souces but not through Microsoft's ODBC API. I am trying to create a bar chart and have each value from a column represent one bar. I have everything set up, I am just having trouble binding the database data to the chart. Any link to tutorials or help files would be great too. Thanks. plz help me ...
|
|
|
|
|
Hi all, I am new in .NET, I wrote a simple web service using VS 2003 where it will return some data of my customers. I need to invoke this web service with large amount of data now(e.g.3000rows record). I was thinking of how can I process this in bulk with better perfomance rather than calling the service in real time? I have the input file which is in CSV format. I will be glad to hear any of the suggestions.
Thanks!
|
|
|
|
|
use WSE 3.0 (web service enhancements). In wse, one of the improvement is MTOM(Message Transmission optimization mech.). You can use that for bulk & sensitive message processing.
Read More here ![^]
Download it here ![^]
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
Thanks Baran, but is there any related articles or sample codes that I can refer to?
|
|
|
|
|
Here is one of the best article in MSDN, for web service performance improvement.
Improving Web Services Performance
Please go through the link, which will help you a lot.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Thanks Abhijit Jana for the useful link, I will have a look!
|
|
|
|
|
hi,
The following code is not working in firefox3.0 but it's working fine in firefox2.0 what's the prb?
any one plz help me.....
<asp:TextBox ID="txtBirthdate" CssClass="date_box" runat="server" TabIndex="3" onkeydown="OnTextChange('ctl00$ContentPlaceHolder1$btnSubmit');" onchange="OnTextChange('ctl00$ContentPlaceHolder1$btnSubmit');"></asp:TextBox>
<asp:Button ID="btnSubmit" Enabled="false" runat="server" CssClass="button" Text="Save"
TabIndex="16" ValidationGroup="ValPatient_Detail" OnClick="btnSubmit_Click" />
function OnTextChange(Button)
{
if(navigator.appName!="Netscape")
{
document.getElementById(Button).disabled=false;
}
else
{
document.getElementById(Button).disabled=false;
}
}
Button-->> value is btnSubmit
|
|
|
|
|
Far as I'm concerned, using the document.getElementById function requires the ClientId as parameter, and not the name. ctl00$ContentPlaceHolder1$btnSubmit looks more like a name, the Id would probably be ctl00_ContentPlaceHolder1_btnSubmit.
To avoid confusion (and really, not try to guess what a ClientId is going to be I would use:
[...]
onkeydown="OnTextChange('<%=btnSubmit.ClientID%>')"
[...].
var question = (_2b || !(_2b));
|
|
|
|
|
Hi guys i am binding some records from my repeater control...,
<b>In one column i am binding the brief news...,
its coming to long...,
to resolve it i want to give remaing text in another page...,
and same time if user like to see entire news also he have to watch...,</b>
for ex i need like this page:
http://www.indianexpress.com/news/airline-followed-rules-indias-vip-list-irrelevant-us/493538/
See in that <b>they will sub divide the string and the remaining contents they will show in next page...,
and same time if u click single page format u can read the news in a single page...,</b>
how to achieve it in .net?
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Which part of this is confusing you ? They are using some sort of paging control, like the paging built in to several ASP.NET controls, and they have the option to render the whole story. You would build an engine that does this, and break your articles in to pages.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
yes .. Use <asp:datapager> control inside ItemTemplate of the Repeater. Make appropriate adjustment to make pages you divide your text programmatically.
|
|
|
|
|
Hi abhishek ,
Tks fro ur reply...,
i tried my best with datapager...,
but i didnt get any solution...,
plz give me some sample urls which can split a string and view in next page
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
|
Zafar Ali Khan 1900 wrote: I have developed the addin for outlook 2003 using vs 2008
it is working fine in outlook 2003. But not working in outlook 2007.
I guess, The Addin you developed an Windows Application, Not related with ASP.NET. This is ASP.NET Forum. Please asked your question on C# Forum
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
This is from Chandrakanth.
Actually i am looking for some free WebServices for sending SMS from ASP.Net
Actually i have used on of the web service i.e
"http:www.webservicex.net/SendSMS.asmx?WSDL" This is not working and also
it is giving error message like
"unable to Connect Remote Server "www.webservicex.net"
Can any one tell me some free Webservice which is use full to send SMS
Thanks and Regards
Chandrakanth
|
|
|
|
|
try this[^]
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
|
This link has trial SMS gateway all over the world to test your application. http://www.clickatell.com/[^]
Regards,
Ulhas
MCTS WM Application Development
|
|
|
|