|
Hello Brij,
I am new to the asp.net is thr any option to send the attachment. then i can send the complete solution. plz help me about this.
|
|
|
|
|
There is no need to post the entire solution.Just post the relevant code (aspx mark up and server side code) and explain the code little bit.It'll suffice.Also tell whether you are using Ajax or not?
|
|
|
|
|
I am using ajax.
I have created one control PrinterInfoControl.ascx In this i have create on panel in that panel. i have added a table. in that i have added a imagebutton.
sry brij i am not able to explain because this is a big code. can u tel me ur mail id i will send the code. plzzzzzz
|
|
|
|
|
brij_mishra2003@yahoo.co.in
|
|
|
|
|
Hello Brij
I have a mail to u plz check
|
|
|
|
|
actually in my project i am getting the problem. thats why i created the same and i sent to u. in that application u have to see only PrinterInfoControl.ascx ,PrinterLineControl.ascx,LineDetailsView.aspx
|
|
|
|
|
Hai all
I am using Hierarchical grid , i need to get bands[1] row value. How to get it?
|
|
|
|
|
I Want Picture Box in Asp.net not Image Control
|
|
|
|
|
Can you elaborate your requirement?
Please don't place your question at multiple forums, you have already asked this question in the Quick Answers section.
Regards,
Prakash Kalakoti
|
|
|
|
|
There is no PictureBox control in ASP.NET.You can asp image control or use normal HTML image control.
There are some third party Picturebox control, you can use them... might be you have to pay for them.
|
|
|
|
|
Hi,
There is a vast data controls are available in .net2.0, use such a kind of available controls to populate your image ...but there is no exact picture box control but related controls are image control, image button control, html control , so u can use this control also.... Picture box control available in VB6.0.
regards,
kannak,,,,
kannak
|
|
|
|
|
Hi
how to resize image in asp.net.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
|
1- If you want to resize the image just for display then you can set the width and height of the image as required.
2- If you want it be interactive, so that client can resize the image then I will prefer some jquery plugin to do this task. Check this out http://plugins.jquery.com/taxonomy/term/2532[^]
3- If you want to do this at server side then using the GDI+ you can resize the image. Check this Resizing a Photographic image with GDI+ for .NET[^]
Regards,
Prakash Kalakoti
|
|
|
|
|
I need to resize and want to save in disc so pixel quality will be maintained.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Then explore the 3rd option, you will find some example in the article which scales the image by fixed size of percentage.
Regards,
Prakash Kalakoti
|
|
|
|
|
It's resizing image but no quality in image like in 800*600 dimension.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
This Function Can help you!
Public Function ResizePicture(ByVal sourceImage As Bitmap, ByVal newSize As Size) As Bitmap
Dim Result_image As New Bitmap(sourceImage, newSize.Width, newSize.Height)
Dim Gr As Graphics
Gr = Graphics.FromImage(Result_image)
Gr.DrawImage(Result_image, 0, 0, newSize.Width, newSize.Height)
Gr.Save()
Return Result_image
End Function
Then you can save the output of this Function By using ResizePicture(MyBitmap, New Size(100, 100)).Save(MapPath("/") & "/Images/MyImage.png", Imaging.ImageFormat.Png)
Note: These codes are in VB.NET Language, but you can simply convert it to C# or any .NET language
Regards.
Mehdi Ghiasi
|
|
|
|
|
just 2 questions:
1) is there such a thing as a default httphandler? for example, the handler that is invoked when the extension of a requested resource is not assigned to a handler within the .config file?
2) a related question is a handler that is invoked for any resourcetype requested?
grache'
----------------------------------------------------------
Lorem ipsum dolor sit amet.
|
|
|
|
|
Yes there is. DefaultHttpHandler renders every request when no custom HttpHandler is configured.
See
http://msdn.microsoft.com/en-us/library/system.web.defaulthttphandler.aspx
Yes for every request to a resource too there is an httphandler. WebResource.axd is configured in Web.Config which requests resource embedded in your dll.
|
|
|
|
|
Hi friends,
I am a student and new to active directories.
I have installed windows server 2003 on my machine and even visual studio 2005 on it.
I am trying to login using active directories and it says "<b>Unable to establish secure connection with the server</b>" .
<b>My full computer name: sdmcet.sdmcet.cse
Domain: sdmcet.cse.</b>
I have included my web.config file below. Can anyone please let me know where i have gone wrong or whether i need to make any changes on windows server 2003 settings.
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings>
<add name="ADConnectionString" connectionString="<b>LDAP://sdmcet.sdmcet.cse/CN=Project_Users,DC=sdmcet,DC=sdmcet,DC=cse</b>"/>
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Forms">
<forms name=".ADAuthCookie" timeout="10"/>
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
<membership defaultProvider="MyADMembershipProvider">
<providers>
<add
name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConnectionString"
connectionUsername=<b>"sdmcet\administrator"
connectionPassword="password"</b>/>
</providers>
</membership>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
The text in bold faces is what i have changed.
Pls help ..
|
|
|
|
|
“Unable to establish secure connection with the server” seems to be due to Authorization failure.
You are using forms authentication, and account on which the application is running is not having access to the Active Directory. Try doing one of the two things.
1- Change the authentication mode to Windows and set the < Identity Impersonate="true" > in the configuration file.
2- If its not possible to change the authentication mode then try to impersonate a AD user dynamically before establishing the connection to ADSI and undo the impersonation once you are done.
Regards,
Prakash Kalakoti
modified on Thursday, March 25, 2010 12:14 AM
|
|
|
|
|
Are there any other information that you can gather, other than the "Unable to establish secure connection with the server."? Can you check at runtime if you code is actually connecting to sdmcet.sdmcet.cse and negotiating with authentication? This error can be due to the fact that sdmcet.sdmcet.cse cannot be found. You may opt to use IP address instead of sdmcet.sdmcet.cse. Also, "secure" connection usually means your URI should include S (LDAPS://) instead of plain LDAP://.
Remember, your work is not yours alone. Somewhere, there are some codes written by others amongst us that depends on your work. By failing to see that you are part of their ecosystem, you are bound to break their code. *http://dotnetrandz.blogspot.com*
|
|
|
|
|
I have a table row tag with three td blocks, and below a tr with two td blocks.
On the second tr, I want the td blocks to run all the way across the screen, but it stops level with the end of the end of the second td block in the preceeding tr.
?
Am I being dim?
------------------------------------
<b>I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel.</b> Dalek Dave
|
|
|
|
|
<table>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td colspan="2"></td>
</tr>
</table>
I know the language. I've read a book. - _Madmatt
|
|
|
|