|
Hi,
I have a very simple issue with my datagrid.
I have a date column only in datagrid. I have future dates, current dates and past dates in that.
I want to show the row selected which is nearest to today, when data load from dataset.This is one issue. Second, I want to change color of the row when somebody select a row. when somebody click another row, previously selected row's color will change to it's original color.
If anybody can help me, i will really appreciate that.
Thanks,
NIKI
|
|
|
|
|
Hi..
I have visual studio 2003 and I am trying to use Google Search Web Service(C#).But I got the error:
DataBinder.Eval: 'EProjects.googleapi.ResultElement' does not contain a property with the name title.
The source code of the Web Form that should display the Google Search Results:
using googleapi;
/// <summary>
/// Summary description for GoogleResults.
/// </summary>
public class GoogleResults : System.Web.UI.UserControl
{
protected System.Web.UI.WebControls.ImageButton imgPrev;
protected System.Web.UI.WebControls.ImageButton imgNext;
protected System.Web.UI.WebControls.DataList lGoogle;
public EProjects.googleapi.GoogleSearchResult gsR;
public EProjects.googleapi.GoogleSearchService gcs;
private void Page_Load(object sender, System.EventArgs e)
{
gcs=new googleapi.GoogleSearchService();
gsR=gcs.doGoogleSearch(licenceKeyString,Request.QueryString["Query"],
0, 1,true, "", true, "", "", "");
PopulatelGoogle(gsR);
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
///Required method for Designer support - do not modify
///the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void PopulatelGoogle(GoogleSearchResult gsR)
{
lGoogle.DataSource=gsR.resultElements;
lGoogle.DataBind();
}
}
}
The HTML code of the same page:
<table height="100%" width="100%">
<tr>
<td colSpan="2">
<asp:datalist id="lGoogle" runat="server">
<ItemTemplate>
<span style="font-size:17px;font-weight:bold;">
<%#DataBinder.Eval(Container.DataItem,"title")%>
</span></br>
<%#DataBinder.Eval(Container.DataItem,"snipper")%>
</br> <a href='<%#DataBinder.Eval(Container.DataItem,"URL")%>'>
<%#DataBinder.Eval(Container.DataItem,"URL")%>
</a>
</ItemTemplate>
<SeparatorTemplate>
</p>
</SeparatorTemplate>
</asp:datalist></td>
</tr>
<tr>
<td align="left"><asp:imagebutton id="imgPrev" Runat="server"></asp:imagebutton></td>
<td align="right"><asp:imagebutton id="imgNext" Runat="server"></asp:imagebutton></td>
</tr>
</table>
I tried to solve this problem for a long time but I couldnt please help.
"I am too late but i will never give up"
|
|
|
|
|
hello
i have a flash (.swf file ) that i made in macromedia flash 8.0
and i want to add it to my page in asp.net/vb.net page
anybody can help me ?
thanks
|
|
|
|
|
Using a flash file has nothing to do with ASP.NET. You use it as you would on any web page.
---
b { font-weight: normal; }
|
|
|
|
|
please, i'm using th VS.net can u tell me how or give me the code. thanks
|
|
|
|
|
How can I add a javascript code and call it from the c# code in a web user control?
I am trying to open a new browser window when a button is clicked but i have to do some processing in the event handler then open the new window.Is there a way to do it?
Mohamed El Gohary
|
|
|
|
|
Use the RegisterClientScript method to add the code to the page.
---
b { font-weight: normal; }
|
|
|
|
|
But this only works with WebPartManager control. Are you sure this is the only way?
Mohamed El Gohary
|
|
|
|
|
What does only work with the WebPartManager control?
---
b { font-weight: normal; }
|
|
|
|
|
How to call acrobat dll in asp.net?Can any please send me the code using CSharp?
Scenario.
In my web form i have 2 Link buttons . If i click one of the link the pdf file should be loaded into our web form (I want to access the methods and properties of acrobat dll inside asp.net web form using CSharp) ?
Thanx in advance
|
|
|
|
|
I want to create a site using asp.net which enable people to vote for their fav idols. (SQL database will be used)
To be honest, I am looking for a all done codes so that i can focus on the other parts of the project.
Hope you guys can help me. Thanks Alot ....
|
|
|
|
|
any ideas about how to count number of words found when using the full-text search feature in sql server 2005 and high-light these words when i bind the search result on my web page...i'm using ASP .NET 2.0
Thanks in advance
Yasser Salama(MCP)
|
|
|
|
|
Hello All,
I am stuck with one problem. I am having one asp.net application in .net framework 2.0 and there is one link to open share point portal. I don't want to get login screen in share point when my user click the link from my asp.net application as he is already get login to my application.
Please help me ASAP.
Thanks,
Ritesh Shah
------------
ritesh4web@gmail.com
|
|
|
|
|
Hi Everyone,
Please help me ASAP as This matter is urgent to me.
Thanks,
Ritesh Shah
Ritesh Shah
------------
ritesh4web@gmail.com
|
|
|
|
|
I have a couple of questions, I am developing a small application Kiosk Style the UI will be controlled by Touch Sceen only. My question is
1. how do i make the browser full screen? No title bar, no status, I would like the only function to be those presented by the application (asp.net, C#).
2. Can I use flash to be the front end and use ASP.NET (c#) as my language?
3. I am going to run this with stored procedures with SQL server 2000. Should my insert functions be stored procedures. there is a possibility that up to 10 stations (kiosk) could theoretically run at the exact same time.
Thanks this forum is a life saver.
|
|
|
|
|
I'm sure this will be embarrassingly simple.
I have web pages that are a fixed width (800 px). I'm using masterpage/content.
How do I make the masterpage and content center in the browser window?
A= Image from master page
B= page content
-----------------------------------------------------
| | A | |
| |
| | B | |
| | | |
| | | |
| | | |
-----------------------------------------------------
Everyone else's job looks easy
|
|
|
|
|
can i get help on wat this line does
response.redirect("login.asp?l=incorrect_login_or_password")
i understand the redirect part but wat is this " l=incorrect_login_or_password"
can anyone help me this....will be very greatefull....
thank you..
|
|
|
|
|
That is a query string. It's very common for sending information to a page.
In the page the value "incorrect_login_or_password" can be picked up using Request.QueryString("l").
---
b { font-weight: normal; }
-- modified at 16:08 Saturday 24th June, 2006
|
|
|
|
|
thanks alot for the help...
|
|
|
|
|
hi all,
In my table i have two columns named FromDate and ToDate. I have to
find the each and every date in that range and display them in a datagrid.
Let us take
from date: 06/10/2006 (mm/dd/yy)
To Date: 06/15/2006
output should be like this( in datagrid)
check box 06/10/2006
check box 06/11/2006
check box 06/12/2006
check box 06/13/2006
....
check box 06/15/2006
can anybody help me how to do it
Thanx in advance..
your
peter
|
|
|
|
|
You simply read the from, to date values from the two columns in the table to the variables, then build a custom date list and bind it to the datagrid control. The sample code looks something like:
DateTime from = ...;
DateTime to = ...;
List<DateTime> list = new List<DateTime>();
for(DateTime date = from; date < to; date=date.AddDays(1))
{
list.Add(date);
}
gridDate.DataSource = list;
gridDate.DataBind();
In case you use the ASP.NET 1.1, you can replace the generic List class with the ArrayList or a custom DateTime collection object.
|
|
|
|
|
hi
i wnt to make the website template in asp.net,tell me how can i make it ,if i make it in macromedia dremweaver thn hw can i embed it in my asp.net page..
mean i wnt to use this template in my whole website.jst i embed it ,,tell the procedure or the way i can make it..
waiting for ur rply
|
|
|
|
|
How to create shortcut for homepage in web application or add in favorites Menu
parthiban
|
|
|
|
|
You need to create an Internet Shortcut[^] to the home page, and you can save it in the Favourite or Desktop special folder.
|
|
|
|
|
create an HTML file put
Save the Html with a Lovely name "ShortCut to your proj name"
Add a special folder->User's Desktop->Paste the above HTML file
Build setup
------------------------------------------
Boss asked me to Develop in "Java" or "Better"
So Developed in .NET
|
|
|
|