|
|
Don't cross post
only two letters away from being an asset
|
|
|
|
|
Don't cross post. It's just plain rude.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hello EveryBody
SQL SERVER Database
Table1: dbo.Authors (AuthorsID(PK), AuthorsName)
Table2: dbo.Books (ISBN(PK), BookTitle)
Table3: dbo.BooksAuthors (AutoID, ISBN(FK), AuthorsID(FK))
On my ASPX page
I have txtISBN and ddlAuthorsName and a btnSubmit
What I want to is,
On ddlAuthorsName Selected Index Changed I want to show a gvBooksAuthors.
Data will be ISBN and AuthorsName
*** If I select 3 diffrent AuthorsName then It will be appear on gvBooksAuthors
*** And when I clicked btnSubmit then dbo.BooksAuthors will add 3 rows like
AutoID ISBN AuthorsID
1 1001 101
2 1001 102
3 1001 103
Any Instruction will be really helpful
Thanks in Advance
Sarfarj Ahmed
|
|
|
|
|
Sounds like a homework assignment.
You have the author, or their ID, just query your data.
only two letters away from being an asset
|
|
|
|
|
I don't think a drop down list is the right control if you want to be able to select more than one author ? Is this what your teacher specifically asked you to do ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
one book can be written by many authors
so, how will i add multiple authors for a single book
for example,
Book Title: ASP.NET 2.0 Authors: David Cameron. George Bush. Tony Blair. Gordon Brown
this book has been written by 4 authors, so how will i add this 4 authors for asp.net 2.0 book?
Sarfarj Ahmed
|
|
|
|
|
i am using grid view control in my project
i have set autogeneratecolumns false and added columns
like this
<Columns><br />
<asp:TemplateField HeaderText="User Name" SortExpression="UserName"><br />
<ItemTemplate><br />
<%#Eval("UserName")%><br />
</ItemTemplate><br />
<ItemStyle HorizontalAlign = "Left" /><br />
</asp:TemplateField><br />
<asp:TemplateField HeaderText="Voice Id"><br />
<ItemTemplate><br />
<a href="javascript:DispalyError('<%#Eval("vid")%>','<%#Eval("UserType") %>')" title="<%#Eval("VoiceId")%>"> <%# Eval("VoiceId") %> </a><br />
<br />
</ItemTemplate><br />
<ItemStyle HorizontalAlign="Left" /><br />
</asp:TemplateField>
(more columns)
now i want to have sorting property for all columns in the grid can any body please tell me how to do this
regards
sunilwise
|
|
|
|
|
If you turn on the sorting functionality of the grid view, it will render the headers as links, but you will still need to handle the event that is fired, and write the code to sort your data.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
sir can you please tell me in detail how to handle the event
|
|
|
|
|
I have an image in the form of byte array and i have to display it as Htmlimage.
I ve tried in google. I got some results ragarding converting the image into System.drawing.image
Can any body post some links or info. to convert a byte array into html image?
--Sreeram
|
|
|
|
|
mareers wrote: Can any body post some links or info. to convert a byte array into html image?
There's no such thing as a HTML image. You can display an image on a web page by using an <img> tag that points to the URL that represents the image resource.
You could either:
1. Save your image to a file and point an tag to the URL for that file.
2. Create an ASPX page that writes the binary data for the image to the output stream and point an tag to the URL for that page.
3. Write a custom HTTP handler to service image requests and reference it in a similar way to 2.
Perform a Google search for any of these and you should find plenty of relevent information.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi -
I'm using Classic ASP but hoping the solution will be similar if not the same.
What I'm trying to do:
I am working with a Flash ActionScript programmer.
In his application, he is sending a "ByteArray" (binary data that defines the JPG) of a JPG file to my ASP.
In my ASP I want to receive that querystring and write the JPG file to the server.
Possible? How?
Thanks!
Scott@oceanmedia.net
|
|
|
|
|
In my Explorer window I have
c:\...\WebSite3\
App_Data
getDetail.aspx
getDetail.aspx.cs
MasterPage.master
MasterPage.master.cs
and other image file
when i run my program i got error like following
Directory Listing -- /WebSite3/
--------------------------------------------------------------------------------
Thursday, December 20, 2007 10:43 AM <dir> App_Data
Tuesday, July 25, 2006 10:17 AM 9,705 airbus.jpg
Tuesday, July 25, 2006 10:17 AM 22,505 air_holland.jpg
Thursday, December 20, 2007 02:29 PM 262 Default3.aspx
Thursday, December 20, 2007 02:29 PM 406 Default3.aspx.cs
Thursday, December 20, 2007 04:43 PM 3,790 getDetail.aspx
Thursday, December 20, 2007 04:20 PM 663 getDetail.aspx.cs
Thursday, December 20, 2007 05:11 PM 153 Image.aspx
Thursday, December 20, 2007 03:04 PM 403 Image.aspx.cs
Thursday, December 20, 2007 05:12 PM 2,257 MasterPage.master
Thursday, December 20, 2007 02:26 PM 414 MasterPage.master.cs
Thursday, January 01, 2004 05:45 AM 83,794 Water lilies.jpg
Thursday, December 20, 2007 10:49 AM 1,585 Web.Config
Thursday, January 01, 2004 05:45 AM 105,542 Winter.jpg
How can I remove this error. Please tell me what this problem is?
--------------------------------------------------------------------------------
Version Information: ASP.NET Development Server 8.0.0.0
|
|
|
|
|
keyto wrote: How can I remove this error. Please tell me what this problem is?
What error? You haven't explained what the error is.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
OK, I know the problem. Now what?
only two letters away from being an asset
|
|
|
|
|
There is no error. Rename default3.aspx to default.aspx and then you'll have a chance of it running automatically when you browse to the folder.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
I guess that means it's not allowed there. The error message implies that a fully qualified path may be accepted.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Deleting messages isn't very polite, you know...
|
|
|
|
|
Yes i know
This is my actual problem..........
When i'm using the Master Page in web.config file then it's throwing error like
Unrecognised tag prefix or device filter 'asp'
Can anybody tell me y it's throwing
|
|
|
|
|
The Knowledge wrote: Yes i know
Then why did you do it ?
The Knowledge wrote: When i'm using the Master Page in web.config file then it's throwing error like
Unrecognised tag prefix or device filter 'asp'
This is a different issue to what you first posted.
As I said to you yesterday, every path I see to a master page in web config examples online uses a full path, not just the page name. Did you try that ? What did you change to get this new error ? How can we help you if you don't show us the code that creates the error ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
The Knowledge wrote: Yes i know
Then don't delete the message. Someone else might benefit from it as well.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
hi all,
paroblem as follows,
i am using third party control for page navigation.the index of the datagrid current page index not matching with the third party control index.for example when i am deleting last record in second page i am able to bind with the first page. but if am deleting any record in first page it is throwing exception "Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount." the code as follows :
this.dgUserList.CurrentPageIndex = this.dgnNav.CurrentPage;
//Reset the page Navigation if deleting the only record on the last page.
if (dgUserList.Items.Count <= 1 && dgUserList.CurrentPageIndex == dgUserList.PageCount - 1)
{
if (this.dgnNav.CurrentPage <= dgUserList.PageCount && this.dgnNav.CurrentPage > 0)
{
dgUserList.CurrentPageIndex = this.dgnNav.CurrentPage - 1;
}
}
this is the page index of third party control
this.dgnNav.CurrentPage;
Thanks And Regards,
Guru
|
|
|
|
|
Have you tried asking the makers of the third party control?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|