|
Hi Michael,
I found out the problem actually. I am not sure why this caused the problem in my code, in the divs with the class fieldsetQuestion and then fieldsetPicture, I had them both each at width:50%, I changed them to below 50% and now it doesnt crash anymore. Thanks a lot for your help though!
|
|
|
|
|
I am currently using RSS.NET to complete a project. Does anyone of you know if there are RSS feed out there that contain geolocation for each entry of the feed? like GEORSS? I found a lot of information about it, but I could find any news feed that has it.
Thanks ahead of time
T
|
|
|
|
|
Can anyone lend me a hand here? Thanks
T
|
|
|
|
|
avengerzx9 wrote: oes anyone of you know if there are RSS feed out there that contain geolocation for each entry of the feed? like GEORSS?
AFAIK, the most of RSS doesn't have this because the most of blogs/sites used to use English version only.. I heard that Flickr and Google has GEORSS.. so, you can find out their feeds.
|
|
|
|
|
Hi I have 3 level datagrid.
dg1
dg2
dg3
I am having problem firing event from dg2 to dg3. I have a function in dg2 for itemcommand which should rebind the data in dg3 but its not happening so upto dg1 and dg2 is fine. could someone help me resolve it. I think i need to handle postback events to make it work but not sure how in below code.
Hi!
I am trying to display a three level datagrid drill down. dont know what i am doing wrong. its not working on the third drill down as its not calling itemcommand event on the second datagrid.
also, there is a massive amout of text inviewstate. I want an efficient drill down. how could this be achieved. below are my codes for readability. please someone point me to correct direction.
aspx
<form id="Form1" method="post" runat="server">
<asp:DataGrid id="gvPropertyAssetCapexSummary" DataKeyField="buildingcomponentid" runat="server" Width="472px" BorderColor="Tan" BorderWidth="1px" BackColor="LightGoldenrodYellow" CellPadding="2" GridLines="None" ForeColor="Black" AutoGenerateColumns="False">
<SelectedItemStyle ForeColor="GhostWhite" BackColor="DarkSlateBlue" ></SelectedItemStyle>
<AlternatingItemStyle BackColor="PaleGoldenrod"></AlternatingItemStyle>
<HeaderStyle Font-Bold="True" BackColor="Tan" Font-Names="verdana" Font-Size="8pt"></HeaderStyle>
<ItemStyle Font-Names="verdana" Font-Size="8pt"/>
<FooterStyle BackColor="Tan"></FooterStyle>
<Columns>
<asp:BoundColumn DataField="buildingcomponentid" HeaderText="buildingcomponentid" Visible="false"></asp:BoundColumn>
<asp:TemplateColumn>
<HeaderStyle Width="9px"></HeaderStyle>
<ItemTemplate>
<asp:ImageButton id="btnExpandJob" runat="server" Width="9px" Height="9px" ImageUrl="/Images/Plus.gif" CommandName="ExpandJob"></asp:ImageButton>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:PlaceHolder ID="ExpandJob" Runat="server" Visible="False">
</td></tr>
<tr><td > </td>
<td colspan="3">
<asp:DataGrid id="gvPropertyAssetCapexJob" DataKeyField="CapExJobNo" runat="server" Width="100%" BorderColor="Tan" BorderWidth="1px" BackColor="LightGoldenrodYellow" CellPadding="2" GridLines="None" ForeColor="Black" AutoGenerateColumns="False">
<SelectedItemStyle ForeColor="GhostWhite" BackColor="DarkSlateBlue"></SelectedItemStyle>
<AlternatingItemStyle BackColor="PaleGoldenrod"></AlternatingItemStyle>
<HeaderStyle Font-Bold="True" BackColor="Tan" Font-Names="verdana" Font-Size="8pt"></HeaderStyle>
<ItemStyle Font-Names="verdana" Font-Size="8pt"/>
<FooterStyle BackColor="Tan"></FooterStyle>
<Columns>
<asp:BoundColumn DataField="CapExJobNo" HeaderText="CapExJobNo" Visible="false"></asp:BoundColumn>
<asp:TemplateColumn>
<HeaderStyle Width="9px"></HeaderStyle>
<ItemTemplate>
<asp:ImageButton id="btnExpandJobDetail" runat="server" Width="9px" Height="9px" ImageUrl="/Images/Plus.gif" CommandName="ExpandJobDetail"></asp:ImageButton>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:PlaceHolder ID="ExpandJobDetail" Runat="server" Visible="False">
</td></tr>
<tr><td> </td>
<td colspan="3">
<asp:DataGrid DataSource='<%# getJobDetail(DataBinder.Eval(Container, "DataItem.CapExJobNo")) %>' id="gvPropertyAssetCapexJobDetail" runat="server" Width="100%" BorderColor="Tan" BorderWidth="1px" BackColor="LightGoldenrodYellow" CellPadding="2" GridLines="None" ForeColor="Black" AutoGenerateColumns="False">
<SelectedItemStyle ForeColor="GhostWhite" BackColor="DarkSlateBlue"></SelectedItemStyle>
<AlternatingItemStyle BackColor="PaleGoldenrod"></AlternatingItemStyle>
<HeaderStyle Font-Bold="True" BackColor="Tan"></HeaderStyle>
<FooterStyle BackColor="Tan"></FooterStyle>
<Columns>
<asp:BoundColumn DataField="AssetDescription" HeaderText="Asset Description"></asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Center" ForeColor="DarkSlateBlue" BackColor="PaleGoldenrod"></PagerStyle>
</asp:DataGrid>
</asp:PlaceHolder>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle HorizontalAlign="Center" ForeColor="DarkSlateBlue" BackColor="PaleGoldenrod"></PagerStyle>
</asp:DataGrid>
</asp:PlaceHolder>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle HorizontalAlign="Center" ForeColor="DarkSlateBlue" BackColor="PaleGoldenrod"></PagerStyle>
</asp:DataGrid>
vb
Public Partial Class testfunc
Inherits System.Web.UI.Page
Private domainid As Integer
Private locationid As Integer
Private buildingcomponentid As Integer
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim mydal As New clsDAL
domainid = 1204111332
locationid = 27195
buildingcomponentid = 0
If Not IsPostBack Then
Try
Dim dtPropertyCapex As DataSet = mydal.getAssetsCapexByProperty(domainid, buildingcomponentid, locationid)
If Not dtPropertyCapex Is Nothing Then
gvPropertyAssetCapexSummary.DataSource = dtPropertyCapex
gvPropertyAssetCapexSummary.DataBind()
End If
Catch ee As Exception
mydal.UpdateErrorLog(ee.Message, ee.TargetSite.Name.ToString())
Throw ee
End Try
Try
Catch ex As Exception
End Try
End If
End Sub
Private Sub gvPropertyAssetCapexSummary_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles gvPropertyAssetCapexSummary.ItemCommand
Select Case e.CommandName
Case "ExpandJob"
Dim img As ImageButton
img = e.Item.Cells(1).FindControl("btnExpandJob")
If img.ImageUrl = "/Images/Plus.gif" Then
img.ImageUrl = "/Images/Minus.gif"
Else
img.ImageUrl = "/Images/Plus.gif"
End If
Dim exp As PlaceHolder
exp = e.Item.Cells(1).FindControl("ExpandJob")
Dim dgjob As DataGrid
dgjob = CType(e.Item.FindControl("gvPropertyAssetCapexJob"), DataGrid)
If (Not dgjob Is Nothing) Then
dgjob.DataSource = getJob(e.Item.Cells(0).Text)
dgjob.DataBind()
End If
exp.Visible = Not exp.Visible
End Select
End Sub
Public Function getJob(ByVal BCId As Integer) As DataSet
Dim myDal As New clsDAL
Dim dsPropertyAssetCapexSummary As DataSet
domainid = 1204111332
locationid = 27195
dsPropertyAssetCapexSummary = myDal.getCapitalExpenditureJob(domainid, BCId, locationid)
dsPropertyAssetCapexSummary = dsPropertyAssetCapexSummary
Return dsPropertyAssetCapexSummary
End Function
Private Sub gvPropertyAssetCapexJob_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs)
Select Case e.CommandName
Case "ExpandJobDetail"
Dim img As ImageButton
img = e.Item.Cells(1).FindControl("btnExpandJobDetail")
If img.ImageUrl = "/Images/Plus.gif" Then
img.ImageUrl = "/Images/Minus.gif"
Else
img.ImageUrl = "/Images/Plus.gif"
End If
Dim exp As PlaceHolder
exp = e.Item.Cells(1).FindControl("ExpandJobDetail")
Dim dgjobdetail As DataGrid
dgjobdetail = CType(e.Item.FindControl("gvPropertyAssetCapexJob"), DataGrid)
If (Not dgjobdetail Is Nothing) Then
dgjobdetail.DataSource = getJobDetail(e.Item.Cells(0).Text)
dgjobdetail.DataBind()
End If
exp.Visible = Not exp.Visible
End Select
End Sub
Public Function getJobDetail(ByVal CapexJObNo As Integer) As DataSet
Dim myDal As New clsDAL
Dim dsPropertyAssetCapexSummary As DataSet
domainid = 1204111332
locationid = 27195
buildingcomponentid = 0
dsPropertyAssetCapexSummary = myDal.getCapitalExpenditureJobDetail(domainid, buildingcomponentid, locationid, CapexJObNo)
Return dsPropertyAssetCapexSummary
End Function
End Class
thanks in advance.
|
|
|
|
|
whats the nature of difficulty of my problem I posted every where no one is answering.
|
|
|
|
|
Maybe no one knows or wants to bother reading through all that code.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I just added that code for reference. isnt it post clear? I want to have a three level drill down that is made up of 3 datagrids. My problem is i cant bind the third grid based on the postback of second grid but i can successfully bind second grid based on postback of first datagrid.
can you please help?
|
|
|
|
|
Hi I am building a web application which will have up to 20 pages/categories of product, now instead of creating a page for each page, i would like to create a generic page which would do the bulk of the work for me, the page would have an image relating to the category and an overview of the category, all this will be coming from the database. Can i achieve this and if so please give me a few tips,
|
|
|
|
|
pmillio wrote: Can i achieve this and if so please give me a few tips,
I think you can use GridView, Repeater or Datalist with paging for that.
|
|
|
|
|
Good day!
I've got an issue when viewing some asp.net pages in internet explorer 7. The i've got some 3 dropdowns that capture a date (month, day, year). Problem is that IE7 displays this page with the dropdowns looking like their height was set to 0.5px. Quite an annoying experience, such that you cant even find the down arrow to click on that opens the dropdown.
However, some other pages with databound dropdowns are displayed normally.
How do I get the former drop downs to behave themselves. Is it a meta tag or what?
Pls assist me.
Live in fragments no longer. Only connect.
modified on Wednesday, December 19, 2007 7:10:23 AM
|
|
|
|
|
I think you might use some global CSS for dropdown or font.. If you are familiar with Firebug, you can check which CSS is styling to which element in very easy way.
|
|
|
|
|
when im running my page im getting the message below
The report you requested requires further information.<br />
<br />
--------------------------------------------------------------------------------<br />
ds1 <br />
Server name: <br />
Database name: <br />
User name: <br />
Password: <br />
Use Integrated Security
** im using DataSet to fill report
Sarfarj Ahmed
|
|
|
|
|
|
Is is somehow possible to add a script using UpdatePanel?
My problem is that I have a DataGrid containg 2 couloms with 1 TextBox in each.
On the first TextBox there is an OnTextChangeEvent with an AutoPostBack="true",
and in this function I add scripts to set focus, and select the text on the next
TextBox as in:
private void OnSubscriptionFromValueChanged(object sender, System.EventArgs e)<br />
{<br />
TextBox tb = (TextBox)sender;<br />
DataGridItem dgi = (DataGridItem)tb.Parent.Parent;<br />
TextBox tbToFocus = (TextBox)dgi.FindControl("tbToValue");<br />
Page.ClientScript.RegisterStartupScript(GetType(), "focus", "<script>document.getElementById('" + tbToFocus.UniqueID + "').focus();</script>");<br />
Page.ClientScript.RegisterStartupScript(GetType(), "select", <script>document.getElementById('" + tbToFocus.UniqueID + "').select();</script>");<br />
..<br />
...<br />
.... <br />
}
This works fine.
But then I added an UpdatePanel around the DataGrid, as in
<br />
asp:UpdatePanel ID="upSubscription" runat="server"> <br />
<ContentTemplate> <br />
<asp:datagrid id="dgSubscription" runat="server" CssClass="grid" AllowPaging="False" CellPadding="0"<br />
GridLines="Vertical" AutoGenerateColumns="False" ShowFooter="true" OnItemCreated="dgSubscription_ItemCreated"><br />
asp:TemplateColumn HeaderText="From value" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="150px"><br />
ItemTemplate><br />
asp:TextBox id="tbFromValue" runat="server" AutoPostBack="true" CssClass="tbStyle0" Text='<%#DataBinder.Eval(Container.DataItem, "decFromValue").ToString()%>'> <br />
</asp:TextBox><br />
/ItemTemplate><br />
/asp:TemplateColumn><br />
<asp:TemplateColumn HeaderText="To value" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="150px"><br />
ItemTemplate><br />
asp:TextBox id="tbToValue" runat="server" AutoPostBack="true" CssClass="tbStyle0" Text='<%#DataBinder.Eval(Container.DataItem, "decToValue").ToString()%>'> <br />
</asp:TextBox> <br />
</ItemTemplate><br />
<br />
/asp:TemplateColumn><br />
asp:datagrid><br />
/ContentTemplate><br />
/asp:UpdatePanel> <br />
Now the focus and the select is lost, since the page only updated the DataGrid, and the
Page.ClientScript.RegisterStartupScript(GetType(), "focus", "&lt;script&gt;document.getElementById('" + tbToFocus.UniqueID + "').focus();&lt;/script&gt;");<br />
Page.ClientScript.RegisterStartupScript(GetType(), "select", "&lt;script&gt;document.getElementById('" + tbToFocus.UniqueID + "').select();&lt;/script&gt;");<br /> wasn't reggisterd at the Page.
Does anyone know a way around this?
Like creating a ScriptManager inside a UpdatePanel (thus that wan't work, as the ScriptManger has to be before a
control that uses scrips). I'm usint .Net 2.0 in Visual Studio 2005 enviroment.
Thanks
Thomas
|
|
|
|
|
I am trying to integrate paypal in my website , i have read the manuals still clueless how actually paypal transaction is done ,i made the business a/c and personal a/c in sandbox testing enviroment,but how i can transfer money from buyer to seller a/c. vat happens after checkout is made by buyer
,there is an api called dodirectpayment which sends information to paypal about buyer like his credit card number etc to paypal but how paypal credits it to my a/c.
any code would help me alot.
plz help me
|
|
|
|
|
chanu007 wrote: any code would help me alot.
We cannot do your work.
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
don't reply if u do not know yourself. Understand
|
|
|
|
|
Why don't you bug off if you can't behave yourself around here?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hi,
can anybody tell me how to save untouched data in a EditMode of a DeatilsView control. I mean, if I don't put the cursor in the field, even if there is a default data, after I press Update button it doesn't take those default values.
|
|
|
|
|
hell friends
iam the fresher for .net. i have a small doubt. i have 2 button contrls in one web page. when ever i click one button its redirect to one web page and alse i will send some value with that. and second button also same thing but in different web page.
(in short form how can i send some string with response object)
than you.
|
|
|
|
|
You could have a look at passing simple values in the querystring. Have a look at Request.Querystring.
|
|
|
|
|
Response.Redirect("Default1.aspx?strId=" & strValue)
|
|
|
|
|
Hi
U cfan do it with Query String Like Below
This is the Query String That is Passed From Page 1 To Page 2.
PayDetail1.HRef ="~/credit.aspx?typeid=" +Val.ToString();
And
This We Get In Page 2. Like this
if(Request.QueryString.Count>0)
{
if(Request.QueryString["typeid"].ToString()!=null)
{
typeid = Request.QueryString["typeid"];
}
}
Hope This Helps You...
If any problem then ask....
Just Do IT™ [Information Technology]™ :->
|
|
|
|
|
Hello Friends,
I want to send the ImageUrl fetching from the database to the Javascript function
<img onmouseover="javascript:doTooltip(event,0,'<%# DataBinder.Eval(Container.DataItem,"Image") %>')" onmouseout="hideTip()" id="myImage1" name="myImage1" src='<%# DataBinder.Eval(Container.DataItem,"Image") %>' Runat="server" Height="125" Width="125" />
But this piece of code throwing an Parser Error given below
The server tag is not well formed.
But if i give the path of a particular image then it works great....as given below
<img onmouseover="javascript:doTooltip(event,0,'Images/img1.jpg')" onmouseout="hideTip()" id="myImage1" name="myImage1" src='<%# DataBinder.Eval(Container.DataItem,"Image") %>' Runat="server" Height="125" Width="125" />
|
|
|
|