|
hi there,
this explains more then a hundret sentences, and it solves my problem, too. thanks a lot and have a good day!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
matthias s. wrote: have a good day!
You too !
|
|
|
|
|
ok folks, i am currently using a dataset that pulls data from sql express server database (using the standard grid view etc in vs2005) however i wish to show several results in a label. can someone please make a project and send me the this so i can see the way in which this is performed.
Thanks in advanced.
|
|
|
|
|
I am trying to bind data to 2 datalist controls on page load event but getting a null pointer exception. I do not see anything wrong with the code. it just look like it doesn't like the bind. Has the page's lifecycle have anything to do with that? This is the code
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Set the curent selection of list
Dim selectionId As String = Request.Params("selection")
Dim categoryId As Integer = CInt(Request.QueryString("CategoryID"))
' Obtain list of menu categories and databind to list control
Dim products As ASPNET.StarterKit.Commerce.ProductsDB = New ASPNET.StarterKit.Commerce.ProductsDB
MySubList.DataSource = products.GetSubCategories(categoryId)
MySubList.DataBind()
If Not selectionId Is Nothing Then
MyList.SelectedIndex = CInt(selectionId)
End If
'MyList.DataSource = products.GetProductCategories()
MyList.DataSource = products.GetProductMainCategories()
MyList.DataBind()
End Sub
|
|
|
|
|
Which line is causing the exception?
Are you sure that Request.QueryString("CategoryID") is returning a value?
Dim categoryId As Integer = CInt(Request.QueryString("CategoryID"))
|
|
|
|
|
Here is my problem
I want to print the contents of the datagrid c# in ASP.NET 2.0 but the constraints are:
1>When the user clicks the print button all the records till the end even the data is not visible to the user should get print.
2>It should print according to the page size that is the user tells how many records has to be dispalyed at a time on a webpage.
3>At every page the page header and footer sholud be displayed defined by the user
4>How to access the page footer and header programatically inorder to avoid to print the url at the end of the page.
Does any one knows the solution please reply it's urgent!
sunny
|
|
|
|
|
Hi sunny. That's quite a bit to ask for. To a large extent, it is the browser that controls printing (though CSS is catching up some with print media properties[^]. A real header/footer will be decided by the user through the browser, and I know no way to override that from a web page. For that matter, font-sizes and margins can be decided by the user making it virtually impossible for you to calculate where a new page will begin to apply your own header.
If you literally need that amount of layout control for your data, you might consider using a .pdf-creating component. You would have a print link/button on the page and the event handler for it would generate and serve the .pdf dynamically. Here's one open source component that looks promising:
http://sourceforge.net/projects/npdf/[^]
What I'm proposing is complex. But I don't see any straight ASPNET/HTML/CSS way to accomplish what you're describing.
And take this tip: a lot of CP members would pass on this post because you put "it's urgent" on it (I almost did). You probably don't want to sound demanding to a community of volunteers.
|
|
|
|
|
i am using a gridview in asp.net page to display records.
in the gridview i have inserted the in build delete command button to delete the records.
by default on clicking it does not ask for delete confirmation(just like confirm of javascipt). i want to ask for surity before
deleting the record how to do that.
Regards
|
|
|
|
|
|
What Is the "LITERAL" Control ?
MHF
|
|
|
|
|
The Literal control is a control that is used to output literal text.
The control:
<asp:Literal text="asdf"></asp:Literal>
will output this in the html code of the page:
asdf
---
b { font-weight: normal; }
|
|
|
|
|
Hello everybody,
I'm making a project in asp.net with vb,i have a page named as IndividualProperty.aspx.
I'm showing the listing of all the property one after it in the page.when any user select any property such as he select "abc" property, when he click on this Property the IndividualPropertypage will be called.that is ok.
but i want to change the URL from www.xyz.com/IndividualPropertypage.aspx to www.xyz.com/abc.com
meanwhile whatever the property he select property name must be replace the page name in the URL.
How is it possible,plz tell me thanx
|
|
|
|
|
Create a thread of your own instead of asking an unrelated question in someone elses thread.
---
b { font-weight: normal; }
|
|
|
|
|
suppose there is one file field control and one upload button in my page and i want
when user will click on upload button then from server side code i want to upload that file to a specific
machine.means i don't want to upload the file to another machine where my web app and web server is not
installed.
suppose my web app is installed in machine1 and i want to upoad the file to machine2.
i wrote the code like
string sPath=@"\\machine2\DumpFiles\"+sFileName;
File1.PostedFile.SaveAs(sPath);
i am getting error so i want to knwo that how could i upload my file to another machine if i know only the
relative path. so it is not very clear to me that am i getting error for relative path or it is not possible to upload a file which will be saved to another machine in a network by asp.net.
tbhattacharjee
|
|
|
|
|
Tridip Bhattacharjee wrote: i am getting error
The use of the indefinite article suggests you need to supply more information. What error are you getting?
Tridip Bhattacharjee wrote: i want to knwo that how could i upload my file to another machine if i know only the
relative path.
Relative to where? If the path is on another machine surely you know the full path. The UNC Path you provide in your code sample is an absolute path.
Tridip Bhattacharjee wrote: so it is not very clear to me that am i getting error for relative path or it is not possible to upload a file which will be saved to another machine in a network by asp.net.
Probably what is happening is that the other machine won't permit access by your ASP.NET process. By default it won't permit access in order to protect your network from people attempting to attack your network via the website.
You therefore need to allow the share on the other machine to be accessed by the process your ASP.NET web application is running in.
|
|
|
|
|
Hello, everynody!
I have a question for you. I know this may sound silly, but i want to get my web pages designed in asp.net on the server as html or php. Theoretically, i'd like to know if there is any way to convert .asp pages to .html or .php because i wasn't able to find a free web domain to upload my files(after uploading, when i tried to view a page, all i saw was the code i've written).
I would also appreciate if you could recommend me a free web domain that supports asp.net.
Thank you very much!
|
|
|
|
|
I don't know if a conversion utility exists to convert ASP.NET pages into PHP. The two application platforms are entirely different, with very different means for constructing dynamic HTML from markup and code.
If it were me, I would look to rewrite the application in the target platform myself, to make sure I could take advantage of the target's strengths. For example, if I were converting pages from .asp (classic ASP) to .aspx (ASP.NET), even though the pages would run in ASP.NET without changes, I would still rewrite them to get the separation of code & markup and to take advantage of databinding (both are strengths of ASP.NET).
|
|
|
|
|
Hello everybody,
I'm making a project in asp.net with vb,i have a page named as IndividualProperty.aspx.
I'm showing the listing of all the property one after it in the page.when any user select any property such as he select "abc" property, when he click on this Property the IndividualPropertypage will be called.that is ok.
but i want to change the URL from www.xyz.com/IndividualPropertypage.aspx to www.xyz.com/abc.com
meanwhile whatever the property he select property name must be replace the page name in the URL.
How is it possible,plz tell me thanx
-- modified at 7:43 Saturday 5th August, 2006
|
|
|
|
|
|
I have datalist control in an other datalist control. I have to find inner datalist control on edit command of the inner datalist control.
|
|
|
|
|
Hi,
I am running an asp.net, C#.net application and it's found through loadRunner tool that the CPU utilization of the web server reaches around 85-100% for 4 concurent users for this application. However, the tool only tells all this at the page level. Can anyone suggest any tool (preferably an open source freeware), that can indicate the code points that are causing this high CPU utlization?
This is URGENT!
Thanks and regards,
Supriya
|
|
|
|
|
I'm sorry, I don't have an answer for you. But I do have a tip: there are many CP members who may have answers to your question, but who passed on it simply because you wrote the line:
supriya_sameer wrote: This is URGENT!
You'll be in a better position to get a quick reply if you DON'T put in text like that. Putting in text that sounds demanding is a great way to NOT get your question answered from a community of volunteers.
|
|
|
|
|
i have to draw a graph from my database Dynamically
can any body give me a sample or help me ?
With Thanks
MHF
|
|
|
|
|
There are TONS of charting controls for ASP.NET, including Dundas' commercial offerings (Dundas is a CP sponsor). There are also several articles describing how to use GDI+ to draw charts for ASP.NET. Here's one on CP:
http://www.codeproject.com/aspnet/gdiGraph.asp[^]
Try a Google search for "ASP.NET charts" and you'll get bunches of hits.
|
|
|
|
|
I know there is a tool (from MS I think) that would allow me to see and modify the contents of my HTTP post before they get sumbitted to the server. I can't remember the name, though, and Google is failing me.
Anyone know what it's call or where to find it?
|
|
|
|