|
I want code on how to import Mail Contacts i.e, yahoo,gmail etc from Asp.net
I got some sripts in php but i didn't get any classes in asp.net.
If any body knows help me.
Regards,
Niranjan
|
|
|
|
|
|
Hi Michael,
I didn't get any source. Using Gmail Api is only to retrieve gmail contacts, but what about other mails and this Gmail Api also not working for me.
If you have any sample please send me........
Thank you
Regards,
Niranjan
|
|
|
|
|
hi friends
In my project i user phonenumber . i entered 10digit number.it show the errror"Arithmetic operation resulted in an overflow"
i get phone number like this txtphone.Text
can u help me
regards
saravanan
|
|
|
|
|
what code you write for Phone number?
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
dim str as Integer
str=txtphone.text
|
|
|
|
|
Holds signed 32-bit (4-byte) integers ranging in value from -2,147,483,648 through 2,147,483,647.
My guess is the phone number is greater than this value. Use a long instead of int
only two letters away from being an asset
|
|
|
|
|
try with this code.
Dim MobileNo As Int64 = 0
Try
If Not (txtMobile.Text = "") Then
MobileNo = CType(txtMobile.Text.Trim(), Int64)
End If
Catch ex As Exception
Response.Write(ex.Message)
End Try
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Took you long enough to come up with this. Couldn't find it quickly in the book?
Actually you should use string.length to test for an empty string and try_parse to cast the string. I'll leave it up to you figure out why, if you can.
only two letters away from being an asset
|
|
|
|
|
Dear All,
I am using asp.net2.0, C# ,SQl2005
I have scenario like I am making item master which compose of itemcode , itemdescription. For itemcode, I am using dropdownbox which is populated with all code and new code option when user click new code option a newtextbox becomes visible. my problem is how can I make newtextbox mandatory field whenever new option field is selected(as it may left blank in case of edit option
And making requiredfield validator not workable ).
Please guide me.
Thanks
regards
imran khan
|
|
|
|
|
function SetValidation()
{
var ctl = document.getElementById('RequiredFieldValidator1');
if (document.getElementById('chAll').checked)
ValidatorEnable(ctl, false);
else
ValidatorEnable(ctl, true);
}
Note : Yes, You can use this function in the html source javascript section.
You have to use this function on any dropdownlist or checkbox onclick event.
This function will make requiredfield validator control enable/disable by javascript.
Hope you Enjoy it.
Regards,
Abhi
|
|
|
|
|
I add a asp Checkbox in the Datagrid ItemTemplate and HTML checkbox in Header Template.In the datagrid am loading the images and the path from the server folder.am loading all the images in the page load event.page load event as follows
if (!IsPostBack)
{
DataSet ds = new DataSet();
DataTable dt = new DataTable("Photos");
dt.Columns.Add("Photos", Type.GetType("System.String"));
foreach (string Files in Directory.GetFiles(System.Web.HttpContext.Current.Server.MapPath("Photos"), "*.jpg"))
{
dt.Rows.Add(Files);
}
ds.Tables.Add(dt);
this.dgPhotos.DataSource = ds;
this.dgPhotos.DataBind();
All the images am getting in the Datagrid.but my problem is,i want to delete the checked images.the delete code as follows
foreach (DataGridItem item in dgPhotos.Items)
{
CheckBox chkBox = (CheckBox)item.FindControl("chkItem");
if (chkBox.Checked)
{
File.Delete(item.Cells[2].Text);
}
}
while clicking the Header template checkbox it will select all the Item template checkbox[Javascript function],but the problem is i will not get the checked state in the delete event,getting checked=false.so i cannot delete the images.in the page load event if am not using !Postback and if i select one by one in the Itemtemplate checkbox i could delete,i will get checked=true but if select header check will not get.what is the problem.Is there any solution for this.
|
|
|
|
|
Can I peek into your Javascript code??
|
|
|
|
|
Javascript Code
function CheckAllDataGridCheckBoxes(aspCheckBoxID, checkVal)
{
re = new RegExp(':' + aspCheckBoxID + '$') //generated control name starts with a colon
for(i = 0; i < form1.elements.length; i++)
{
elm = document.forms[0].elements[i]
if (elm.type == 'checkbox')
{
if (elm.name=aspCheckBoxID)
{
elm.checked = checkVal;
}
}
}
}
|
|
|
|
|
check out if statement "if(elm.name=aspCheckBoxID)"
Best regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Do u want to delete checked Image on page load event or on some button click event?
Best regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
I want to Delete button Click event
|
|
|
|
|
When you select the master check box will it checking all checkboxes in grid ?
|
|
|
|
|
while clicking the Master checkbox i could select all the checkbox,but when i click the delete button i won't get the sub checkbox value.
|
|
|
|
|
What code have you written to get the checked values?
Apurva Kaushal
|
|
|
|
|
Well usually this happens when viewstate of the grid is disabled. Make sure it is enabled. Now try getting your checkboxes like this
int DgItemCount = Datagrid.Items.Count;
for ( int i=0;i<=DgItemCount-1;i++ )
{
CheckBox chk = (CheckBox)Datagrid.Items[i].Cells[YourCheckBoxCell].FindControl(YourCheckBoxName);
if ( chk.Checked )
}
|
|
|
|
|
I used this code also eventhough am getting checkbox.checked=false;please check the first mail.i think the code everything is correct some property or something i have to do.
|
|
|
|
|
How to create master page in asp.net project?
I am a beginner in asp.net. Kindly help me and give an example code using vb. Could you please give earliest (urgent).
abglorie
|
|
|
|
|
Better buy a book and start reading it and try to implement the concept.
here there are some of the links related to the Master pages.
Msdn[^]
CP[^]
4 Guys[^]
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Depends which version of framework are you using. If using 1.1 I would suggest not to bang your head too much. If 2.0+, Master is included in the Framework itself.
|
|
|
|