|
Thanks for the reply Navan,
Can I add the sylesheets in the desing view itself ?
Dana
|
|
|
|
|
Yes. Datagrid allows you to add a pager style tag.
|
|
|
|
|
Thanks.. I wll have a try
Dana
|
|
|
|
|
I tried like this .But it is not displaying any box arround the Next or previous buttons<br />
<br />
<br />
<br />
<PagerStyle NextPageText="Next" PrevPageText="Previous" Position="TopAndBottom" BorderStyle="Solid"<br />
BorderWidth="1" Mode=NextPrev ><br />
|
|
|
|
|
Pager links are just hyperlinks. So create a CSS class which can style the hyperlinks and assign that class to the pager style.
|
|
|
|
|
I tried this one...
But It applied the whole row...
color: #FFFFFF; text-decoration: none; text-transform: none; background:
#800000;
|
|
|
|
|
Hi there,
I created an installer which installs two msi files. This installer is working fine in Xp and 98. But it's giving error in Vista. The error is: Another Process is running. Is there any other way to rectify this problem? Please help..!!
Regards n Thks
Sam.M
modified on Monday, January 14, 2008 4:33:04 AM
|
|
|
|
|
Hi,
I've done research on this topic, but couldn't find much information.
Does CP have good articles on creating ASP.NET intaller packages using Visual Studio 2003 and VS 2005, with different options defined clearly, or other article on internet?
Do you normally user VS built in Deployment project or third party installer software?
Regards,
Blumen
|
|
|
|
|
|
N a v a n e e t h wrote: Which bit you are stuck ?
I had issues with adding custom functionalities. Normally when we install software, we can see Company image in the installer, custom validations, et al. I needed to know how to achieve these with VS installer. Also, adding reference dlls, like if I want the installer to intall Telerik dlls which my product would use.
|
|
|
|
|
Few days back I downloaded MOSS 2007 trial version to try creating custom workflow using InfoPath forms. But could not locate "InfoPath Forms Services" option under "Application Management" tab, and any other means to publish InfoPath forms in MOSS.
MOSS installation is pretty simple and I dont think I missed anything there. Does it means InfoPath Forms Service is not included in the latest MOSS 2007 trial version and I need to install Forms server 2007 also ?
Or I would greatly appreciate if any body could figure out the silly mistake I am doing here
|
|
|
|
|
Hi all,
I have a database that conatins a list of quotations like this:
ID Quote
1 Hi, how are you?
2 Who is this?
... ...
Let's assume that my site is www.myquotes.com, the site doesn't have any pictures stored on it, only the database and the site code. I want to create a website that works as follows:
When a user requests the address "www.myquotes.com/1.jpg" (1 is the ID of the Quote). I want to my ASP .NET application to do the following sequence of events:
1. Extract Quote #1 from the database.
2. Generate a JPEG image that has the writing "Hi, how are you?" written on it
3. Return this image back to the client, so the client will receive a picture that has a writing on it.
so from the client's point of view, he will just request a JPEG image and receive it.
My Questions:
1. Can this be done in ASP.NET (I suppose yes).
2. Are there any .NET compatible tools that can help in dynamically generating JPEG images that contain text on them.
3. Is the process of JPEG image generation time-consuming for the web-server? In other words, if I start to get hundreds of image requests per second will this bring my web application down?
4. Any other tips for doing this?
Regards,
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Mohammad A Gdeisat wrote: 1. Can this be done in ASP.NET (I suppose yes).
Correct
Mohammad A Gdeisat wrote: 2. Are there any .NET compatible tools that can help in dynamically generating JPEG images that contain text on them.
The .NET BCL exposes functionality that allows images to be dynamically generated. Create an instance of a Bitmap[^] class, use the Graphics.DrawString[^] method to draw the text onto the image. Call Bitmap.Save and save the bitmap data to a MemoryStream . Finally, and write the contents of the MemoryStream out to the browser by calling HttpResponse.BinaryWrite .
Mohammad A Gdeisat wrote: 3. Is the process of JPEG image generation time-consuming for the web-server? In other words, if I start to get hundreds of image requests per second will this bring my web application down?
I'm not an expert on this, but I would have thought that generating images is somewhat performance-intensive. You should run some tests to investigate this.
Mohammad A Gdeisat wrote: 4. Any other tips for doing this?
Nothing else I can think of.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks mate for the reply,
just another related question:
When a client requests the web address "www.myquotes.com/1.jpg" can ASP .NET handle the request? I mean that IIS might not handle the HTTP request because the extension of the file is JPG not ASPX.
Is there a way to make my web application handle HTTP requests for JPG file types? btw, I will run my application on public servers so I might not be able to set IIS configuration.
Thanks
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Mohammad A Gdeisat wrote: When a client requests the web address "www.myquotes.com/1.jpg" can ASP .NET handle the request? I mean that IIS might not handle the HTTP request because the extension of the file is JPG not ASPX.
If JPG extension is mapped to aspnet_isapi.dll in the server(IIS), it can handle that. BTW, why do you want to handle that ? I guess you need to write the string even though they are accessing it directly ? Correct ? For doing that, you can map JPG extension to HTTPForbiddenHandler . So when user requests the files directly, it will show "this type of pages are not served".
Mohammad A Gdeisat wrote: I will run my application on public servers so I might not be able to set IIS configuration.
AFAIK, server providers will do this for you if you place a request. I have done the same with my provider.
|
|
|
|
|
Sir,
Thank you for your answer. If I may, a follow on question.
I have vb.net console application that draws with GDI+ and saves it to a .jpg every second. My .aspx web page auto refreshes every second with the newly saved .jpg included.
I would like to do this without saving to hard disk.
I would like the console application to simply create a memory stream as you have suggested but only see option for a MemoryBMP. Can a .aspx page use a bitmap from memory of another process?
Any suggestions?
Thank you.
|
|
|
|
|
shipstech wrote: Can a .aspx page use a bitmap from memory of another process?
I don't think so. It sounds like your current solution is overcomplicated though. Is it necessary for your console app to create the files? Your ASP.NET web application could dynamically create the images in memory and stream them back to the client.
Search Google[^] and you will find plenty of examples of how to do what I suggested.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thank you for your quick reply.
The console app is a stripped down version of a windows forms app that has a nice interface. I was looking for a quick way to provide the same info across the LAN on browsers and thought I'd try my first asp.net project. Saving the JPG and serving it up on a web page was a quick and dirty way for proof of concept.
I am now exploring adding an HTTPlistener to the console app, making it a page server so no passing of image required.
I'll see how it goes and may buckle down and port the GDI+ code to asp.net as you suggest.
Thanks again.
|
|
|
|
|
Using .Net 2.0
When a user registers on my website, I create an activation string (built with randomly selected characters with a verifiable string embedded in it), encrypt the string, and send an email to the user with a url in it. This url is formatted like so:
htt;?/mysite.com/activation.aspx?activate=abcedfg
...where "abcdefg" represents the encrypted string. When the user clicks that link, he gets the following error when the site attempts to decrypt it:
Invalid length for a Base-64 char array.
What am I doing wrong?
Solution:
UrlEncode/UrlDecode would not work because the encrypted string contained non-alphnumeric characters (like + and / ). I ended up having to write a couple of functions that converted the encrypted string to/from a hexstring. In other words, the string "ABC" would become "414243", and vice-versa.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Monday, January 14, 2008 8:43:17 AM
|
|
|
|
|
Do you url-encode the value when you put it in the url?
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I tried that and that didn't work either...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi,
I nedd to pass value between tow Asp.net pages, so I search in the internet, then I found MSDN Example, the Note has been written:
Note : To make the class declared in the sending Web Forms page available in the code-behind file of the receiving Web Forms page, you must manually compile the code-behind files of each Web Forms page, using the command line compiler, into a single .dll file. The .dll file must be placed in the \Bin directory of the Web Forms application.
The handler object is then converted to an instance of the class encapsulating the passed information. Once the conversion is performed, the passed values can be accessed through the properties of the converted object.
... So I used command windows in Visual Studio 2005 to do this step but it doesn't work ! so any suggestions, or some help
by the way, I have two web pages, the first called FirstPage.aspx and the second called SecondPage.aspx need to pass value from textbox.
Regards
Mr.Wonderful
|
|
|
|
|
This note refers to the compilation of classes that reside in the code-behind files for ASP.NET web applications. Typically this is done automatically by Visual Studio when you click 'Build' in the IDE. It has nothing to do with passing values between web pages however. This can be achieved by encoding the values as querystring variables and adding them to the request URL. Alternatively, you could use cross-page postbacks[^].
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi,
As I understanding from the Note: I must manually convert the two web pages to (.dll) files to allow value passing from FirstPage.aspx to SecondPage.aspx, but Unfortunately there is no bin folder contains (.dll) files created automatically whene I build the project, so I have to do the solution mention in the Note, but Unfortunately too the error message appeares (a NullRefefence Exception Was Unhandled by User Code ) on the bold text for the firstPage.aspx web page.
public readonly property firstname() .
Get
' first is the name of a TextBox control.
Return Me.first.Text
End Get
End property
I hope the idea of the probelm reach to you.
thank you again
Mr.Wonderful
|
|
|
|
|
I am making a small page in ASP.NET and in order to resize a specific control at runtime, I need to know the height of the homepage in the browser it is open in.
How do I get this height of the page?
I have tried to look through the available properties in the C# code (in my case located in Default.aspx.cs) but cannot seem to find anything about the size of the page.
If it was a Windows form I would just have called the Height property but is something like this available in ASP.NET?
|
|
|
|