|
Hi Pradipta,
Thanks for your help man. I have some questions to ask please. For my first answer you told me .. "dg.CurrentPageIndex = e.NewPageIndex;" .. what is the NewPageIndex Please?? because when I made e. .. the only thing there was is getType.
Second question is for the pictures. I need to make the users to upload their picture on my forum. I am using an MS Access 2003 not SQL. I dont know how make this happen. I dont know where can I begin with thats why?
Third question .. I want a datagrid that will show the details of the object the users signed in. I want a hyperlink within every row. This link directs the users into a page with more details about that specific row (object). How can i make this please?
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
1. look here, when the pagination is on, it comes in number format, like 1,2,3,... or in Previous/Next format.
consider the previous next format. when you are in page 5, and click next, the next page index is 6. so e.NewPageIndex = 6.
2. I will prefer to keep the images in a folder in the webserver, and keep the path of the images in database. This is done the way I have told in my previous mail.
3. Lets say your object id is objid in the database and you are binding the datagrid with a datatable which get filled from the database table of objects.
Now the column will be something like this
<br />
<asp:TemplateColumn HeaderText="Object ID" Visible="False"><br /><br />
<ItemTemplate><br /><br />
<a id="lnkID" runat="server" href='Newpage.aspx?id=<%# DataBinder.Eval (Container.DataItem, "ID") %>'>><%# DataBinder.Eval (Container.DataItem, "ID") %></a><br /><br />
</ItemTemplate><br /><br />
</asp:TemplateColumn><br /><br />
For more on datagrids, read my article
How to create the id of <td> and <tr> generated by DataGrid in ASP.NET and use it by client-side JavaScript.
Hope this will do.
Pradipta Basu
|
|
|
|
|
|
what is the strName pls??
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
I'm writing a crosstab, RDLC report using the Matrix control.
To add totals for the column and rows i'm using the built in SubTotal option.
This adds a subtotal column and row but doesn't sum the columns/rows. Instead it dislays the first value in the column/row. Am I doing something wrong?
Help!!
Roger.
|
|
|
|
|
hi all
I am a newbie to .net technology and one of my tasks is to develop a feed reader on .net 2005 using asp.net,c# and javascripts, which should display RSS feeds along with custom effects lik scrolling and fading..the scrolling part is done however the fading effect is a big issue..i am retrieving the feeds as xml and binding them to datalist...this technique works for displaying a scrolling feed. however i am unable to find a solution to implementing the fading effect..
one of the possible techniques i have thought of is to retrieve th datalist contents one by one in th code behin file, put them in an array of objects or somethin and pass this array to some sort of script which displays them one by one..however i cant figure out how to actually implement this...any help on this or any other techniques would be greatly appreciated...
Thanks!
|
|
|
|
|
Please be more specific about how you want to use the fading effect.
But what I can say, that to implement the fading effect or other effects, there are good free javascript libraries which you can use. I have myselft used scriptaculous and dojo.
Pradipta Basu
|
|
|
|
|
hi friends
i want to get time format into datetime datatype.
like as
datetime s=convert.todatetime("12:14:55");
but i am getting error to convert string to datetime.
error is:
input string was not in correct format
or
the string was not recognized as valid datetime.there is a unknown word starting at index 0.
thanks in advance.
pathan
|
|
|
|
|
I think you need to use a TimeSpan instead of a DateTime. You can't have a DateTime without some sort of date...
|
|
|
|
|
Hello,
I dont see any reason why you might be getting an error.
I tried the following and it worked.
DateTime s = Convert.ToDateTime("12:14:55");
Response.Write(s.ToShortTimeString());
|
|
|
|
|
Hi
i dont know what happend here.
in c#,it works fine as u wrote but i am getting an error in ajax application(in c#).
i tried much but no result found.
thanks ur reply
pathan
|
|
|
|
|
You could try:
DateTime t = new DateTime ("12:14:55");
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi all
I have downloaded a project ( asp with C# ) from the Internet. but I dont know how to oepn it in visualstudio.net2003 (its web application)
I click on the "sln" file ... but I face a problem in visual studio and it wont be opened .
can anyone tell me how to open a downloaded project in visualstudio ?
should I copy/paste it too root or OTHER PLACE??...
I want to see the whole project in visual studio
thank you.
|
|
|
|
|
|
No
its 2003 project and I also use visualstudio2003
how can I open the project?
it has error while openning and cant open
I described in previous post
|
|
|
|
|
Write the error string...
keep Learning and you never will be out of date...
|
|
|
|
|
the error is :
visual studio.net cannot create or open the application. the likliest problem is that required components are not installed on the local web server.Run visual studio.net setup and add the web developemnet component.
this error occurs while opening a project which is downloaded from the internet.
also it occurs when I write a project in a computer and want to open it in another computer ...( both of the computers have visualstudio2003)
what Should I do?
where should I open or where should I copy the folder of the project..
thank you
|
|
|
|
|
ok, everytime you write a web application over VS2k3 it save the project over the server folder and the solution file is saved onto the user documents, if you using the default settings these folders are these ones.
Server folder C:/inetpub/wwwroot/YOUR-WEB-APP
the solution file is saved onto c:/C:\Documents and Settings\USER\My documents\Visual Studio 2003\Projects 'Im not sure about the last folder'
So , You have to keep the same structure (Even the application name) like the original developer Pc (This is mandatory for the project).
If you have any problems, try open the .sln onto wordpad and check the projects physical address.
Best regards.
keep Learning and you never will be out of date...
|
|
|
|
|
the path is correct ...
I dont know what should I do
|
|
|
|
|
Try creating a blank solution, then add the project(s) to the new solution. If it's a web app, you need to set up IIS to recognize that directory as a web application.
|
|
|
|
|
Hi there! I've a solution containing 5 projects (Visaul studio 2005). When I use session.abandon to end the session in one project. Session in other projects are not ending. Although I've found a workaround by opening a window in each project and using session.abandon in each of them and closing them. But it looks not so elegant. Is there any better way of going about it?
Thanks in advance
Don't Quit
|
|
|
|
|
The session is local to the web application. If you have separate web applications, they have separate session objects, so they have to be handled separately.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
Thanks for your reponse!
Don't Quit
|
|
|
|
|
Hi , i am exporting datagrid to excel sheet..
Here is no problem at all,as far as i dont allow paging for datagrid.
But if i allow paging to datagrig, it doesnt work properly.
The error comes while exporting data to excel sheet.
I am sending my code as follow :
-----------------------------------------------------------
Response.Clear()
Response.AddHeader("contentdisposition", "attachment;filename=FileName.xls")
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.ContentType = "application/vnd.msexcel;charset=windows-1251"
Response.Charset = "UTF-8"
Dim stringWrite As System.IO.StringWriter = New System.IO.StringWriter
Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite)
DataGrid1.RenderControl(htmlWrite)
Response.Write(stringWrite.ToString())
Response.End()
-----------------------------------------------------------
when i use paging in my datagrid, and in debug mode , when i try to find the value of StringWrite object, it shows nothing in it... and fires an error..
prakash sawant
|
|
|
|
|
I am having a calendar in my asp application. This is working fine. But only one of the user getting the calendar improperly.
When he clicks the calendar button, The calendar is displaying only one day(starting day of the month ie.,1).
Any suggestions?????
Regards,
Bhasker P
|
|
|
|