|
|
There are some devices available that allow you to communicate with a GSM network. They come with loads of api's which u can use to either send or receive SMS messages. However if you expect to send or receive a large amount of messages you may want to consider a more professional solution, or even make a third party handle your GSM communication.
|
|
|
|
|
So try google, there are loads of examples. Come back with any specific problems - including the code, error message an the line it occurs on, ns somene will probably be able to help.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Dear all
i've a RequiredFieldValidator on texbox , i also have a calender item that opens on a buton clik , i want the user to clik the button choose a date and the date get copied in the texbox , it works without the RequiredFieldValidator ,but it doznt work with it , the RequiredFieldValidator message appears instantly after me cliking on the button that shows the calender ,the calender doesnt even appear, here is the code
Protected Sub btnDOB_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDOB.Click
Try
If Not txtDOB.Text.Trim() = "" Then
cdrCalendar.SelectedDate = Convert.ToDateTime(txtDOB.Text)
End If
Catch ex As Exception
End Try
cdrCalendar.Visible = True
End Sub
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Protected Sub cdrCalendar_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cdrCalendar.SelectionChanged
txtdate.Text = cdrCalendar.SelectedDate.ToShortDateString
cdrCalendar.Visible = False
End Sub
help me please
modified on Thursday, November 5, 2009 3:01 AM
|
|
|
|
|
set ValidationGroup as false where you dont require it....
|
|
|
|
|
i love you you made my day
thnx
|
|
|
|
|
Hello Friends,
I'm working on property portal where i've to implement subdomain concept.
for example http://www.myDomain.com is url of my site.
And also, there are some locations as Noida,Gurgaon and etc. As any user click on Noida then my site should display the url as shown here http://noida.myDomain.com. For this i've implemented subdomain concept and also created some subdomain in Domain Panel. But now i've to ask Should i've to keep App_code and web.config file in subdomain(noida) folder as well because if i don't upload App_Code and web.config file in subdomain folder then it raise error(s). Is it any other way to implement this concept(Sub domain) please let me know.
|
|
|
|
|
Does your website using more than one server ?
Or just you need to change the url
|
|
|
|
|
I've a single server but is it any other way to display the url as i want ex. http://noida.myDomain.com except the subdomain.
|
|
|
|
|
Of course. Just place a handler which can process this. But mind that, you need to register DNS entry for each of your domain.
Means if your use just types
http://noida.myDomain.com
I will not go to
http://www.myDomain.com automatically, unless you register the both in same IP.
|
|
|
|
|
Hello
I use VWD express 2008 edition. I've a webform with a panel control inside which i have a div inside which there is an <ul> whose nodes are dynamically added. I have enabled the vertical scrollbars. the contents do not exceed the width of the panel and hence i do not want horizontal scroll bars.
When I run the application from the VWD, everthing seems to work fine. But when I copy the page to IIS of our server and try to call the page from a browser, the horizontal scroll bar appears which is undesirable. Is there a way to set it right.
PS:
I noted that while I run from VWD, the compatiblity view button appears and when i click it the horizontal scroll bars appear.
Compatiblity button is not at all visible if I call the page directly from the browser.And by default horizontal scrollbars are seen.
Any help will be appriciated. thanks in advance.
Smiles.
Kit.
|
|
|
|
|
This is pretty easy. put this on the div which you need to hide horizontal scrollbar.
overflow: auto; overflow-x: hidden;
The css will hide horizontal scrollbar.
|
|
|
|
|
In my application,I have a page a.aspx which has a hidden field with some value.Now from b.aspx which is in the same application folder I want to fetch the value of the hidden field of a.aspx.How can it be achieved?
|
|
|
|
|
one of the option is to use session.... If you are navigating from page a to b then you can also use request.querystring....
|
|
|
|
|
You can pass the value with the help of session,query string,cache or cookie.
Anything from this you can use as per the size of the data you want to pass.
|
|
|
|
|
Hi guys.. i have an issue... actually i have an asp.net web application... This is the 1st tym Im trying 2 deploy my application... Im using Vista home Premium... wel on deploying it i receive the following error:
Error summary:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x8007000d
Config Error The configuration section 'compilation' cannot be read because it is missing a section declaration
Config File \\?\C:\inetpub\wwwroot\Test2\WebSite15\web.config
Requested URL http://localhost:80/test2/WebSite15/
Physical Path C:\inetpub\wwwroot\Test2\WebSite15\
Logon Method Not yet determined
Logon User Not yet determined
Config Source:
33:
34: <compilation debug="true"/>
35: <!--
This is my probem wel my web.config file is as follows:
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=MOHDASHRAF-PC;Persist Security Info=True;User ID=sa;Password=123"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.webServer>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</handlers>
<compilation debug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
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.webServer>
</configuration>
please do guide me... Thanxx in advance...
|
|
|
|
|
|
When you debug your app did you receive any Errors or Warning ? if yes please show us the Messages
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hey by the way i relly missed out 2 mention... actually before i deployed my application my web.config file was:
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=MOHDASHRAF-PC;Persist Security Info=True;User ID=sa;Password=123"
providerName="System.Data.SqlClient" />
</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.
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</handlers> -->
<compilation debug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
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>
on googling out i found out that my web.config file needs handlers and modules so at the time of deploying i changed it to
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=MOHDASHRAF-PC;Persist Security Info=True;User ID=sa;Password=123"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.webServer>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</handlers>
<compilation debug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
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.webServer>
</configuration>
Now as u said wen i try 2 debug with the new web.config file it works fine... but on the error list i get 32messages... But my applications works absolutely fine... Deployment is the only problem as i mentioned at the beginning...
|
|
|
|
|
can we see those messages
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Message 1 Could not find schema information for the element 'validation'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 2 Could not find schema information for the attribute 'validateIntegratedModeConfiguration'.
Message 3 Could not find schema information for the element 'modules'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 4 Could not find schema information for the element 'add'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 5 Could not find schema information for the attribute 'name'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 6 Could not find schema information for the attribute 'preCondition'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 7 Could not find schema information for the attribute 'type'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 8 Could not find schema information for the element 'handlers'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 9 Could not find schema information for the element 'remove'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 10 Could not find schema information for the attribute 'name'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 11 Could not find schema information for the element 'add'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 12 Could not find schema information for the attribute 'name'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 13 Could not find schema information for the attribute 'verb'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 14 Could not find schema information for the attribute 'path'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 15 Could not find schema information for the attribute 'preCondition'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 16 Could not find schema information for the attribute 'type'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 17 Could not find schema information for the element 'add'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 18 Could not find schema information for the attribute 'name'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 19 Could not find schema information for the attribute 'verb'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 20 Could not find schema information for the attribute 'path'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 21 Could not find schema information for the attribute 'preCondition'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 22 Could not find schema information for the attribute 'type'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 23 Could not find schema information for the element 'add'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 24 Could not find schema information for the attribute 'name'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 25 Could not find schema information for the attribute 'preCondition'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 26 Could not find schema information for the attribute 'verb'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 27 Could not find schema information for the attribute 'path'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 28 Could not find schema information for the attribute 'type'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 29 Could not find schema information for the element 'compilation'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 30 Could not find schema information for the attribute 'debug'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 31 Could not find schema information for the element 'authentication'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
Message 32 Could not find schema information for the attribute 'mode'. C:\Users\Mohd Ashraf\Documents\Visual Studio 2005\WebSites\WebSite15\Web.Config
These are the Messages that i get when i debug the application...
Thanx in advance....
|
|
|
|
|
Good Day Thashif
First i took your Handler and i see there was a Difference between mine and yours and they appear in Different location.
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</handlers>
the Handlers on my side appears after this
<compilation debug="false">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
and your Compilation is has an Opening tag and no Closing Tag. To Resolve this make a backup of your Web.config and create a new one and let the comments guide you. You cannot add anything ,anywhere.
Tell me if you still have a Problem
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
My compilation doesnt reqire a close tag i dont have anything within it...so its as follows:
<compilation debug="true"/>
Thanx for guiding me what am i supposed to change... Sorry i dint actually understand...
|
|
|
|
|
after that Statement add the HTTPModules as i did and build it again. Remember if you build it and you get Errors on your Web.config. It will give you a problem when you try to deploy. So try it and tell me
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi.. I added the httpHandlers u posted and also added the assemblies presnt inside the compilation tag... i debugged my application it gave no errors.. application was as usual wit no problems... but wen i deploy it i still receive the same error msg
Error Summary:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x8007000d
Config Error The configuration section 'httpHandlers' cannot be read because it is missing a section declaration
Config File \\?\C:\inetpub\wwwroot\Test2\WebSite15\web.config
Requested URL http://localhost:80/test2/WebSite15/
Physical Path C:\inetpub\wwwroot\Test2\WebSite15\
Logon Method Not yet determined
Logon User Not yet determined
Config Source:
26: </modules>
27: <httpHandlers>
28: <remove verb="*" path="*.asmx"/>
The only change is in the Config source comparing 2 the later error message...
Thanx...
|
|
|
|
|