|
Could you rephrase your question? I don't think anybody can understand what you are trying to ask.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
rahul89 wrote: their session will remain open until the timeout period expires.
I think you answered your question. It is already maintained !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
You can kill the session at the Application_End event within your Global.asax
Nila
|
|
|
|
|
Hi all,
I want to display thumbnails of 5 images in a row in datatgrid..
In the usual way only, 1 image per row can be displayed in datagrid.
Is there any way out?
Pls help...
thanking you,
sdaniel_cst
|
|
|
|
|
You can use datalist for this purpose they you can show the images exactly like you want.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hello,
i hav made controls and all these controls r in an single folder name my_control. My_webform.aspx in myfolder001 and dis folder created dynamically my_webform.aspx includes dis control and when i execute <http://loaclhost/mySite/myfolder001/my_webform.aspx>
mycontrol contains a simple form inserting data into tables.
dis webform does not postin in internet explorer and working fine in mozila.
thanx
rahul saini
|
|
|
|
|
Some columns of a gridview are dynamically bound.
The gridview has a header checkbox used for Select All function.
During dynamic binding the header checkbox is not rendering.
There is some server code also in its Checked event.
So how to make that header checkbox visible during dynamic binding of “columns” in the gridview.
sooraj
|
|
|
|
|
Hi,
I have done it in the datagrid. You can add the checkbox control to the header on the itemdatabound() event, there itself add an event to the checkbox (check event). There you can make all the item checkboxes as selected.
Ram
|
|
|
|
|
how to insert treeview in to a datagrid or gridview.
Priyanka
|
|
|
|
|
You can add a Templated field to your GridView. Then edit the templated field and add the TreeView to its ItemTemplate.
Nila
|
|
|
|
|
by doing this process i am getting treeview for all the itemtemplates.but here i want single treeview for a datagrid.
prasanna
|
|
|
|
|
Would you mind if I ask what exactly you are expecting from this treeview? If you want just one treeview, then you will have to place it outside your GridView. If you want to tie events, then you will have to handle it either through one of GridView’s event handlers or one of the TreeView’s event handler… again, what exactly do you expect from this?
On another note, if you want to illuminate postbacks with your treeview, you can use this third party control:
http://www.obout.com/t2/edraganddrop.aspx
Nila
|
|
|
|
|
Hai,
I want to create Xml based Text Report. How can i implement it .Please provide the steps...If you have sample code or alternative solutions Please give me......
Thanks in Advance
|
|
|
|
|
One obvious way would be XSLT. That's probably the best way to turn XML into a text report. Just google for XSLT, and you'll find heaps of info.
|
|
|
|
|
Isn't there the CLICK EVENT in LsitBox or Grid? Or ais there anyway instead of CLICK EVENT?
K.Alex
|
|
|
|
|
What is it you are trying to do? The listbox and gridview have the SelectedIndexChanged event that is fired when an item is selected
only two letters away from being an asset
|
|
|
|
|
I have several boundfields in GridView1, I am allowing user to update without touching the ID field.
foreach (DataColumn dataColumn in ((DataTable)Session["dataTable"]).Columns)
{
BoundField boundField = new BoundField();
boundField.DataField = dataColumn.ToString();
boundField.HeaderText = dataColumn.ToString();
if (boundField.DataField == "ID")
{
boundField.ReadOnly = true;
}
GridView1.Columns.Add(boundField);
}
GridView1.DataBind();
During editing, I am able to see all cell values correctly:
int columnCount = ((DataTable)Session["dataTable"]).Columns.Count;
String[] parameterValues = new String[columnCount];
for (int columnIndex = 0; columnIndex < columnCount; columnIndex++)
{
parameterValues[columnIndex] = GridView1.Rows[e.NewEditIndex].Cells[columnIndex + 1].Text;
}
But when updating, only the cell with the boundField whose ReadOnly = true has the correct value, while other cells have blank.
Help please.
|
|
|
|
|
Hello,
I am creating a custom control where I have a button.
Somehow my button click event is not being raised.
I tried to place different codes inside MyButton_Click and nothing runs.
Then I added Context.Response.Redirect("http://www.google.com").
When I click the button postback is done but the page google is not called.
I am on this for days. I looked everywhere in Google and everything seems ok.
Could someone, please, tell me what to do to try to figure what is the problem?
I don't know what else to try.
Thank You,
Miguel
Here is my code:
...
Public Class Contact
Inherits WebControl
Dim MyButton As New WebControls.Button
Private Sub MyButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Context.Response.Redirect("http://www.google.com")
End Sub
Private Sub MyButton_Init(ByVal sender As Object, ByVal e As System.EventArgs)
MyButton.ID = Me.ID & "_bSubmit"
MyButton.Text = "Submit"
End Sub
Protected Overrides Sub CreateChildControls()
AddHandler MyButton.Init, AddressOf MyButton_Init
AddHandler MyButton.Click, AddressOf MyButton_Click
MyBase.Controls.Add(MyButton)
MyBase.CreateChildControls()
Me.ChildControlsCreated = True
End Sub
End Class
|
|
|
|
|
SInce you are adding the button dynamically you need to make sure the click event is reattached on page load
Something like this
public void OnLoad(...)
{
MyButton.Click += MyButtonClick
}
only two letters away from being an asset
|
|
|
|
|
hello, i use two calendar controls on my page. One for the current month and a second one underneath with the next month..
i want to deselect the date in the first calendar when a date on the second calendar is clicked and vice versa...
calendar1.selecteddate = "" does not work.. and i can not seem to find a deselect function...
anyone ?
thanx for you help!
Olivier
|
|
|
|
|
Hi there,
You can create a handler for the DayRender event of the control, in the method you can check the value of the e.Day instance and set the IsSelectable property accordingly.
|
|
|
|
|
Hello,
I am trying to convert an Asp.Net XML sitemap file in a Google XMl sitemap file using a XSL file using an HttpHandler.
Everything seems well in my code but I am getting an error:
XML Parsing Error: not well-formed
Location: http://localhost:1132/WebSite/Google
Line Number 2, Column 62:<urlset xmlns="http://www.google.com/schemas/sitemap/0.84" />
I tried to display it as Text instead of Text/XML. I don't get the same error. I just get a bunch of squares after the line:
Line Number 2, Column 62:<urlset xmlns="http://www.google.com/schemas/sitemap/0.84" />
Could somebody help me out? I tried everything I could think of for the past 2 days.
I post my entire code in this post.
Thanks,
Miguel
--------- HttpHandler --------
Public Class SiteMap : Implements IHttpHandler
' -- [Methods] -------------------------------------------
' Define handler process request
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
' Create ASP.NET web site map
Dim webSiteMap As XmlDocument = New XmlDocument
' Load ASP.NET's site map
webSiteMap.Load(HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings("~/Web.sitemap"))
' Create google xsl document
Dim googleXsl As XslCompiledTransform = New XslCompiledTransform
' Load google xml document
googleXsl.Load(HttpContext.Current.Server.MapPath("~/SiteMap.xsl"))
' Create xsl arguments list
Dim googleXslArguments As XsltArgumentList = New XsltArgumentList
googleXslArguments.AddParam("Domain", "", "http://www.domain.com")
' Create the ASP.NET's site map memory stream
Dim webSiteMapStream As MemoryStream = New MemoryStream
' Transform Asp.Net's site map to Google's site map and add it to stream
googleXsl.Transform(webSiteMap, googleXslArguments, webSiteMapStream)
' Output Google sitemap
context.Response.Clear()
context.Response.ContentType = "text/xml; charset=utf-8"
context.Response.Write(Encoding.UTF8.GetString(webSiteMapStream.GetBuffer))
context.Response.End()
End Sub
' Define is handler is reusable
Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
Get
Return False
End Get
End Property
End Class
--------- XSL --------
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:dk="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="By27.WebSite.Url"/>
<xsl:template match="dk:*"/>
<xsl:template match="@*|text()|comment()"/>
<xsl:template match="/">
<xsl:element name="urlset">
<xsl:apply-templates select="//dk:siteMapNode[@google='true']"/>
</xsl:element>
</xsl:template>
<xsl:template match="dk:siteMapNode">
<xsl:element name="url">
<xsl:element name="loc">
<xsl:value-of select="$Domain" />
<xsl:value-of select="substring(@url, 3)"/>
</xsl:element>
<xsl:element name="lastmod">
<xsl:value-of select="@lastmod"/>
</xsl:element>
<xsl:element name="changefreq">
<xsl:value-of select="@changefreq"/>
</xsl:element>
<xsl:element name="priority">
<xsl:value-of select="@priority"/>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
|
|
|
|
|
Hello,
I am creating VS2005 web project which includes various custom controls.
One of those controls uses a XSL file.
How can I embed the XSL file in my .dll so I don't need to place it in all my web sites?
Thanks,
Miguel
|
|
|
|
|
If your custom controls are in a seperate project you can add the XSL file as an embedded resource. Or you can place it in a resource file in the web project.
only two letters away from being an asset
|
|
|
|
|
Hi Guys,
I'm new in ASP.net. I'm trying to write a web application that has a login. For each login, they will see different function and information. The question is do you guys have any suggestions of what I should use? Can you give me a starting point or an article about this that I can refer to?
Thank you much
|
|
|
|