|
Hi,
int result = string.Compare(txtPwd.Text,strdbPwd,false);
Here false means accept case sensitive true means ignore case sensitive
Kiran Kumar.CH
(MCP)
|
|
|
|
|
Thanx alot baby
it works
(.) (.)
Have a sexy day..
|
|
|
|
|
If you are using Sql Server, you could always cast the passwords to Varbinary and compare them.
SELECT ...
FROM UserList
WHERE UserName = @UserName AND
CAST(Password AS VARBINARY(30)) = CAST(@Password AS VARBINARY(30))
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanx alot...
It works..Baby
Have a nice day
|
|
|
|
|
I have the eventlog file which logs the events related to document downloaded from sharepoint. The eventlog file will be available in the path C:\WINDOWS\system32\Logfiles\STS\............. for each file downloaded. The file will be in the binary format as follows
Name Data type Description
cbDoc uint16 Site-relative URL of the page
that is visited. For example,
lists/List_Name/allitems.aspx
httpStatus uint16 Http status code which is
the same as in IIS logs.
cbUser uint16 Name of the user making the
request. For example,
DOMAIN\User_Alias.
I want this file to be parsed to get the information of the cbuser alone.Please give me the code for the same.
Thanks in advance...
Usha
|
|
|
|
|
Hi
I want Deploy exsiting a SQL Reporting Services 2005 Report programatically using webservices. Plase help me
Ravindra
|
|
|
|
|
Hi,
I have two console applications..I want to send values from one apps to another and vise versa...also want that if one apps sends the value to another apps then it will trigger some event to know that value has arrived..
trish
|
|
|
|
|
Investigate the term "Remoting"
|
|
|
|
|
Hi! i want to calculate scaling factor for a given height & width to generate an image.
Can any one help me in this regards???
Thanks & Regards,
SAMir Nigam,
Software Developer,
STPL, Lucknow, India.
|
|
|
|
|
hi all
I developing app use Treeview on VS 2005
I add Node have checkbox on treeview
I want when client check to checkbox will postback to server but in this tree view when check dont post back if postback have to click to adjacent link
How do i do when check on checkbox will postback to server
|
|
|
|
|
Hi,
When you are adding a checkbox to a treeview control that checkbox's autopostback property must be set as true.
Kiran Kumar.CH
(MCP)
|
|
|
|
|
thanks but i add attribute of treeview
TreeNode node = new TreeNode();
node.Text = "demo"
node.Value = "demo"
node.ShowCheckBox = true;
TreeView.Nodes.Add(node);
"node.ShowCheckBox" dont checkbox to tree view
I add event TreeView_TreeNodeCheckChanged but it only run when i click to link!
I want click to checkbox postback to server
|
|
|
|
|
|
hi,
I have managed deploying my database and I've created .msi but it's on my computer. I've tryed to copy it on a different server using copy and paste but it cannot do it. how could I go about this one. Please help
|
|
|
|
|
Hi,
Please let me know how you are accessing the other sever?
If it is thru RemoteDesktop connection,first you need to upload the .msi or setup file to that machine via FTP.Then on single click of .msi the application will be installed.
Kiran Kumar.CH
(MCP)
|
|
|
|
|
Yes I'm using RemoteDesktop connection, I have setup file on my machine but via FTP I'm not so sure. how could I be sure that I've loaded it with FTP?
|
|
|
|
|
FTP is a file transfer protocol which is a utility to send the files between two machines of different locations.First you need to open your local FTP site and copy your file and open the same FTP site in remote machine and use it.To connect ftp i think you need VPN.
The easy way is just zip the file and mail it.open your mail in remotemachine and download the same and use it if the size is not so big.
Kiran Kumar.CH
(MCP)
|
|
|
|
|
I've Zipped the file and tried to send it but I made a mistake wrote a wrong server address and now I want to rename. When I try to zip I get the outlook express with the zip file attached to it. What could I do. Do I really have to delete the whole folder?
Thanks
|
|
|
|
|
1)
>Right click on .MSI file>winzip>add to <filename>.zip
>After creating zip file,open yahoomail and login with your id
>compose the mail with the zip file as attachment and send it to yourself.
>now go to remote machine and open your yahoomail and open that mail just now sent by you
>now click on attachment and save the zip file to mycomputer.
Another way to send files is:-
2)Do you have yahoo messenger in two machines,if you have then you login in both messengers with different id's,now send file<instant message=""> from Yahoo id1(local) to YahooId2(Remote).
Kiran Kumar.CH
(MCP)
|
|
|
|
|
Thanks Kumar,
This worked for me actually I had to share The file so that I Could read it on a different server. Hope you anderstand what I mean. But you have been of so much help thank you very much.
|
|
|
|
|
hi,
I'm developing an application in asp.net 2.0 .
Please anyone can tell me how to achieve functionality of image cropping
so that big images will be cropped to a given dimension (using c#).
Thank you.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
hi yogita,
try this:
Imports System.Drawing.Image
Imports System.Drawing
Imports System.IO
Imports System.Text
Public Structure CropType
Public Height As String
Public Width As String
End Structure
Public Function Crop(ByVal Height As String, ByVal Width As String)
_pathOutputImage = getRandomName()
Dim bmpImage As Bitmap
Dim recCrop As Rectangle
Dim bmpCrop As Bitmap
Dim gphCrop As Graphics
Dim recDest As Rectangle
Try
TakeNote("Crop " & Height & " x " & Width)
bmpImage = New Bitmap(_inputImage)
recCrop = New Rectangle(0, 0, Width, Height)
bmpCrop = New Bitmap(recCrop.Width, recCrop.Height, bmpImage.PixelFormat)
gphCrop = Graphics.FromImage(bmpCrop)
recDest = New Rectangle(0, 0, Width, Height)
gphCrop.DrawImage(bmpImage, recDest, recCrop.X, recCrop.Y, recCrop.Width, _
recCrop.Height, GraphicsUnit.Pixel)
Catch er As Exception
TakeNote("CROP ERR: " & er.ToString)
Throw er
Finally
bmpCrop.Save(_pathOutputImage)
_inputImage = Image.FromFile(_pathOutputImage)
End Try
End Function
Thanks,
Rahithi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi All,
How can I do audio streaming using Asp.Net? Actually I'm looking for some tutorials or code snippet. Please help me.
Mehedi Hasan
|
|
|
|
|
hi all,
right now i am trying to work on Datagrid.
1.How do you apply specific formatting to the data inside the cells? and in my gird i am giving option to the user to modify the rows. before updating the data, just i want to check whether the user modified any data??
2.How do you check whether the row data has been changed?
3.How do you customize the column content inside the datagrid?
just we need to make the column as Item template?? or do need to write any code?
thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi Rahi,
I am not sure but this will give you some idea!
1.You can apply specific formatting to the data inside the cells using DataGrid rightclick>PropertyBuilder>Formatting>Items
2.You can add a hidden grid column say "Modified" and it's default value is "N".Now in DataGrid1_ItemDataBound you need to add clientside ontextchage eventhandler for desired cells
Serverside:-
private void DataGrid1_ItemDataBound(object sender,System.Web.UI.WebControls.DataGridItemEventArgs e)
{
//This code is for assigning userdefined Id's for rows and columns
e.Item.ID = "Row" + i++;
for(int j=0;j<7;j++)
e.Item.Cells[j].ID="Column"+j;
//Here you need to pass the rowid
e.Item.Cells[j].Attributes.Add("ontextchanged","modif('"+ e.Item.ID + " ')" );
}
JavaScript:-
function modif(RowId)
{
//This line will set the value to 'Y' when the row is modified
document.getElementById('DataGrid1_'+RowId +'_Modified').innerText="Y"
}
3.When you give the provision for editing the rows you can also validate the datagrid.
private void Page_Load(object sender, System.EventArgs e)
{
da.Fill(dataSet11,"employee");
DataGrid1.DataBind();
Button1.Attributes.Add("onclick","return validate()");
}
JavaScript:-
function validate()
{
if(document.getElementById('DataGrid1_Row0_Column1').innerText="")
alert('Please enter ');
//Like this you can set the values to the grid
document.getElementById('DataGrid1_Row0_Column1').innerText="kkkk";
alert(document.getElementById('DataGrid1_Row0_Column1').innerText);
return false;
}
Kiran Kumar.CH
(MCP)
|
|
|
|