|
Your site is hosted on IIS or you are trying to debug from Visual Studio?
AllPhee wrote: I have used UpdatePanels normal panels and scriptManagers at the top. But when i run it,it continues to say connecting. This is for the first time i encounter this sort of problem and i really need to debug and get the website running.
Did you try to check it with break point?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
MAN, You are a Genius WOW.
In fact the application was just looping non stop on the masterpage code.
my code was like this
Try
Dim dvLoggedUser As dataview = CType(sdsGetUser.Select(DataSourceSelectArguments.Empty), DataView)
If dvLoggedUser.Table.Rows.Count > 0 Then
lblUser.Text = (dvLoggedUser(0)("Name"))
End If
btnLogout.Visible = True
Catch ex As Exception
'When it gets here it looped back to the top because the Login page used the same master page
Response.Redirect("Login.aspx")
End Try
Because i am using the same masterpage for My login Page and all other pages and trying to redirect to the login page if the user does not exist, therefore it loops infinitely in this regard.
Abhijit you are a Genius. Thanks a million.
I had forgotten about this technigue
allphpro
|
|
|
|
|
Cool. Then you should Marked that Answer as Good Answer, it lets us and people reading the forums know if our answers are any good
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hello everyone,
Can anybody please tell me,what is the proper way of applying a theme to the Master page.
Instead of setting the theme attribute of every page ,I did it by writing
<pages theme="Theme"></pages>
in the web.config & it worked fine, but I want to use theme in master page.Any suggestions?
|
|
|
|
|
specify the Theme in web.config.
no need to specify for each page including MasterPage
<pages theme="themeName"></pages>
|
|
|
|
|
Thanx for your reply.
I have done the same thing & it is working also.
But can't I set the theme in master page?
|
|
|
|
|
anada8886 wrote: But can't I set the theme in master page?
Apply the Theme in Page_PreInit( ) Event of your Default.aspx (Home) Page.
protected void Page_PreInit(object sender, EventArgs e)
{
Page.Theme = "Theme1";
}
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Thank you sir,but I wanted it on master page so that I don't need to make changes in each and every page.
|
|
|
|
|
No you can not specify a theme in master page .
if you don't to specify a theme in web.config then
you have to specify in each page for which you want to apply them.
|
|
|
|
|
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
|
|
|
|