|
I Think he wants to block IE. So that IE Users are forcet to go with Firefox or opera.
|
|
|
|
|
hi
i wanna put my login page in the client computer how come in my router network . i donot wonot give anybody internet facilty without my permission . and i donot want this thing using asp.net .if any body came in my router network the can get the access to come in the network but they cannot access internet but they get my login page .
i donot want to put password in ruter i want to control the access of internet through my srever.
|
|
|
|
|
i am providing the code below
string strcon = "Provider=SQLOLEDB;Server=(local);Database=rescue15;uid=sa;pwd=sasa;";
OleDbConnection conn = new OleDbConnection(strcon);
string q = "SELECT crime_mgmt.cr_location 'Crime Location',crime_mgmt.cr_date,offensive_issue.c_desc FROM crime_mgmt,offensive_issue";
OleDbCommand cmd = new OleDbCommand(q, conn);
conn.Open();
DataSet ds = new DataSet();
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
da.Fill(ds, "offensive_issue");
da.Fill(ds, "crime_mgmt");
|
|
|
|
|
Just wrote one line instead of two... then, you will get the all records from both tables.
mavii wrote: da.Fill(ds, "bothtable");
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
I am using Microsoft Visual Web Devloper...
I want to create login wizard for my website.
how can i create that....
plz help me....
|
|
|
|
|
|
Im a learner in ASP.Net
Im creating 1 project in class.
Her is the querry.............
I gott 2 textboxes viz. textbox1 , textbox2
im having submit button & reset button
I know how to send the data entered in textboxes to SQL database
but i dont know how can i send that data to specific email ID....
I want to send that data to email ID like.....
abcname@emailserviceprovider.com
PLease help me to solve this querry.......
plz
|
|
|
|
|
Look at the System.Net.Mail.SmtpClient[^] class.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi Ankur,
You should note that System.Net.Mail namespace (the one pmarfleet suggested) is for ASP.NET 2.0. If you are learning ASP.NET 1.1, you should use System.Web.Mail.
Another thing you should know is that if your Email Server is in LAN, you won't be able to send to the other email addresses ( e.g. GMail or Yahoo or etc.. ) You may probably know about this but I'm telling you again cuz a lot of beginners used to try to send the mail to public email address from local email server..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
I Have LAN And coud send email. Only i have to set virtual servers in Router Configuration.
Oh, and you can send email using any smtp server like google if you have correctly configure ports, name and encryption.
PS: GMail smtp server uses encryption.
PS2: SMTP Server delivers to specific email address. Even if you are using google smtp and deliver mail to yahoo
-- modified at 10:49 Saturday 17th November, 2007
|
|
|
|
|
Thanks
*sorry
by mistake it was "Who"
Actually i wanna type how
|
|
|
|
|
Hi,
I have one field in which user will fill date for that I have taken One DropDown for "MONTHs" and One TextBox for "DATE" and another TextBox for "YEAR" ("Month/dd/Year"). Now I want to validate Date filled by user..that must be current date or just within 15 days back date.
I tried to validate date through range validator(jDateValid) and for that I have written :
int curr = DateTime.Now.Day;
JDateValid.MinimumValue = Convert.ToString(curr-15);
JDateValid.MaximumValue = Convert.ToString(curr);
but when the date is 1,2,3,4.....15 range validator giving error message.
Anybody help to solve this problem....
KBM
|
|
|
|
|
Hi,
on submit button you can check like this.
if(DateTime.Parse("Date in string format MM/dd/yyyy") >= DateTime.Now.AddDays(-15) && DateTime.Parse("Date in string format MM/dd/yyyy") <= DateTime.Now)<br />
{<br />
Label2.Text = "Right";<br />
}<br />
else<br />
{<br />
Label2.Text = "Wrong";<br />
}
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
Thanks Rays,
It is working .....now i am trying to show the error message when condition is false.
Thanks again,
KBM
|
|
|
|
|
Hello every one ! How can I display node of parent node and corresponding child nodes.Suppose I have to display 'Label' nodes of all <ScreenToSupport>. There can be multiple <ScreenToSupport>
inside parent node <ScreensToSupport>.In this case I have to display Label 'rediffHomePage' and 'rediffHomePage1' of both <ScreenToSupport> node.But I have to display corresponding Label of FieldsToSupport/FieldToSupport' of <ScreenToSupport>..In this case I have to display Label 'HotJobs'and 'Game' for 'rediffHomePage'
similarly display Label 'Images' and 'Air Tickets' for rediffHomePage1'.
For example on click an Item like rediffHomePage from a repeater/dataList It should display Label like 'HotJobs' and 'Game'of FieldToSupport. How can I display Label of corresponding
FieldsToSupport/FieldToSupport on click on corresponding Label of <ScreenToSupport>..How can I do this ?
following is the structure of XML file, which is not follows an hierarchical structure of XML..
--------------------------------------------------------------------
<ScreensToSupport>
<ScreenToSupport>
<ScreenUniqueId>199d1dfd-63ca-4271-b234-77da0f579e0e</ScreenUniqueId>
<SupportItems>
<ScreenSupportItem>
...
<RefId>1</RefId>
</ScreenSupportItem>
</SupportItems>
<FieldsToSupport>
<FieldToSupport>
...
<Label>HotJobs</Label>
...
<FieldSupportItems />
</FieldToSupport>
<FieldToSupport>
...
<Label>Game</Label>
...
<FieldSupportItems />
</FieldToSupport>
</FieldsToSupport>
<Label>rediffHomePage</Label>
</ScreenToSupport>
<ScreenToSupport>
<ScreenUniqueId>e62abc49-efc7-4a5d-908f-33f2f4df070b</ScreenUniqueId>
<SupportItems>
<ScreenSupportItem>
...
<RefId>2</RefId>
</ScreenSupportItem>
</SupportItems>
<FieldsToSupport>
<FieldToSupport>
..
<Label>Images</Label>
..
<FieldSupportItems />
</FieldToSupport>
<FieldToSupport>
...
<Label>Air Tickets</Label>
...
<FieldSupportItems />
</FieldToSupport>
</FieldsToSupport>
<Label>rediffHomePage1</Label>
</ScreenToSupport>
</ScreensToSupport>
--------------------------------------------------------------------
I am not very familiar with how displaying XML contents.. I tried this way..
But stuck on that point please help me ..
I will very thankful for that..
|
|
|
|
|
Hi,
Please post this article in Xml forum.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
Hi
I want create a task and can email to users list . I mean I have a list of users and I want to email them how can I email in share point?
|
|
|
|
|
Look at the System.Net.Mail.SmtpClient class.
To send to all the users just use a loop.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Do you know how can i get list of users that are in sharepoint?
|
|
|
|
|
Hi
I want to fill 10000 records into a DropDown List.Which approach will give better performance either Fill by "Dataset" or Add item by "DataReader".
Ranjeet Singh
|
|
|
|
|
Filling itself will be better using DataReader
But what about load time of the page (a lot of data transfer to the client)
and what about the usability of the page? should the user search for the required entry within 10000 items?
I think you should make a change to the design. for example you can categorize items, or make them searchable.
|
|
|
|
|
any one help me to store and display hindi font in asp.net
|
|
|
|
|
ASP.NET is not for storing the data. If you want to store the hindi text in SQL, you can change the collation of your SQL database and store the hindi text as unicode characters..
then, read those strings from database and show it in your ASP.NET page as usual.. sometimes, you might need to specify the font name in CSS for your page..
I would like to suggest you to read some articles about localization in ASP.NET.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
hi,
this is hameed can any one pls tell me how we can convert aspx page into word and pdf.This aspx page consists of text boxes when we export this page to word or pdf the data in the table cell is rearranged.
so pls help me in sorting out this problem.
Hello sir
|
|
|
|
|
hi
i want to use text file as my data storage.i be able to insert & retrive from text file ..but how to update and delete prticulare line in text file?
Jintal Patel
|
|
|
|