|
But it prints the whole page, i want to print on MSChart chart area
|
|
|
|
|
hello all
i want to scan the document using twain_32.dll in asp.net with vb.net.
i have that .dll.but i dont no how to import that .dll in my project.
plzzzzzzzz help me it's urgent.
Thanks.
|
|
|
|
|
This is very rude. It may be urgent to you but not to anyone else. Everyone volunteers their time and can choose to answer, or not.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
To urgent to warrant a cursory google search?
Found this at the top of the list .NET TWAIN image scanner[^]. It should prove a good start point.
Otherwise there are plenty more examples a short google away.
|
|
|
|
|
Hi Gurus
I am new to web programming and I started working with Asp.net 3.5 vwd express edition with ajax tool kit.For about a week now I screened most of articles on use of javascript in asp.net and following is suggested.
1. Use external script file and refer in masterpage and call from content pages by registerclientsciptblock
On Master page it refered as follows"
<script>
2.Place Java script functions in content place holders and refer them by adding attributes to controls. I tried using following function refering it in the clientvalidationfunction
<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="Enter Loan Account Name" ClientValidationFunction="chkloanac" OnServerValidate="Chk" ControlToValidate"TxtLoanSource" </asp:CustomValidator>
<script type="text/jscript">
function chkloanac(source, arguments)
{
var Bal = document.getElementById("<%=TxtBalDebt.ClientID%>");
var acname = document.getElementById("<%=TxtLoanSource.ClientID%>");
if (Bal.value > 0 && (acname.value == 'NA' || acname.value == ''))
arguments.IsValid = true;
else
arguments.IsValid = false;
}
3.Build script strings and make call from code behind.example
Dim sb As New System.Text.StringBuilder()
sb.Append("")
sb.Append("alert('Save Successful');")
sb.Append("")
ScriptManager.RegisterStartupScript(Me, Me.GetType(), "Alert", sb.ToString(), False)
All my pages are using ajax controls or extenders and i observe the folllowing.
When I use method-1 and try register the code block, the image placed in a panel for controlling collapsable panel do not load.
Method-2 is not working at all I created a function to refer in custom validation control which would not fire
Only mehod-3 is working which again has limitation for using long functions
I request an expert guidence on above subject with known issues and limitations if any.Preferably wih a working example on method-1 or method-2
Thanks in advance
Kris
|
|
|
|
|
In method 1 it is unnecessary to use RegisterClientScript in the content pages since the script is already included as part of the master page. Whatever source told you to do it that way was utterly daft.
If the script has been proper;y included then your functions should be available for use.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thanks Mark let me try calling function directly from script file referenced in masterpage.
kris
|
|
|
|
|
Hi,
I noticed since a couple of days that after a AsyncPostBack, the UpdateProgress doesn't disappear. It seems to happen only on IE, in Firefox it closes correctly after the AsyncPostBack.
The updatepanel I am using used to work perfectly till recently, the website is still under development and I don't have a clue what is causing this problem.
Anyone came across a similar problem? Or does anyone can help me finding the problem?.
Thanks
<asp:UpdateProgress ID="Actualizando" runat="server" DynamicLayout="true" DisplayAfter="0">
<ProgressTemplate>
<div id="ajaxLoader">
<div id="boxLoader">
<div id="contentLoader">Cargando...</div>
</div>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
|
|
|
|
|
Nevermind, I found out that I had tag that wasn't closed properly.
Instead of <b>text<b> it should be <b>text</b>
Is there a tool that can be used to find out this kind of errors?
|
|
|
|
|
|
You could either use the product you linked to, or you could look at soemthing similar
in silverlight[^].
|
|
|
|
|
Do you have any idea about how to create same interface ( as per the mentioned link )using adobe AIR?
Any tutorial or video would help !!!
Thanks again!!!
|
|
|
|
|
Do you want to know how to create the interface in Adobe Air, or do you want to create something similar to the interface you saw, or do you simply want to add flash to a site?
|
|
|
|
|
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"
|
|
|
|