|
You can't launch a new page with vb.net, at all. It runs on the server. An anchor tag with target='_blank' will open a new page, this new page can be passed an id on the URL, and generate/return/whatever your PDF
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
where I put target='_blank' ?
if I put it into windows.open is the same I.E will block it because it believes that is pop-up
and into response.redirect is not possible.
sorry I don't understand your solve.
|
|
|
|
|
You put target="_blank" in the A tag, eg:
<a href="page.html" target="_blank">link</a>
And since you have no control over IE's popup blocker there's not much else you can do if it's blocked.
Regards,
--Perspx
"A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year." -Andrew Tanenbaum
"Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer." -Fred Brooks
|
|
|
|
|
sorry but I don't have
<a href="page.html" target="_blank">link</a>
I have
Response.Write("<script language='JavaScript'>window.open('VisorFicheros.aspx?Id=" + gridView.SelectedRow.Cells(1).Text + "',target='_blank' )</script>")
but it is the same that
Response.Write("<script language='JavaScript'>window.open('VisorFicheros.aspx?Id=" + gridView.SelectedRow.Cells(1).Text + "')</script>")
I don't see any diferent, I.E continue block and with I.E.6 the focus is into master page and not into new window
for me is important make it without window.open because i.e block it.
For sample if I make it with a linkbutton work well the window.open (doesn't block i.e) but I don't know like do it with into my event gridView_SelectedIndexChanged, any idea?
thanks for all
|
|
|
|
|
You can use the JavaScript location.href property as follows:
location.href = [URL];
to open the page in the current window.
Regards,
--Perspx
"A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year." -Andrew Tanenbaum
"Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer." -Fred Brooks
|
|
|
|
|
When you use the window.open method the second parameter is the target, and you can't name the parameters in a function call.
Response.Write("window.open('VisorFicheros.aspx?Id=" + gridView.SelectedRow.Cells(1).Text + "','_blank');")
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
If I put _blank I don't see diferent.
My first problem is that I don't want to use javascript, I want to use only vb.net (asp.net) and my second problem is that when I see that with response.redirect I can't open a new page I have that use javascript with windows.open, with it i can open a new window for me is not necessary the attrib _blank, this is not my problem my problem later with windows.open are 2 the firs and more important is that I.E block my page because is a pop-up, I can't say to all users that unblock it because this is internet I need to give a solution by code that not depend of user. My second problem with windows.open is that sometime the focus is lost and I see my main page and not my new window (I can see it if I tabulate).
Thanks for your help.
|
|
|
|
|
There is no other way to open a new window other then any client side script. You have to use either Javascript or vbscript.
|
|
|
|
|
Hi ,
I want to show my errore message also other message
by meaage box in asp.net c#..
how can i do it please inform me details.
Thanks
fatema
|
|
|
|
|
hi
R u using Validation summary?.
i think it is useful for u.
|
|
|
|
|
use ASP.Net Validation Summary. This[^] Will Help You !!
cheers,
Abhijit
|
|
|
|
|
I would say you need to buy a book on ASP.NET. As for your specific question, you would use javascript, or perhaps something in ASP.NET that emits js ( like the validation summary others have pointed to ). alert is the javascript method to show a message box.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Its possible to use third party controls in vs2003?,
Mean i want to use infragistics controls in my vs2003 project,
but i cant able to add those controls in my control toolkit,
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
hi
some of third party controls need newer version.
like AJAX toolkit.
bye.
Mohammad Khansari
|
|
|
|
|
Any toolkit that you try to use, will need a .NET 1.1/VS 2003 version for you to use it. Why are you living in the dark ages ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I've used dropdownlist in my asp.net page. I've loaded ID and Name from a table using datareader. To get the ID value i've used "selecteditem.value" and i'll put it into table. But the problem is if I've selected 3rd item in the drop down, but the code "selecteditem.value" and "selecteditem.text" both give the values for first item listed in dropdown. So, it stores wrong value in table.
How can I get the value for currently selected item. I'm standing initial stage of .net
If any can give a answer pls, reply for this post....
Thank You,
Rishihar S
WinCrs
|
|
|
|
|
if you have assinged id value to dropdown using
dropdownlist.datavaluefield ="databasefield id"
or
dropdownlist1.items[i].value = "value";
then using dropdownlist.selectedvalue you can access id of selectedvalue.......
umerumerumer
|
|
|
|
|
I've used dropdownlist.datavaluefield ="databasefield id".
When I tried with dd.selectedvalue it gives the first item id as like as same instead of what i've selected.
i cant use dd.items[i].value because i dont know the value of "i" i may select any thing..
Thank You
Rishihar S
WinCrs
|
|
|
|
|
there must be logical error in your code then....
the way you are trying to get selectedvalue is accurate...
umerumerumer
|
|
|
|
|
Hi:
Please use Dropdownlist.Clearselection() function if u loaded ur Dropdownlist with in IsPostback.
if u loaded out side of ispostback,please try to load with in Ispostback
ex:
if(! ispostback)
{
load ur dropdown here.
}
suresh
|
|
|
|
|
As suresh said, you must be binding your dropdownlist on each page load
Every time you bind your dropdownlist, it select the first item
Just bind you control iside a not ispostback condition
Alexei Rodriguez
|
|
|
|
|
I have a table which name is login & contain 3 columns. Such as: Name,password & code. In code column contains the table name. eg: table1,table2 so on.
And I also create the table of same name as mentioned in code column which is mentioned above.
My requirement is that I insert the value in table1 or table2. but in insert query I want to put the table name from the code column.
I use following two methods but it didn’t work::
string code = " select code from login where user_name= name";
da = new SqlDataAdapter(code, con);
string s = da.Fill(ds, "c");
string time = " insert into '"+s+"' values (getdate(),getdate())";
da = new SqlDataAdapter(time, con);
da.Fill(ds, "b");
------------OR-------------
string code = " select code from login where user_name = name'";
string time = " insert into '"+s+"' values (getdate(),getdate())";
da = new SqlDataAdapter(time, con);
da.Fill(ds, "b");
thanks in advance
|
|
|
|
|
tell me how can i use Sql server User Define Function in Asp.net .
i am using this by Stored Procedure but it create Problem , can anyne tell me hw to do this.
|
|
|
|
|
hmm.... it seems to me that you're a bit lost. We can't really give you any help based on this vague post that you can't get from MSDN. What does 'it create problem' mean ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|