|
plz post the exact problem that you are having to get connected to the oracle database.
regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
hi
using system.data.odbc;
thn create a ODBC connection string
and cofigure ODBC and DNS through Control Panel.
deepak
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
hi guys
I want to create folder with help of .NET. When user clicks on new folder from menu then new folder will be created on particular path.
Please help if any one knows..........
Thanks in advance
Regards,
DJ Rock
|
|
|
|
|
hi
hope tht'll helps u
<br />
<br />
string myfolder = ("d:\\abc" );<br />
<br />
System.IO.Directory.CreateDirectory(myfolder);<br />
<br />
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
hey deepak thanks a lot man
Regards,
DJ Rock
|
|
|
|
|
Hi,
i have the four tier application,the first tier in the presentatin ,second tier is the business entity ,third tire in the data access layer and the on the fourth tier the database.
i wnt to implement the business Entity through collections,the data acces layer fill the business entity and the business entity fill the presentation layer.tell me how can i code the business entity ??
|
|
|
|
|
i want to get the key press ascii value using java script..
|
|
|
|
|
hi
u can modified following cod as per ur requirment,hope tht'll help u
<br />
<script type="text/javascript"><br />
function KeyCheck(myField, e)<br />
{<br />
var key;<br />
if (window.event)<br />
key = window.event.keyCode;<br />
else if(e)<br />
key = e.which;<br />
else <br />
return true;<br />
}<br />
</script><br />
smile a lot its costs nothing
deepak
|
|
|
|
|
hi,
I am doing an application which displays images dynamically.i have resized the images to fit to the screen.
Now when i display the images, the images seems to be pixelized.
There are more dots around the border of the image.
How can i reduce this pixelization?
Any ideas.
Thanks in advance
Regards
Anuradha
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
hi
u cant reduce tht.but u can use .jpg,.jpeg,.gif,.png formats as well as the picture size is 900*900 pixel.tht'll b fix into ur screen
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hi,
Thanks for your response.But i want to be of size 150x150.but the image appearance is very bad.
Anyway thanks for ur reply
Exelio
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Check this code
<br />
public void ResizeAndSave(int MaxWidth, int MaxHeight, string UrlAndFileName, string UrlAndnewFileName)<br />
{<br />
Bitmap OriginalBmp = (System.Drawing.Bitmap)Image.FromFile(UrlAndFileName).Clone();<br />
Size ResizedDimensions = GetDimentions(MaxWidth, MaxHeight, ref OriginalBmp);<br />
Bitmap NewBmp = new Bitmap(OriginalBmp, ResizedDimensions);<br />
NewBmp.Save(UrlAndnewFileName, System.Drawing.Imaging.ImageFormat.Jpeg);<br />
}<br />
<br />
<br />
private static Size GetDimentions(int MaxWidth, int MaxHeight, ref Bitmap Bmp)<br />
{<br />
int Width;<br />
int Height;<br />
float Multiplier;<br />
<br />
Height = Bmp.Height;<br />
Width = Bmp.Width;<br />
<br />
if (Height <= MaxHeight && Width <= MaxWidth)<br />
return new Size(Width, Height);<br />
<br />
Multiplier = (float)((float)MaxWidth / (float)Width);<br />
if ((Height * Multiplier) <= MaxHeight)<br />
{<br />
Height = (int)(Height * Multiplier);<br />
return new Size(MaxWidth, Height);<br />
}<br />
<br />
Multiplier = (float)MaxHeight / (float)Height;<br />
Width = (int)(Width * Multiplier);<br />
return new Size(Width, MaxHeight);<br />
}<br />
You must to invoice the resizeAndSave Function. the parameters are four
Here you have a parameters examples
MaxWidth : Final width size (pix) = 200
MaxHeight : Final height size (pix) = 200
UrlAndFileName : The original image Url = c:\folder1\image1.jpg
UrlAndnewFileName : The final path and file name, to save the NEW resized image = c:\newimage.jpg
PD: Only works with jpg images
Check tue quality picture and tell me if it you are looking for.
keep Learning and you never will be out of date...
|
|
|
|
|
Hi...
I am try to do moveitems between two listbox to anothher using javascript. On page load these listbox getitems by databind to a datasource. But I could not reach listbox from javascript by using ids
document.getElementById("listbox1")
What can I do?
karanba
|
|
|
|
|
I think you are calling javascript before all the controls getting loaded ....
where are you calling that javascript function can you elaborate ?
|
|
|
|
|
no. page is totally load when I made call
karanba
|
|
|
|
|
Hi Dear,
Fiest of all please calrify if you are using master page or any user control.
I this is the case please try to find the exact id of the control from view source.
You have not mentioned in which event you are handling this code. Please provide some clarification regarding this.
|
|
|
|
|
default.master
+ default.aspx
+ asp:listbox1
+ asp:listbox2
I use master page. The control is inside default.aspx and the id is listbox1 and listbox2. I use asp.net 2.0 c#. I both try to make enableviewstate true and false.
karanba
|
|
|
|
|
Hi my dears,
I`ve written a Web UserControl which has a timer with interval and elapsed event. and I want to raise an event in Timer elapsed method. then I defined a delegate and an event in my Web UserControl . Now I should register this event to my default.aspx page and catch the raised event from my web userControl in a method in my default.aspx page.
But I dont know how to register event in aspx page! the code I used is :
<br />
public delegate void myDelegate(string s);<br />
public static myDelegate myEvevnt;<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
System.Timers.Timer myTimer = new System.Timers.Timer();<br />
myTimer.Elapsed += new System.Timers.ElapsedEventHandler(myTimer_Elapsed);<br />
myTimer.Interval = 3000;<br />
myTimer.Enabled = true;<br />
}<br />
protected static void myTimer_Elapsed(object source, ElapsedEventArgs e)<br />
{<br />
myEvevnt("hhh");<br />
}<br />
public partial class _Default : System.Web.UI.Page <br />
{<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
_Default.Event += new reminder.myDelegate (RecieveEvent);
}<br />
-- modified at 3:17 Wednesday 8th November, 2006
|
|
|
|
|
You may find THIS[^] useful.
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
hi there...
I used to get current date like this format...
DateToday = DateTime.Now.Month+"/"+DateTime.Now.Day+"/"+DateTime.Now.Year;
If i want to increase my date by three month means, what should i do through coding...
Eg: Today Date is 7/11/06 and i want to change that date as : 7/2/06
Advance Thks
Sam.M
|
|
|
|
|
Hi,
Use DateTime calss and follow code.
DateTime dt= DateTime.Now;
dt=dt.AddMonths(3);
this will work..
D.kiran Kumar Reddy
|
|
|
|
|
Hi,
This ca be achieved by AddMonths method...see below
<br />
Dim dt As DateTime = DateTime.Now<br />
Response.Write(dt.AddMonths(3))<br />
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
Hi
I'm using ChangePassword control(asp2.0) in which I've a literal control with viewstate disabled but literal control retains its text during postback. Even tried to use following code to clear text but with no result.
Protected Sub ChngPassword_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles ChngPassword.Load
Dim ltr As Literal
ltr = CType(Me.ChngPassword.FindControl("FailureText"), Literal)
If Not ltr Is Nothing Then
ltr.Text = ""
End If
End Sub
Any idea what eles could be done.
Thanks
Don't Quit
|
|
|
|
|
Hi Friends,
I have two modules in my website. One is user end and other is the admin section. I want to implement form based authentication for both.
In the web.config, I set the authentication to "Forms" and mentioned the loginURL i.e. login.aspx which is at root. But when I traverse the admin section pages, it still redirects me to the login of the user end.
I want it to redirect to the login page of the administrator
(adminLogin.aspx)
Can i add a new web.config in admin part??????
If you know the answer ... please reply.
Thanks,
Sushant Duggal.
|
|
|
|
|
Yes you can have a separate web.config file for your admin part provided your admin section is in a separate folder.
Best Regards,
Apurva Kaushal
|
|
|
|