|
Hi
Try this
document.location.href = "http://www.google.com";
Regards
Anil Pal
|
|
|
|
|
Hi all,
I want to know how to drag an item in the list box and drop into the text box (which already have text inside). If drag and drop is not available in asp.net, how to put a listbox item to the text box. Please answer my questions. Thanks in advance!
|
|
|
|
|
Hi,
First of all drag and drop facility is not available in asp.net.
Now u want to drag listbox itme to textbox, which also have some text already.
Now here i would like to know wharts yr wexact requirement. Can u use another listbox in place of textbox? If yes, then i can provide u a easy solution for that.
If no, then how u r going to display the text in textbox (Including the mulitple listbox items)?
feel free to ask
Regards
Anil Pal
|
|
|
|
|
Hi,
Thanks for your answer. What I really wanna do is to put the list box item to the textbox (which already have text there). I am testing with alternative way now. I try to put list box item to text box when i click on a button. But I still cannot put the item between other text. If you have some more idea, pls drop me a line.
|
|
|
|
|
You can do drag and drop, but it's lots of javascript. There are examples on the web.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Yeah, I have some examples of javascript for drag and drop. But I want to use javascript if there's no other options coz I am very new to that.
|
|
|
|
|
Hi,
I hav a better alternate:
you can do it by keeping a button near your listbox and poitning towards your textbox. And after selecting the desired item from listbox click on the button to move it to textbox. And at the same time remove that item from your listbox. So it will give the feeling as if it is oved from listbox to textbox.
|
|
|
|
|
Hi,
Thanks for your answer. I also have same idea with you and I am testing it now. But there's another problem. I can put the list box item to text box but if the text are already existed in the text box, the previous text will be disappeared. I want to insert between other text. Any other idea?
|
|
|
|
|
i have a server with configured active directories, and have a client system. so, now i am trying to give privilages in active directories to that client system using asp.net
any one help me, that how to do this???
|
|
|
|
|
Hi,
I am sorry, Can u pls give more details on your requirment?
When u r saying that, U want to give privilaged to client system using asp.net - then what does it mean?
Please explain.
Regards
Anil Pal
|
|
|
|
|
Anil Pal,
Thanks for your reply.
Basically my problem is I want to create an application using single sign-on (SSO). I think for this we need to manage active directories (by creating users, groups & organizational units) to achieve this. Now, I am in a need of code (ASP.Net 2.0) to create this application (SSO).
I succeeded in creating users, groups, organizational units using ASP.Net 2.0 by managing active directory.
Now, I am in a need of ASP.Net 2.0 code to implement Group Policy Objects to organizational units.
I am using window 2003 server.
If not possible to send the required code can u please send a document related to create group policy objects on organizational units such that we can implement those policies in various clients (Windows XP)
If you need more details than this please contact me on my mail id (santosh.kanna@yahoo.co.in) or give reply.
Thanks,
Santosh Kanna
|
|
|
|
|
ksk kanna wrote: now i am trying to give privilages in active directories to that client system using asp.net
what does it mean ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Abhijit,
Thanks for your reply.
Basically my problem is I want to create an application using single sign-on (SSO). I think for this we need to manage active directories (by creating users, groups & organizational units) to achieve this. Now, I am in a need of code (ASP.Net 2.0) to create this application (SSO).
I succeeded in creating users, groups, organizational units using ASP.Net 2.0 by managing active directory.
Now, I am in a need of ASP.Net 2.0 code to implement Group Policy Objects to organizational units.
I am using window 2003 server.
If not possible to send the required code can u please send a document related to create group policy objects on organizational units such that we can implement those policies in various clients (Windows XP)
If you need more details than this please contact me on my mail id (santosh.kanna@yahoo.co.in) or give reply.
Thanks,
Santosh Kanna
|
|
|
|
|
hi friends
how to send sms to mobile using asp.net and vb.net
help me
Thanks and Regards
Azad Yadav
|
|
|
|
|
azad yadav wrote: how to send sms to mobile using asp.net and vb.net
Check Here
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
http://www.codeproject.com/KB/aspnet/SendingSMS.aspx
|
|
|
|
|
You cannot send sms unless you have account with the content provider.
buy that account they will give u a api link through which u hav to pass ur sms to them then they will forward it to the destination no.
|
|
|
|
|
i need image viewer which is used in website. which shows the scan documents and pictures. the functionality of that image viewer are that it can zoom, rotate, flip, edit text.
plz plz plz plz plz help i use it in my final project of university which is not available for only for desktop. so any one know about that plzzzzzzzzz share with me
|
|
|
|
|
<table><tr><td align=center><table border=0 cellpadding=0 cellspacing=0><tr><td><Img Width=100 height=100 src=Image.aspx?id=" & ds1.Tables(0).Rows(i)("imageId") & "></Img></td></tr></table></td></tr><tr><td align=center><a href=productdetailview.aspx?typeid=1&Productid=" & ds1.Tables(0).Rows(i)("productid") & ">" & ds1.Tables(0).Rows(i)("productname") & "</a></td></tr><tr><td align=center><font color=#ff6900>MRP Rs:-<strike>" & ds1.Tables(0).Rows(i)("price") & "</strike><font></td></tr><tr><td align=center><font color=green>Our Price Rs:-" & ds1.Tables(0).Rows(i)("ourprice") & "<font></td></tr></table>
|
|
|
|
|
Could you be so kind to format your code a bit? It is hard to read. And please give more details about what you want to achieve.
|
|
|
|
|
i need to pass two values using querystring.
Dim myDataAdapter1 As SqlDataAdapter = New SqlDataAdapter("SELECT i.imageid,i.IMAGE,p.productname,p.Price,p.productid,p.ourprice FROM Product p,IMAGE i WHERE p.Typeid='1' AND i.Productid=p.Productid and p.productid in(170)", myConnection)
Dim ds1 As DataSet
ds1 = New DataSet
myDataAdapter1.Fill(ds1, "image")
Dim str As String
str = "<table><tr><td align=center><table border=0 cellpadding=0 cellspacing=0><tr><td><Img Width=100 height=100 src=Image.aspx?id=" & ds1.Tables(0).Rows(i)("imageId") & "></Img></td></tr></table></td></tr><tr><td align=center>
<a href=productdetailview.aspx?typeid=1&Productid=" & ds1.Tables(0).Rows(i)("productid") & "
>
" & ds1.Tables(0).Rows(i)("productname") & "</a></td></tr><tr><td align=center><font color=#ff6900>MRP Rs:-<strike>" & ds1.Tables(0).Rows(i)("price") & "</strike><font></td></tr><tr><td align=center><font color=green>Our Price Rs:-" & ds1.Tables(0).Rows(i)("ourprice") & "<font></td></tr></table>"
Response.Write(str & "<br>")
This is a dynamic creating table on vb.net...which i was mentioned on bold letters.
that is called hyperlink tag which i am going to pass the value using querystring.....it correct way to mention querystring like this......
|
|
|
|
|
I presume this is a big string you are concatenating. If this is not the case then you need to provide more context with which we can help you.
You have not HTML encoded the output of the database. This leaves you vulnerable to attack. If someone manages to trick your applicaiton into storing a script in your database it will be rendered to the page and the browser will just run it.
|
|
|
|
|
Is Business Logic Layer should have all functions as static and same in Data Access Layer.
Because I have seen Imam Spanjar's Framework and also lohtka's framework they use static.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
I don't think there is right or wrong. Since the logic should be stateless using static functions would be the right choice for the business logic. Using non-static functions would be good if you think about using abstract classes and inheritance within your business logic. For myself I use the strategy pattern really often within my business logic, so i implemented non-static functions/methods.
For the data layer I wouldn't use static functions, since the data access has to handle the connection and all transactions within. So for me the Data Access Layer is not stateless which implies using non-static functions/methods.
But it all depends on your personal favor (and the requirements of course).
Hope this helps you a bit.
Regards
Sebastian
|
|
|
|
|
SeMartens wrote: So for me the Data Access Layer is not stateless which implies using non-static functions/methods.
But DataAccessBlock provided by microsoft contains all methods as static....??
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|