|
You can not work with multiple forms in ASP.NET. You only response to one page request at a time.
If you want to open another web page in a separate window, you either use the target property of the anchor tag:
<a href="AnotherPage.aspx" target="_blank">open</a>
Or you use Javascript:
window.open('AnotherPage.aspx', '_blank');
---
Year happy = new Year(2007);
|
|
|
|
|
I am using dropdonnlist to fillup and display from the data base,i have given code fr filling is
dbconn()
clist.Items.Insert(0, "select")
Dim selectcmd As SqlCommand
Dim dtr As SqlDataReader
selectcmd = New SqlCommand("Select * from Student", Conn)
Conn.Open()
dtr = selectcmd.ExecuteReader()
While dtr.Read
Slist.Items.Add(dtr.GetString(2))
End While
dtr.Close()
Conn.Close()
and i am inserting the sid as per the sname selected from the dropdown,but the problem is
while displaying like navigation,
the text with the respected sid are not coming into the dropdownlist,only values are coming,
For this i have tried with,
1)slist.selecteditem.value(only sid is coming)
2)slist.selecteditem.text(nothing is coming)
how to get the related sname,here in the database only sid was inserted.
kissy
|
|
|
|
|
Slist.Items.Add(dtr.GetString(2))
change the above line as
Slist.Items.Add(new ListItem("text field which you want to take",dtr.GetString(2)))
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
|
|
|
|
|
Thank you for ur response,But there is no change in display,The (sname)text with the respected sid is not coming while i am navigating the records.
how to get the textvalue???
Give me an idea.
thanks once again
kissy
|
|
|
|
|
can you paste the changed code again
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
|
|
|
|
|
Hi.
I'm trying again since its look like my previous post was misunderstan.
I have page aaa.aspx with an IFRAME that contain page bbb.aspx.
page bbb.aspx sometimes redirect himself to page ccc.aspx.
The problem is that after I loaded the aaa.aspx page I want to know what page do I see in the IFRAME. (bbb or ccc).
What I've tried to do is to run a JS in the onLoad of aaa.aspx that after 5 seconds get the "src" property of the IFRAME but I saw that even if bbb.aspx redirect to ccc.aspx the source is still bbb.aspx.
I know it complex but I really hope you can help me.
Even if you know for sure that it can't be done because of security resones I'll be glad to know.
Thanks.
Thanks.
|
|
|
|
|
Actually ur logic is not wrong , but the method is wronge... because u r not triyng to find location of a FRAME, although u r trting to find src of an element...
I belive u r doing something like this...
alert(document.getElementById("SOME_IFRAME_ID")).src;
Don't do that... try this...
alert(document.frames["SOME_IFRAME_NAME"].document.location.href);
Hope this will solve u problem...
|
|
|
|
|
Hi blue_arc, Thanks for the replay.
I already got a similar answer BUT (There always a BUT) the problem is that I got a javascript error saying "Access denied".
The other person said it worked fine for him
Did you try it yourself and know for sure that it work? Are there any other setting need for runing this and bypass the "access denied" error?
Thank again
|
|
|
|
|
Damn...
Thats what I found
"Well, access to pages on another host is denied. In IE you can't do it
all (unless a signed active x is used which exposes the needed
properties to scripting), with NN4 you need trusted script to call"
So, I guess there a way
|
|
|
|
|
|
Hi all,
I have created a web application using .net framework 1.1. And created a setup deployment. I have deployed it on another server. Now its not working. The .aspx pages are displayed as text files only. Now please any body tell me what are the steps to install a web application, or where did I commit a mistake. Or otherwise what are the minimum requisites to run a deployed web application and steps to load them. Thank you.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
You need to install the .NET framework AFTER IIS, or run aspnet_regiis with the -i switch, in order to register IIS to use ASP.NET.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Yes, I installed the .net framework after IIS only. But still it is not. And could you please tell me clearly how should I use this "aspnet_regiis -i" registration at command prompt. Like after this -i what should I use. And at which directory prompt, I should use it.
>aspnet_regiis -i ?
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
its available in the folder C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
|
|
|
|
|
You need to go to the command prompt, then navigate to the folder:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
assuming c:\windows is your root directory for windows.
Then you type in the command as I gave it, and it will register IIS for you.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Ok. Thank you, I got it. Thank you very much.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Hai Friends,
I have one problem withe Excel Sheet, Actually Iam uploading excel sheet , and I am storing the contents of Excel sheet in DATASET and i am reading the data from DATASET
While Reading Data from DATASET,Iam unable to read the INTEGER data Even i am reading the data of Text,
getting problems with INTEGER data and it is giving error is INVALID CAST ERROR and it is showing the valuse DBNull
i have tried to solve it by changing the properties of Excel Sheet CEll,but could not Succeed
Iam giving Code what i wrote in aspx.vb
Dim TNo As String
Dim ASFD As integer
For i = 4 To DS.Tables(0).Columns.Count - 1
TNo = Trim(DS.Tables(0).Rows(0).Item(i))
ASFD = DS.Tables(0).Rows(6).Item(i)
when i am reading the ASFD,iam getting the INVALID CAST Error
|
|
|
|
|
Hai Friends,
I have one problem withe Excel Sheet, Actually Iam uploading excel sheet , and I am storing the contents of Excel sheet in DATASET and i am reading the data from DATASET
While Reading Data from DATASET,Iam unable to read the INTEGER data Even i am reading the data of Text,
getting problems with INTEGER data and it is giving error is INVALID CAST ERROR and it is showing the valuse DBNull
i have tried to solve it by changing the properties of Excel Sheet CEll,but could not Succeed
Iam giving Code what i wrote in aspx.vb
Dim TNo As String
Dim ASFD As integer
For i = 4 To DS.Tables(0).Columns.Count - 1
TNo = Trim(DS.Tables(0).Rows(0).Item(i))
ASFD = DS.Tables(0).Rows(6).Item(i)
when i am reading the ASFD,iam getting the INVALID CAST Error
|
|
|
|
|
Hai Friends,
I have one problem withe Excel Sheet, Actually Iam uploading excel sheet , and I am storing the contents of Excel sheet in DATASET and i am reading the data from DATASET
While Reading Data from DATASET,Iam unable to read the INTEGER data Even i am reading the data of Text,
getting problems with INTEGER data and it is giving error is INVALID CAST ERROR and it is showing the valuse DBNull
i have tried to solve it by changing the properties of Excel Sheet CEll,but could not Succeed
Iam giving Code what i wrote in aspx.vb
Dim TNo As String
Dim ASFD As integer
For i = 4 To DS.Tables(0).Columns.Count - 1
TNo = Trim(DS.Tables(0).Rows(0).Item(i))
ASFD = DS.Tables(0).Rows(6).Item(i)
when i am reading the ASFD,iam getting the INVALID CAST Error
|
|
|
|
|
Don't spam the boards repeating the same thing over and over again. Posting your question once is sufficient for people to see it.
|
|
|
|
|
Hi
How can I make a auto generated column read-only. Means when I click the edit button some column data should appear as it is. It should not change to edit mode. As we are making a column read-only in window app. Is it possible in web app?
Thanks & Regards
Smruti
Smruti
|
|
|
|
|
Hi all
I got the answer. By setting the DataKeyNames we can make a auto genereted column read only.
|
|
|
|
|
Hi all,
How can I create a short cut key any button in .net. Suppose I have a button named btClick and button text as "Click". In this I want to keep "C" as short cut key for this button click event. Can I do it in Windows and Web applications too?. If so please tell me how in both type of applications?. Thank you.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
I don't think you can in web apps. In windows apps, you can certainly catch a keyboard event and call the button click if it's a 'c'. I am not sure if it's possible otherwise. In a menu, if you type &, as in &Click, that gives you a shortcut.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
if you want to do it in web application,you must have a focus on something(e.g textbox) and then catch the keyboard code to press
|
|
|
|