|
In fact, you can make it work with a nested loop in the xsl document for the paragraph element inside the article loop. You might need to double check your xsl document and you can see the sample script from here[^], and IMO your question should belong to the xsl forum.
|
|
|
|
|
I have a security form authentication in my ASP site, I want to display the login username to the entire pages of the site...What should I do...Thanks...
NB
|
|
|
|
|
If you are using the ASP.NET 2, you can simply use the LoginName control in the Master page, and have all the web page use this master page. You can alse use a web user control to display the logon username and make use of this control in all the web pages.
|
|
|
|
|
I have a web site that I configure differently for various clients. Each client gets the same core set of code with different add on pieces. I want to keep the common configuration info in Web.Config and use user.config to contain the information that is specific to each client's configiration. From everything I can tell about the use of user.config, this is a very appropriate use of the feature; however, the values I place in the user.config file are not read until a long period of time (often over 30 minutes) passes. I can change web.config values and they take effect immediately; however I cannot get the values in user.config to update properly.
I am using the <appSettings file="user.config">, and the settings in user.config will take effect eventually. I need them to take effect immediately.
Any ideas?
Bob Jones
DeWaard & Jones Company
Bellingham, WA
|
|
|
|
|
As you know that with the external config file you can allow the user to update the file without requiring the application restart, so if you want the updates in the custom config file to take effect immediately, you either manage to watch the file using the FileSystemWatcher class or have the ASP.NET do that by placing the custom file in a specific folder tracked by the ASP.NET like the bin directory.
|
|
|
|
|
Interesting information. My user.config file is located in the same directory as the web.config file, the home directory of the web site. Is this location not tracked?
|
|
|
|
|
In this case, the ASP.NET is just aware of the web.config file only.
|
|
|
|
|
Hello All
i h a gridview with paging
i h also edit button when i click on edit button of row 2 of page 4 it return index number 1
but infaact index number in whole data set is
index=4*7 (page size)+1 which mean 29
for this i h three variable name as page number
page size
and index number
but problem is on post back all these variables shows zero value except index number which show one in this case
to avoid this i used static variable which retain last value
but on web static variable cause some problem becase these are shared variable pls tell me how i can retain values without being affected by post back
also on post back data set get empty
any solution
Regards
Masood
|
|
|
|
|
What do you want to do with this index value? Do you want to use it to pick up the selected data row in the dataset? If so, you simply persist the id value using the DataKeyNames[^] property, and you can access the selected id from the DataKeys collection.
|
|
|
|
|
I am using calendar in my project. At Page_Load i make the calendar visible=false and it become visible with a button click but when it become visible i can not pick any date. Does anyone knows how to solve this problem?
|
|
|
|
|
Do you mean that when the calendar becomes visible you can see it on the web page but you cannot select any date or the control gives you nothing at the server side? Could you be more specific with code snippets?
|
|
|
|
|
Hello,
I have a need after every 8 rows in a Repeater I make a <TR> visible.
Is this even possible? If so, how would I go about it.
Thank so much for the help.
RB
|
|
|
|
|
Where do you define the tr element? I guess that you may use the ItemCreated/ItemDataBound events to count the RepeaterItem, then you can make the tr visible/invisible in the way you want.
|
|
|
|
|
Hello,
I try to register a gif to my asp page.
I have an img tag that contains an image and by pressing a button I want to change the image.
Actually I have here two questions:
1 - How do I register the image so I can change it using the JavaScript?
2 - How do I refer to the Image using the JavaScript?
Thanks a lot,
Yossi
|
|
|
|
|
You can use the getElementById[^] method to get reference to img element, then change the Src[^] property.
|
|
|
|
|
Hi to all. Sorry, my english is bad.
I have a problem. Let I have file X:\a.dat, where X - network device. Function in my web-service check existence of this file:
<br />
FileInfo fileInfo = new FileInfo(@"X:\a.dat");<br />
if (fileInfo.Exists)<br />
.................<br />
This code returns false, but it really exists. Then access denied. I set username="Administrator of local machine" password="His password" in web.config's <processmodel> section. But problem didn't solve. But if I check \\servername\sharename\a.dat then it is work.
Please, help me.
|
|
|
|
|
Basically when the process identity does not have the permission to access the file, the Exists method returns false even the file is existing. The KB below can give you a hint:
Process and request identity in ASP.NET[^]
|
|
|
|
|
I set userName="SYSTEM" password="AutoGenerate" in machine.config's <processmodel> section. But when I check existence X:\a.dat - result false,
when \\servername\sharename\a.dat - result true.
|
|
|
|
|
|
Hello all,
in my ASP.NET 2.0 home page. i put DropDownList for selection of a theme. once selection of a theme i am storing in a Session object. but while navigating twice to another page i am lossing the Session value.
here i am i am applying theme dynamically in page_PreInit event by
this.Theme = "Theme1";
how to solve the problem?
regards
GV Ramana
|
|
|
|
|
Then you have to investigate if you are losing the entire session, or if it's only the session variable that changes.
Write out the Session.SessionID somewhere, so that you can see if it changes. If it does, then you have lost the session. If not, then you have some error in your code that causes the session variable to change.
---
b { font-weight: normal; }
|
|
|
|
|
Hello everyone,
I have a datagrid in with there is a linkbutton that uses the ItemCommand. When this is clicked, I would like to open a new window and pass the page in the new window the datakeyfield value of the row in which the button was clicked. I've done similar things before with just a link button by itself, along the lines of:
<br />
lnkButton.Attributes("onClick") = "window.open('mypage.aspx?RowID=" & intRowID & ")"<br />
But I'm having a hard time figuring out how to adapt that to work from within a datagrid. Any pointers would be greatly appreciated. Thanks in advance!
-------------------
abort, retry, fail?
|
|
|
|
|
In the datagrid onRowDatabound event, you can use code like the following to find the linkbutton in that row, and then your code above should work the same:
<br />
<br />
Dim btnLink as LinkButton<br />
<br />
btnLink = CType(e.Item.FindControl("lnkId"), LinkButton)<br />
<br />
'Your code here<br />
<br />
|
|
|
|
|
D'oh, that makes sense!
Thanks!
-------------------
abort, retry, fail?
|
|
|
|
|
Hi,
I have developed a asp.net 2.0 website and it is ready to be tested by the testers.
I know that the machine which will be used for testing will need to have .net 2.0 framework as well as internet expoler.
Then how do I copy the necessary files (i.e. .aspx, ...) and where do these files should go to (i.e. where on the hard disk drive)?
Thanks
|
|
|
|