|
I would recommend storing the images in the DB itself, then maintaining structures and such becomes much easier. It will also allow you to reorganize the structure, add, delete etc. much easier.
If you interested, there is a starter kit you can download that has much of this functionality built in. You can DL from the asp.net site. Its the personal web site kit (or something like that).
It would be easy to modify that piece of the kit to suit your needs. If you don't want to do that, there are umteen articles on the web on how to add and retrieve images from a DB.
My 2 cents.
|
|
|
|
|
Hi in my grid i am binding some of the records...,
In that one of the boundcolumn field some the values are null(not show anything)...,
So i like to count how many cells are like that...,
So i used this code:
Dim count As Integer = 0
For Each MainGRD As DataGridItem In Me.dgrdmain1.Items
If (MainGRD.Cells(0).Text) <> "" Then
count = count + 1
End If
Next
lblNoofDays.Text = "No Of Days" & ":" & count
But its counting and show all the values...,
How to solve the prbs plz any one help me,
Advance thanks
Regards,
Magi
|
|
|
|
|
No idea , May be because of some whitespace. Try trimming the text before comparison
|
|
|
|
|
dim index as integer<br />
For Each MainGRD As DataGridItem In Me.dgrdmain1.Items<br />
<br />
For i as interger = 0 to MainGRD.Cells.Count-1<br />
If (MainGRD.Cells(i).Text) = "" Then<br />
count = count + 1<br />
<br />
End If<br />
Next<br />
<br />
Next
Hope it's Helpfull for you
Basharat
|
|
|
|
|
I am using GridView control which has checkbox column (itemtemplate) and a dropdown column (itemtemplate). Also, I've set the edit/update property to OFF-as I don't want to update the database one row at a time. (ie. don't want many calls to the database--also its not very user friendly).
I have a submit button on click of which I read the values of the gridview contruct a string and pass it to the database. However, how do i deal with paging? As i move from page to page how would i keep track of what has been updated on each page?
use disconnection architechure and want to keep track of every page.
|
|
|
|
|
Civic06 wrote: as I don't want to update the database one row at a time. (ie. don't want many calls to the database--also its not very user friendly).
What I suggest is, instead of using disconnected architecture you need to update in DB each row. If you are using disconnected architecture also, your page needs a postback to update values to datatable. To keep datatable when page changes you need to store it on some session variables. This is not a good practice since you have lot of data available on datatable. So better option will be updating DB and binding each time.
Or you can update page by page. This will be more user friendly I think. When page changes update all changes made on the current page to database and rebind the gridview.
|
|
|
|
|
hello i am beginner and one of my teacher gave me a file of aspx.cs and he wants me to change the contents but i see the following code in it
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|31 Aug 2006 07:19:54 -0000
vti_extenderversion:SR|5.0.2.5012
vti_lineageid:SR|{5C25F021-E9C0-4AEE-93F2-8A2DF6530A17}
vti_cacheddtm:TX|10 Aug 2006 08:30:27 -0000
vti_filesize:IR|2834
can you please tell me if it is in compiled form, or what how to find the code where i need to make changes,
thanks
its urgent plz
|
|
|
|
|
In general we don't do peoples homework.
Ben
|
|
|
|
|
thanks for you reply
sir i dont want some one to do my home work, i simply want to ask what is this code, becuase it is written inside a default.aspx.cs file, normally when i create a aspx.cs page i do coding in it, but this page shows me the following code in it,
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|31 Aug 2006 07:19:54 -0000
vti_extenderversion:SR|5.0.2.5012
vti_lineageid:SR|{5C25F021-E9C0-4AEE-93F2-8A2DF6530A17}
vti_cacheddtm:TX|10 Aug 2006 08:30:27 -0000
vti_filesize:IR|2834
so i am asking is it a compiled code or what. if its a compiled code then i will ask the instructor to give me the source code file, so i can do my work
thanks for your time
|
|
|
|
|
No it is not compiled code. They are meta-keys.
Ben
|
|
|
|
|
Hi friends
I have one page in admin side called view_marketupdate.aspx.
In this page i have dynamically generated many tables with many records from database and also bind every each table's record graph.
Now I want to generate .html or .txt file for this page and want to use this file in front side to display same layout of page.
Not all page but only all tables and their graph which all are placed in div tag
Thanks in advance
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Imran Khan Pathan wrote: Now I want to generate .html or .txt file for this page and want to use this file in front side to display same layout of page.
I assume that you need a html file which looks exactly same like your admin page ? If so you can make use of WebClient class. This class is used to send request to webpages and returns byte array contains the processed HTML code of the requested website. You need to write it to a html file. Or alternatively you can use DownlodFile() method of WebClient class.
|
|
|
|
|
Has anyone had any experience with setting up Impersonation and Constrained Delegation for an ASP.Net WebApp thats accessing Index Server on a different server?
I've setup the WebApp so that it's working fine with Impersonation, and I've set the web server to be allowed to delegate to the Server that Index Server is running on. BUt it's still not working X(
|
|
|
|
|
i have to Integrated outlook 2003 e-mail with my .net appliation.
So I can send notifications mail to outlooks.
How i do that ..
is any tool available for this.
thanx
ashish
-- modified at 8:38 Wednesday 25th July, 2007
|
|
|
|
|
Which version and edition of Outlook? Outlook that comes with office? Outlook Express? Outlook 2000? Outlook Express 6?
Intergrate into your application? You want Outlook to appear inside your app? YOu want to be able to read the mail from Outlook? You want your app to be able to display parts of Outlook?
You need to give more details.
|
|
|
|
|
Hi all,
How do I change the title of the master page within the content page.
I tried using
Master.Page.Title = "PageTitle";
but that doesn't work
thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Got it working.
Master.Page.Header.Title
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Hi
I have an application in that, the broswer window popups up and should automatically closed after some selection is made in that window
like.....
If I checked a CheckBox then that value of the CheckBox i.e true should be entered into the DataBase, after that the window should atomatically closed.
I am successful in entering the check box value into the DataBase but I am unable to close the window.
How can I close the window.
where should I write the code.
Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison
Thank u
Chandu
|
|
|
|
|
|
hi,
better to use javascript,
in the check event of checkbox write to close the window , like
window.close()
|
|
|
|
|
use self.close(); end of function
Best Regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hi guys.
Ive a problem with my links.I have a link from my Default.aspx page to a html(Dreamweaver) file that goes like this Page.Response.Redirect("C:\Documents and Settings\kagisho.mashiloane\My Documents\Visual Studio 2005\Projects\Final Airliquide TelephoneList\Home Page\HomePage.html").
its not opening the page, and gives this error - Server Error in '/Final Airliquide TelephoneList' Application.
--------------------------------------------------------------------------------
HTTP Error 404 - Not Found.
--------------------------------------------------------------------------------
Version Information: ASP.NET Development Server 8.0.0.0
So, I also tried this - Page.Response.Redirect("HomePage.html") since I have the two files in da same folder but i still get this message.Ive tried configuring my IIS manager to allow dynamic pages but i cant see where the options is to change or add extensions so dynamic pages can display.
Ive tried a couple of things guys.Thanx in advance
kagiso
|
|
|
|
|
matjame wrote: Page.Response.Redirect("C:\Documents and Settings\kagisho.mashiloane\My Documents\Visual Studio 2005\Projects\Final Airliquide TelephoneList\Home Page\HomePage.html").
You won't be able to redirect like this, since file is not in some server. You should specify virtual path in Response.Redirect()
|
|
|
|
|
So, if I said Page.Response.Redirect("HomePage.html") it should work.
But I have tried that and it doesnt work either.I tried that before attempting this one.
Thanx anyways for your assistance.
kagiso
|
|
|
|
|
i have created class library project and i have written connection string to sql server in app.config file like
<configuration>
<appsettings>
<add key="ConnectionString" value="data source=tiger\sqlexpress;initial catalog=PBNNET; password=AS1FJHLI;persist security info=true;user id=PBN_Admin;">
now i want to use this project in web application. So i will add the DLL of this project in web application. But how can i read the connectionstring from app.config file in web application?
Please provide some code or guidance for it.
|
|
|
|