|
I would like to know how to create interface similar to what i saw..
|
|
|
|
|
|
|
hi. i want to add target attribut in image button. i dont want to use link button then use image control in that .
|
|
|
|
|
Do you mean something like this:
ImageButton ib = (ImageButton)FindControl("mybutton");
ib.Attributes.Add("target", "_blank");
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
|
|
|
|
|
1- Wrap you image inside a hyperlink and set the target of the hyperlink.
2- Handle the click event of the image and using javascript open a new window.
Regards,
Prakash Kalakoti
|
|
|
|
|
There are URL arguments to pass to web page some text params but is there a way to pass to web site some chunks of binary data about 50-100K in size?
Is there some API that allow to pass such data from custom client not IE browser.
E.g. there is custom application that send to server binary data and recieves some results as binary data also.
Чесноков
|
|
|
|
|
Its called a web service
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
You can't have 100k worth of data in a URL. There are limits to how long a URL can be. I don't think that all browsers have standardized on that number, but I think anything over 1000 characters is probably going to cause issues.
You can save the binary information in a file and do a file upload. Then the browser will handle conversions for you. ASP.Net has large chunks of binary data that it passes back and forth called ViewState that uses encryption and base64 encoding. In C# you can certainly write a program that uses WebRequest objects to build a request from scratch.
In general though it doesn't sound like you need the HTTP protocol. It would probably add a lot of overhead.
|
|
|
|
|
|
The easiest way would be to convert the binary to hex represented in ascii, then post the ascii text. On the server side you could convert the ascii back to binary. This adds a lot of overhead, and bloats the data, but if your not too concerned about it, its a easy way to go.
|
|
|
|
|
hi all, how to save path of images in web.config..
i uploded images saved the filename of images in db. and images to folder.. im trying to bind the images in image control in repeater..
help me...
Image1.ImageUrl="~test/cric.gif"
|
|
|
|
|
add slash(/) between Tild(~) and folder name
it should be like..
Image1.ImageUrl="~/test/cric.gif"
|
|
|
|
|
So what does this have to do with the web.config??
Image1.ImageUrl="~/test/cric.gif"
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Though putting a forward slash between the tilda and test would make the url syntax correct...
Image1.ImageUrl="~/test/cric.gif"
how does this total path of Image is related to retrieval of this image from database? and also Web.config?
|
|
|
|
|
The same responses were given over 30 minutes before. How is your response relevant and useful?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
It might had happened that i opened it for reply... went for some work in between and came back an posted it? Is this fine with you? Hope i won't be punished for that!
|
|
|
|
|
Hello friends
I have created an activex dll object and it works fine when registered manually. I want that activex to install in client browser, if already not. I got from searching that, that can be achieved by creating CAB file.
I have created the CAB file and set it the codebase property of the activex object
It asks for downloading, but not getting installed on client browser.
Any one please lead me to the correct way of building the CAB file or where ever the mistake is. Please ...
Shivanandan C V
|
|
|
|
|
hey guys,
I'm not good with Ajax, I am trying to connect to the
database using ajax through asp.net. does anyone know
how I can do this? please help
Thanks guys
|
|
|
|
|
MorgSim wrote: I'm not good with Ajax, I am trying to connect to the
database using ajax through asp.net.
What do you mean by connecting DB through Ajax.Ajax is way to postback the page partially.So when you are at server side, you can can connect the DB as normally you do.
Do you mean something else?
Cheers!!
Brij
|
|
|
|
|
ok thanks, for instance, I want a user to enter a userid and upon doing that
I want to connect to the database in the background to check if the id exist, if so,
I will then insert the username for the user.
The whole problem is connecting to the database as the user types which is why I think
ajax would do the trick here even though am not sure how to implement this.
Would you have any help please?
Thanks,
|
|
|
|
|
For that you ealier verion of Ajax ie XMLHTTPRequest objects.You can get a lot on this in Codeproject itself.
Have a look to a sample Click Here
You can also use callback.
There is a control provided in Ajaxtookit.Its very simple to use and might suffice your requirement.
AutoComplete[^]
Cheers!!
Brij
|
|
|
|
|
Thanks alot, I will try it hope it works!
|
|
|
|
|
Best would be to use XMLHttpRequest(old times AJAX! ) in order to implement such kind of feature...
On keypress, fire a XHR and check on server about the typed in data(connecting to database) and get back response accordingly.
if you need to know about it, just google it, you will get number of articles on it!
|
|
|
|
|
I am not sure why this post was voted "1".
I think this is the good answer, hence I upvoted it with my 5.
Cheers !
Abhijit
Codeproject MVP
|
|
|
|