|
Don't Repost. [^]
Guffa has answered there ther may be a problem with Eval did you correct that one.
Regards,
Satips.
|
|
|
|
|
i want to get the total time for the session for my site and also want to get the computer name of the client connecting with my server using asp.net in visual studio2005
Kindly send the requested answer to atifmeer50@hotmail.com
|
|
|
|
|
I have a grid view and want to sort the Gridview when I click on columns.
Could you please email me the code.
Regards,
hahii
|
|
|
|
|
Why don't you tell us what you have tried so far and we can help. Don't just ask for code.
only two letters away from being an asset
|
|
|
|
|
I have a CustomValidator control in an app and for some reason it seems to ignore the CssClass property. I've tried setting this in design-mode as well as programmaticaly at runtime and it still appears without the styling. I have at least one RequiredFieldValidator that has its CssClass set to the same value and it does recognize the styling.
Has anyone else had a problem with this and/or found a workaround?
|
|
|
|
|
I believe the "CssClass" property gets change to a "class" attribute in the generated HTML code. Thus, "CssClass='someclass'" changes to "class='someclass'". Also, you will need to have a stylesheet or (embedded stylesheet) that assigns some style such as ".someclass { color: gold; }".
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
If you re-read my original question I mentioned that "I have at least one RequiredFieldValidator that has its CssClass set to the same value and it does recognize the styling.".
I do have a stylesheet reference with a valid class, and as I said, other validation controls do recognize the CssClass, however, the CustomValidator does not. It seems that someone else must have experiences this.
|
|
|
|
|
Since you weren't very specific about the value of the CssClass, I wanted to make sure you were using an appropriate value. However, I am sorry that I misread your last statement.
Nevertheless, the value you gave the CssClass property must be associated with a style whether it is embedded or external. Your problem is with CSS. A possible problem could be that your "class" style is being overruled by a more local "style". For instance, if your CustomValidator sets its style attribute to "color: red;" and your class style sets its style to "color: green;", the browser will only display red text. Also, since the validators become span elements in HTML, you can only apply styles that affect inline elements unless you apply a "display: block;" style.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
I guess I haven't been specific enough. The CSS is correct and the CssClass works in another validator control (required text) on the same form within the same tag. There is no local CSS. All other standard validation controls recognize the CssClass properly. The CustomValidator is the only one that I've found that doesn't recognize the CssClass. Since this is a fairly glaring error I thought others might have come across this.
|
|
|
|
|
I actually created a CustomValidator with the CssClass property set to somevalue (I am using ASP.NET 2005) and ran the web application and it created the class attribute set to that value.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Okay, I think I have something that might work for you. Each control (I believe) has an Attributes collection that you can programically add HTML attributes to elements. You can do this with the CustomValidator:
CustomValidator1.Attributes.Add("class", "somevalue"); I am not sure this is persisted via each post. So you may have to run this code on each postback.
Also, communicating via forum posts is difficult. If you don't give enough information (too much information is bad too) and I don't know your skill level, I get too general and don't answer your question properly.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Hi,
I've got a situation where I have a TreeView control and a SiteMapPath control that are both bound to a SiteMapDataSource control. Everything works great until my coleague redirects to the page with an old style query string full of variable data.
As advertised, if the current URL is not found in the SiteMapDataSource, the controls based on it are not shown.
Does anyone know a way to intercept the URL and modify it, strip off the query string before the other controls see it? All I've been able to find are "GET" only URL properties and events that don't appear to provide the opportunity to intercept it.
Thanks.
Will
|
|
|
|
|
Oddly enough, a couple questions down is an item about HttpContext.RewritePath that provided just the solution I was looking for.
|
|
|
|
|
How to open a new window when an imagebutton is clicked?
I want that when the imagebutton is clicked it calls a "IncrementAd()" method then it targets the user in another website but i want the window to open in a new window.
How can i make it happen pls??
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org
|
|
|
|
|
Is it on Client side, or on Server side?
On clent side, it can be very simple, just write window.open("url", _blank)
On server side check here (at the very end of the thread)
http://www.dotnet247.com/247reference/msgs/31/158269.aspx[^]
Sincerely,
Elina
Life is great!!!
Enjoy every moment of it!
|
|
|
|
|
Hi guy I'm new and still learning asp.net(vb).I have 3 GridView in one form ,when page load,only the first GriView to be visible,It has the commandfield(select)when the user clicks the command fiels,make the first one invisible and second one visible(on the position of the first one)The second GridView have 2 commandfiels view(to allow the user to go to the Third GridView) and back(to allow the user to go to the first GridView).
When clicking the view on the second GriView make the second one invisible and third one visible(on the position of the first one). And Allow only the CheckBox of the third GridView to check and uncheck .Lastly Save Button to to save the information in table.
****
Pease guys this is acutellt what I what to do
***Please help me with the code for this
oga m
|
|
|
|
|
Hi,
Firstly on data command og 1st gridview make it visible false and make 2nd visible true and do the same for 3rd to be visible and then on save button click event save the related data.
Hope it helps u...
|
|
|
|
|
Hy everyone,
I need some help. My company has a Nomadix AG 3000 for guest internet access.I need to design a portal page that pass to nomadix ag3000 user name, password and user requested web page.The user name and password works fine. But I have no ideea how to pass the user requested page.
button value="Login">
|
|
|
|
|
Request.RawUrl ?
Sincerely,
Elina
Life is great!!!
Enjoy every moment of it!
|
|
|
|
|
Can you tell me how to use request.rawURL insaide my code.
Thank you
|
|
|
|
|
|
I Have a dropdown which the user can add items to using AJAX but I need to prevent Duplicates.
the dropdownlist.Options[index].value returns a number because of the way i'm databinding (i cannot change this).
Is there a Javascript property for the Name That will get me the text in the option tags rather than the value?
|
|
|
|
|
The following function is called upon the onBlur event of the textbox control (txt).
The following code does not work. Description of the function is: Search the ddl (an asp dropdown) for duplicates of the text in txt (asp textbox). Btn is an Asp.net Button that produces a postback and triggers the update panel in which only the ddl resides.
function CheckCaller()
{
var txt = document.getElementById("txtAddCaller");
var btn = document.getElementById("Button1");
var ddl = document.form1.ddlCaller;
var caller = trimAll(txt.value);
var found = "false";
if (caller != "")
{
for (i=0; i
|
|
|
|
|
I found a solution, thanks for looking.
|
|
|
|
|
Hello,
I have an ASP.NET app where I want to display a few labels and images on a page if the user hits the back button on the browser. How would i be able to capture the back button event of the browser on my app ? As in, If someone hits the back button, will any event be fired or can I have a javascript that can capture this event ? iam a little new to ASP.NET so sample code will help too !!!
this is my situation
Page(A)---> Page(B)
if someone presses the back button on Page(B) i want to show Page(A) with certain modifications. Thanks for your help !!!
Regards
RH
|
|
|
|