|
Paddy,
I have not done any changes to WSDL!
gauthee
|
|
|
|
|
Hi All
I have one aspx page in which i am using one usercontrol 2 times Now the Problem is Even i am making one of 2 usercontrol Visible false then also its Page load event is calling
Can anyone please help me What i want is pretty simple if i don't want usercontrol in my page then its pageload method should not be called, I tried by making that user control visible false in page Oninit method but no use
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Sandeep Akhare wrote: Now the Problem is Even i am making one of 2 usercontrol Visible false then also its Page load event is calling
Yes it will call, because setting visible=false won't stop rendering the control. Try checking the visibility in usercontrols page load. If it is not visible, don't execute your page_load methods...
|
|
|
|
|
The Visible property determines if the control will be rendered or not. You can set the visibility any time before the rendering. When the Load event runs, you don't know what the value of the Visible property will be at the rendering.
If you have any code in the control that should not be run if the control is not rendered, put it in the PreRender event, and check the value of the Visisble property to determine if the code should be run or not.
---
single minded; short sighted; long gone;
|
|
|
|
|
hi all,
i have a website which has lots of images.when a user clicks a image,i need to display to him images downloaded by others which are most commonly recommended. something similar to amazon.com, where if u select a book, people who bought other books are displayed
Customers who bought this book also bought ....
i need to do something similar to this.
i found a very nice article - simple recommender system , here http://www.codeproject.com/aspnet/collabnetwork.asp.
but the values are stored in cookies. If i want to do the same using SQL server 2000, how can i store the datas?
Can anybody help me with some suggestions?
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Assume you are storing images details on a table. You have to use one more column to store download counter. When you get downloads for images, increment the counter.
In the product page you can select images according the downloads it got and display as most popular downloads. In this where you are facing problem ?
|
|
|
|
|
hi,
Thanks for your reply. But may be i did not explain clearly my need.
All the images are say inside a category. so for each category i have n number of images.
Say when a user clicks a category,i want to know what are the images he clicked. he may click n number of images and may visit the same image any number of times, but i will display only the top 5 images which are mostly visited.
It should not be based on rating. i need to track what are the images and their links he visited for each category
it should be like this.
For a category Flowers,
he clicks images like rose,then jasmine then lily and so on.he may click rose any number of times.
i need to store them in the table and finally for each category i have to find out the popular flowers.
Hope i made my point clear now.
Sorry for the wrong interpretation.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
anu81 wrote: Say when a user clicks a category,i want to know what are the images he clicked.
This can be achieved by using HTTPModule . Are you familiar to that ? HTTPModule will act as a inter-mediator on your application. It's a custom created class which implements IHTTPModule . All requests to your application will go through this HTTPModule. You need to start your work here.
To start with this,
1 - Search for some good articles that explains HTTPModule clearly. MSDN is good
2 - Inside your HTTPModule check the incoming request. if it is for image then store it in database, Storing image id will be better than storing the entire URL.
3 - For doing this it's better to keep a separate database.
4 - Now from this table you can easily find out which images are viewing more times.
But performance wise considering, all these operations are costly. If your code writing in HTTPModule is not well optimized, this may crash your entire application.
|
|
|
|
|
hi,
Really thanks for your suggestion. i will search for articles on HTTP module.
If you could give me some links related to the work i am doing, it could be more useful.
Thanks once again.
Regards
Anuradha
|
|
|
|
|
anu81 wrote: If you could give me some links related to the work i am doing, it could be more useful.
Check this[^]
HTTPModule is very simple. It will look like your global.asax.cs file. But an HTTPModule is easy to reuse and plug into any ASP.NET application. In this you need to add event handlers manually.
If you are feeling uncomfortable with HTTPModule, you can use the events available in global.asax alternatively. Application_BeginRequest is the best place to do your job. This event will be fired each time when request happens.
Hope this helps
|
|
|
|
|
hi,
Thanks for the links.It was really helpful.
Just one question though.
You were saying that i need to maintain a separate database and need to store the brand id rather than the url of the image.
Say if i have 1,00,0000 images and each image has more links ,
how can i maintain the same in SQL?
Also when i retrieve the links for each category, wont the process be slow? Is there any way where i can perform all operations on the backend (maybe a stored procedure) and retrieve only the result as a string in asp.net
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
hello,
I am facing one problem in asp.net. when user click on save button, and during that time, if power cut off or due to some curcometances page closed then how can we rollback all records using asp.net.
Thanks in advance.
Regards,
Key
|
|
|
|
|
always a transaction ends with commit or rollback.
COMMIT means transaction is completed.
ROLLBACK --reverses the current transaction
If any tranaction breaks down in the middle then the transaction will rollback automatically
use
BEGIN TRANSACTION
COMMIT TRANSACTION
ROLLBACK TRANSACTION
in database procedures. so that you don't have to worry about power cut off
Regards John
|
|
|
|
|
J O N wrote: If any tranaction breaks down in the middle then the transaction will rollback automatically
That's correct. But in this case if the use closes browser before procedure complets execution, I don't think that it will rollback transaction. What do you say ?
|
|
|
|
|
I agree to your point. Save button click will save the data and browser close button click will close the browser window. in this case there is no way to stop the procedure execution or rollback the transaction.
Regards John
|
|
|
|
|
The idea could be to use the transaction from the page itself for eg:
SqlCommand cmd;
try
{
SqlConnection con = new SqlConnection();
con.Open();
con.BeginTransaction();
cmd = new SqlCommand("Update bla bla bla");
cmd.ExecuteNonQuery();
cmd.Transaction.Commit();
}
catch (Exception excp)
{
cmd.Transaction.Rollback();
}
In theory this should work. Please let me know if it helps.
Thank you
Laddie
|
|
|
|
|
hi everyone,
I have used css in my datagrid
For headers:
COLOR: BLACK;
FONT-SIZE: 13px;
FONT-FAMILY:Arial;
FONT-WEIGHT: bold;
TEXT-ALIGN:left;
HEIGHT: 30px;
TEXT-INDENT: 6px;
BORDER-COLOR:Black;
HEIGHT: 20px;
position:relative;
top:expression(this.offsetParent.scrollTop-3);
background-color: #EEEEEE;
z-index: 10;
But the Gridlines is not visible as column seperation in header row. can anyone help me in this regard.
Regards,
Manowj
|
|
|
|
|
Hi Friends
i use datagrid paging ,if i click paging the datagrid widthis increase or decrease depends upon the databinding.
how to fix the constant width in datagrid.
regards
saravanan
|
|
|
|
|
Hi,
On clicking Datagrid Press "F4" and go to properties and click the right most icon on top of the properties window. Go to Format tab and click columns and specify the width.
This will sort out the issue.
Regards,
Manowj
|
|
|
|
|
hi
plz tell me clearly
if possible tell the code
regards
saravanan
|
|
|
|
|
I want to input the date in a textbox in the details view control in the insert item template can you help me plz?
BiG RaLpH
|
|
|
|
|
Does anyone know of a grid control that would mimic the grid control used in MS Outlook and Microsoft Live! website. Specifically, I'm looking for a control in which I can bind the data in one row of a record to "One Cell" in a grid, but in different locations. So, in the end, I would have Field 1 in the first line, field 2 in the line right below field one, field 3 in the top-right hand corner, and so on, placing the fields as I like.
to get a better idea, you could look at the Outlook grid when the Reading Pane is set to be on the right, instead of the bottom.
Thanks
RR
|
|
|
|
|
Why don't you just use the Gridview control with a custom Template field. You could also try a datalist as this should work as well.
As far as custom controls go I use the ComponentArt library, this will also do what you are looking for (assuming I totally understand what you are looking for)
|
|
|
|
|
Hello Everyone,
Can anybody let me know how to embed "Real Player" in ASP.NET web Application to run the .Rm and other audios/videos
|
|
|
|
|
WE have an ASP.NET forum, and in fact, you're going to do this, if it can be done, through HTML anyhow. There is no support in ASP.NET for real player, but if the real player supports this, it's just a case of embedding the right HTML in your page.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|