|
I am trying to build a total image from a series of png files chosen by the user by checkboxes. This will be displayed on a website. I have already successfully done this by using CSS and z indexing for layer heights but now it has been suggested to me to use the bitstream method to compile and display the final picture.
Can anyone tell me which of these methods (css or bitstream) is the most efficient for speed and server resources on the web?
Thanks in advance
|
|
|
|
|
If you are using CSS and creating the image on the client then there is no impact on the server other than, probably, getting the images to use.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
hi ,
, my website was created with .Net 3.5 , i cant install .Net 3.5 on the server, can i run my website with .net4 on IIS ??
|
|
|
|
|
You can run your website in both .Net framework 3.5 and 4.0. While opening the website in .Net 4.0, you'll be ask to update your website. Depends upon you, whether you want to update the website or continue using 3.5 only.
|
|
|
|
|
hi ,
, my website was created with .Net 3.5 , i cant install .Net 3.5 on the server, can i run my website with .net4 on IIS ??
|
|
|
|
|
I have a textbox(textarea) in which one can write source code in any programming languages, but the problem is that when TAb key pressed instead of giving blank space it gets out from the textbox and move to next element.... So my requirement is that when TAB key is pressed it will give blank space.
Thanks in advance,Any help will be appreciated...!!!
|
|
|
|
|
You should use onkeydown event of textarea to handle tabs.
Refer this link[^] for JavaScript & this link[^] for JQuery.
|
|
|
|
|
Thanks _Amy
|
|
|
|
|
how to apply sorting in grid view field through codebehind.
and my gridview code is:
SqlDataAdapter da = new SqlDataAdapter("select * from newcustomer ", con);
con.Open();
DataTable ds = new DataTable();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
con.close();
|
|
|
|
|
|
|
My 1: Please read the existing answers and make sure you aren't reposting a link that already exists in another answer.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
How to send SMS using Web services ASP.NET C#
|
|
|
|
|
You need API from your SMS provider. Nothing special, just you need to call API function from your web service.
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
I've no idea about it sooo
www.facebook.com/raazak47
|
|
|
|
|
hi friends,
i have a very specific need for my new project and even logical explanation will do the job . I want to show repeated gridview data in a column with seperated commas and i am also using onrowcreated and rowdatabound methods for multiple headers of gridview from this example:
http://www.dotnettwitter.com/2010/12/how-to-create-multiple-row-header-and.html[^]
i also tried grouped gridview example from here:
GroupedGridview - A Customized GridView Control[^]
but this doesnt fix my needs as i want data like this:
database fields/values from query:
Column_groupid | Group_users | designation | Period
58 Matt Admin 5
58 Andrew Admin 5
58 Sachin Admin 5
58 Dinesh Admin 5
59 Sara SuperAdmin 2
59 John SuperAdmin 2
as you can see the name field is changing while others are distinct (which may change but not an issue for now); now i want to display the data in gridview as:
Sr_no | Group_Persons | designation | Period
1 Matt, Andrew, Admin 5
Sachin, Dinesh
2 Sara,John SuperAdmin 2
how can i solve this problem currently i am thinking of using list and filling it in asp:table but i am afraid of performance issues.
thanks & Regards
Alok Sharma
Once their was a rumor, then it became reality...........
|
|
|
|
|
Hello,
I really dont know this will help you or not..
But still i want to give my try..
you can try to get your solution by sql query..
Below to create test table
CREATE TABLE [ForTest](
[id] [int] NULL,
[id2] [int] NULL,
[vak] [varchar](50) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
INSERT [dbo].[ForTest] ([id], [id2], [vak]) VALUES (1, 1, N'abc')
INSERT [dbo].[ForTest] ([id], [id2], [vak]) VALUES (1, 1, N'xyz')
INSERT [dbo].[ForTest] ([id], [id2], [vak]) VALUES (2, 2, N'pqr')
INSERT [dbo].[ForTest] ([id], [id2], [vak]) VALUES (2, 2, N'mno')
and below query to get result as per you wish..
SELECT
distinct P.id,
STUFF
(
(
SELECT ',' + vak
FROM ForTest M
WHERE M.id = P.id
ORDER BY id
FOR XML PATH('')
), 1, 1, ''
) AS Models
FROM
ForTest P
Hope this will work for you...
KiranKumar Roy
|
|
|
|
|
Hi all, can someone please explain what the Eval expression in the following gridview syntax does.
<asp:TemplateField HeaderText="ID" >
<ItemTemplate>
<asp:HyperLink ID="hlID" runat="server" Text='<%# EVAL("ID") %>' NavigateUrl='<%#"Default.aspx?ID=" + EVAL("ID") %>'/>
</ItemTemplate>
</asp:TemplateField>
In the NavigateURL property, I understand that Default.asx is a file name but what does the expression ID=" + EVAL("ID") do? Thanks in advance for your reply.
|
|
|
|
|
|
Hi, thanks for replying. I still have one question about the Eval expression. What happens when the hyperlink is clicked due to the fact that the ID' field of the datasource is bounded to the text property of the hyperlink? Is the ID sent to the Default.aspx page when the hyperlink is clicked? Thanks in advance for your reply.
modified 16-Sep-12 3:45am.
|
|
|
|
|
No. It's just the text field that is bounded to field in Eval method. It's not sent to anywhere when hyperlink is clicked. You can take/consider it as a runtime text assignment.
|
|
|
|
|
Hi All,
My problem is i am binding around 8,000 records in the gridview and the problem is it is taking more than a min to display data onto the browser. I know one solution can be to use Paging but client does not want paging as he has to search something in grid using ctrl + F feature of the browser. My question is can i load data in a gird view asynchronously just to make the reterieving of data somewhat faster or like as i scroll down in the grid it fetches next set of records without freezing the screen. I have seen this type of feature applied in various E-Commerce sites.
Can you please help me.
Best Regards
Rohit
|
|
|
|
|
Hi Rohit,
It is really surprising to see your client's requirements. However I even agree to the fact that requirements will always be wierd from a developer point of view. It is anyways a bad idea to show all the records at once. What would you do if the number of records increase to 20K or to 1 million? I would suggest you convince your client, get the paging implemented for the gridview. Another option would be, give a search functionality in the page. Based on the search criteria load the relevant records.
Look at the following links, all of them suggest to use paging. Second link talks about some Telerik control, which loads records on demand by scroll. You can check it out.
Loading records in the grid view while scrolling down,No Paging technique.[^]
displaying-large-gridviews-efficienty-in-asp-net[^]
Thanks & Regards,
Vani Kulkarni
|
|
|
|
|
as the above answer suggest giving all data at once is not a good practice , why not convince your client to use search from gridview (you can provide search box above gridview) IMHO you should convince him/her for that because as the records will increase the performance of your project will go down with time no matter what you use (Async or not) because even browser apps take space in memory and soon with so much data if its not a good system, the browser will start crashing(Personal experience)
regards
Alok sharma
sometimes noobs perform better but its sheer luck...
|
|
|
|
|
Hi all, if I bind my datatable which contains the path of a file or files in a folder on the web server, to a gridview like the following, I will get a gridview with file paths inside of it.
DataTable myTable = new DataTable("myData");
myTable.Columns.Add("URL", typeof(string));
string[] fileEntries = Directory.GetFiles(Server.MapPath("~/Uploads/"));
int linkL = 0;
foreach (string fileName in fileEntries)
{
myTable.Rows.Add("~/Uploads/" + Path.GetFileName(fileName));
linkL++;
}
myGrid.DataSource = myTable;
myGrid.DataBind();
As it stands, the code snippet above successfully allows users to download a file by clicking on its path inside of the URL Column of the Gridview. So basically if the file from the web folder is Test.txt I would see the following path in the URL column:
"~/Uploads/Test.txt
But what if I want to change the name Test.txt to a different name and still be able to download the fie? I have tried to change Test.txt to something else by inserting a new name in the path but I get an error message saying that the new file is not found. Any suggestions will be greatly appreciated, thanks for your help.
|
|
|
|