|
Don't repost the same question.
With Regards
Satips
|
|
|
|
|
i have visited the site which you have given against my previous question but that site is for .NET 2.0 my application is in .NET 1.1,hence i mentioned that my application is in .NET 1.1 and reposted the question.
thanks
|
|
|
|
|
I have worked it in 2.0 only. Not in 1.1.
With Regards
Satips
|
|
|
|
|
Hi,
I want to read the XML values from an web page. For example i want to read the XML values from the below web page and i want to use or print it in my page.
http://www.flashasp.net/forum/Default.aspx?g=rsstopic&pg=forum[^]
How to do this?? Can any one suggest me how to read this or print this on my page???
Know is Drop, Unknown is Ocean
|
|
|
|
|
Hi,
With the help of Ajax you can read the xml values from an web page.
Happy coding,
With Regards
Satips
|
|
|
|
|
Hi,
Thanks for you help. Shall you explain it more with an example? Because i dnt have idea about Ajax.
Thank you very much
Know is Drop, Unknown is Ocean
|
|
|
|
|
|
how to -Develop a webpart which will display all the sites and sub sites.
For each site, it should display the name of all the web parts contained in that site.
This webpart when placed in any site should behave the same.
If any webpart in the site is hidden, specify accordingly.
using asp.net and c# .My application is in 2003 .NET (i.e .NET 1.1and not in .NET 2.0)
|
|
|
|
|
How can I schedule an ASP script to run at a certain time each day?
Thanks!
|
|
|
|
|
|
Hi guys,
When submit button is clicked on a web page (asp) i dont want users to click any links or other buttons till the request is been processed(web page queries the back end).
Web page reloads the same page with results, till then i need all links & buttons to be disabled.
I tried this code..
document.getElementsByTagName("input").disabled = true;
when submit button pressed, it disables the button but prevents from navigating to other page. how to avoid this?
Can any one suggest me an idea.
Thank you.
Mohan
|
|
|
|
|
You could do what writely (and probably others) do, and grey out the entire page and place a "please wait - processing" message over the top.
You would have a layer appear over the whole page with a transparent fill colour.
This would prevent the user pressing any link as they would be pressing the layer instead. When processing is finished, simply remove the layer or navigate to another page.
ChrisB
|
|
|
|
|
Guys,
Figured out myself from google..
document.getElementsByTagName("input")[i].disabled = true; for button
document.getElementsByTagName("a")[i].disabled = true;
document.getElementsByTagName("a")[i].removeAttribute("href"); for links
document.formname.submit() will carry on the submit action
any way thanks.
mohan
|
|
|
|
|
Hello,
I need to place Javascript code inside an Asp:Panel so that the Google Adsense banner be placed inside the panel.
I know how to do something like this in a page:
' Add javascript file (Show_Ads.js) [Google AdSense]
If Not Page.ClientScript.IsClientScriptIncludeRegistered("AdSense") Then
Page.ClientScript.RegisterClientScriptInclude(Me.GetType(), "AdSense", "http://pagead2.googlesyndication.com/pagead/show_ads.js")
End If
' Add javascript code (AdSense Code) [Google AdSense]
Dim urchinTracker As String = "<script type=""text/javascript""><!-- " & _
"google_ad_client = ""xxx"";" & _
"google_ad_width = 250;" & _
"google_ad_height = 250;" & _
"google_ad_format = ""250x250_as"";" & _
"google_ad_type = ""image"";" & _
"google_ad_channel ="""";" & _
"//--></script>"
If (Not Page.ClientScript.IsClientScriptBlockRegistered("AdSenseCode")) Then
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "AdSenseCode", urchinTracker)
End If
However I have no idea of how to place the javascript code inside the Asp:Panel so that the banner appear there.
I need to make this at runtime.
Could somebody help me out with this?
Thanks,
Miguel
|
|
|
|
|
If you want to place something inside the Panel control, you can extend the Panel control and override the RenderContents method and emit the client side stuff there.
|
|
|
|
|
I am really sorry but I got completly lost.
Could you give me a simple example.
Thanks,
Miguel
|
|
|
|
|
Something looks like:
public class ExPanel : Panel
{
protected override void RenderContents(HtmlTextWriter writer)
{
base.RenderContents(writer);
writer.Write("my client side stuff goes here");
}
}
Another option is that you can simply place the Label/Literal control inside the Panel, then assign the client side stuff to the Text property of these controls.
|
|
|
|
|
Hi guys,
I am considering using DotNetNuke as a content management on my website. Has anybody used this product and if so what was the general opinion of it?
"a fool will not learn from a wise man, but a wise man will learn from a fool"
"It is hard to fail, but it is worse never to have tried to succeed." - Theodore Roosevelt
"Success is going from failure to failure without losing your enthusiasm." - Winston Churchill
My Website || My Blog
|
|
|
|
|
I am trying to show an image of a flag in a grid column based on a value in another column.
I thought the code below would work (its vb.net). If I replace the <img... html with just normal text - the normal text is shown.
But for some reason I can never get the image to display.
Is there another way I should be doing this ?
Dim GridItem As DataGridItem
For Each GridItem In DataGrid1.Items
If CType(GridItem.Cells(5).Text, Integer) = 1 Then
'put in flag here
GridItem.Cells(1).Text = "<img src=flag.gif>"
End If
Next GridItem
|
|
|
|
|
First of all, you can do a view source and check if the html markup is rendered properly or not. Then you can check the src value of the image file. Also, you can use the ItemDataBound event of the datagrid to set the Text property of the specific cell. Another option is that you can use the TemplateColumn which allows you placing the image element in the ItemTemplate, and you can use the data binding expression to control the visibility of the image control.
|
|
|
|
|
So the code itself looks good ?
Thanks.
|
|
|
|
|
so so, as you can use the template column or ItemDataBound event instead and you no need to walk through again the Items collection of the grid to dislay the image.
|
|
|
|
|
Is there any way to override page constructor in ASP. NET?
I am using vs2005 and when I try to run the page with overriden constructor I get an error "Object reference not set to an instance of an object." for the control I'm trying to use within constructor. If I try to add this control programmatically I get an error that it already exsists. What can I do to make this work???
<br />
public partial class _Default : System.Web.UI.Page<br />
{<br />
public _Default()<br />
{<br />
<br />
RadioButton b = new RadioButton();<br />
b.ID = "e";<br />
Panel1.Controls.Add(b);
}<br />
<br />
}<br />
--Nikola--
modified 7-Dec-20 21:01pm.
|
|
|
|
|
Hi there,
You cannot get reference to the Panel control at this stage as it's not initialized yet. There are a couple of ways to dynamically add the control, for example you can use the Page_Init event or override the OnInit method .... for more information, see ASP.NET Page Life Cycle Overview [^]
|
|
|
|
|
I have tried that but when I add a control within OnInit or PageLoad I can not access it within event handler. All programatically added controls are lost.
It goes like this:
I have a page with a button and I add some radio buttons programatically:
<br />
Int32 i=0;<br />
for (i=0;i<5;i++)<br />
{<br />
RadioButton b = new RadioButton();<br />
b.ID = "radio_" + i.ToString();<br />
Controls.Add(b);<br />
}<br />
and in the event handler for the button click:
<br />
RadioButton b = FindControl("radio_2"); <br />
FindControll returns null.
I'm a bit confused so if you have any ideas it would be great.
Thanks.
P.S. This is simplified code of what I'm trying to do but the point is the same.
--Nikola--
modified 7-Dec-20 21:01pm.
|
|
|
|