|
Hello
Sonia Gupta wrote: Hi Piyush...
Tumhe Web services ki koi example pata hai.
For your information, this is not a place for asking question to a specific member. There are other members also watching the forum and may help you. These type of messages will be voted as spam by the members and your message will get deleted from CP. And one more thing what is the language you used to communicate ? If you want to contact the member personally you can use Email link provided. You should have a look at Pete O hanlon's Guidelines for posting questions[^] or click on the Ask Smart Question's link provided at the end of my post.
I can't read first part of your question since it is in some encrypted language but from the second part I presume that you want to learn about webservices. Have a look at oreilly online catalog for creating webservices[^].
|
|
|
|
|
Sorry..
I really did not mean to heart somebody.OK, I will keep ur suggestions in mind.Sorry again...
Sonia Gupta
Soniagupta1@yahoo.co.in
|
|
|
|
|
No My ddear i have not work on Web services
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
hey Navaneeth. kahen bhaiya kahe ka gusha ho rahe ho.....
it social networking sight where people meet and exchange her view .so koi bhi kahin likh sakata hai ok my dear
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
|
Thank You .....
Sonia Gupta
Soniagupta1@yahoo.co.in
|
|
|
|
|
Glad to help you always.
Regards,
Satips.
|
|
|
|
|
i wanna condition on save button to check the form first whether it has values or not , if no values then save button should be disable . plz help
|
|
|
|
|
silent ocean wrote: i wanna condition on save button to check the form first whether it has values or not
Check the form ? Do you want to do this when page loads ? Then use either ButtonName.Enabled = false or in javascript disable it.
|
|
|
|
|
Add something like this to your form tag:
onsubmit="return CheckMe(this)"
and have a corresponding javascipt function check the conditions you want, eg
function CheckMe(f) {
var lastName = f.txtLastName.value;
if (lastName.length == 0) {
alert("Please give your last name");
return false;
}
var address = f.txtAddress.value;
if (address.length == 0) {
alert("Please give your address");
return false;
}
return true;
{
|
|
|
|
|
I'm building a simple content management system in asp.net and I've put together a web user control (called "contentpanel") to display a panel of content in the page.
What i want to be able to do is enumerate the number of these controls that appear in a given page so that my content management application can interrogate a given page in a site and know how many blocks of content it needs to present for editing.
So, what i've been trying to do is put together a webservice that will sit in my web application, take a parameter of the web page name, work out what class the page relates to, and then return the number of "contentpanel" controls in that page.
I've got most of the way with this using the following code:
<br />
Public Function PanelsInPage(ByVal PageName As String) As integer<br />
<br />
'Set up a variable to hold the number of contentpanels<br />
Dim PanelCount As Integer = 0<br />
<br />
'Get a reference to the assembly for the site<br />
Dim ThisAssembly As Assembly = System.Reflection.Assembly.GetExecutingAssembly<br />
<br />
'Loop through all classes looking for the PageName supplied<br />
Dim tClass As Type<br />
For Each tClass In ThisAssembly.GetTypes<br />
<br />
If tClass.BaseType.Name = "Page" And PageName = tClass.Name & ".aspx" Then<br />
<br />
<br />
End If<br />
<br />
Next<br />
<br />
Return PanelCount <br />
<br />
End Function<br />
<br />
The bit I'm struggling with is the middle of the If statement. I can identify the class, but I can't seem to find a way to enumerate the number of contentpanels that it contains. I've been using system.reflection, but I can't seem to pin down the right approach.
Is this even possible? Can a web user control be reflected from its containing page in this way? if so, can someone come up with some sample code for me (vb.net would be appreciated!)?
|
|
|
|
|
Sorry for bumping, but has anyone got any ideas on this for me?
Thanks.
|
|
|
|
|
Hello
I am developing an application in asp.net using c#.
When user open PDF file,it should go to the specific Page Number.
e.g When if I am passing Page No. 7 ,then file should open at Page Number 7.
I tried this using iTextSharp.But this can be done at the time of creating file through 'PdfAction.gotoLocalPage'.
But I want this to be apply on existing pdf.I don't want create it again and again because I want this process several times.
Please let me know if someone knows.
Swapnil Bhavsar
|
|
|
|
|
Hi,
I needed an Outlook-like calendar in my asp.net page and I found some source such as DayPilot but I am having problem to get it connect to my mssql.
I know I should ask them instead of here but since I found it through codeproject, I was wondering whether there is someone encounter this before and know the solutions or any other way to embed Outlook calendar into the asp.net page.
Thanks in advance.
J Liang
|
|
|
|
|
Hello
I have Web Service with two functions:
[Webmethod]
public string WinAuthHelloWorld()
{
return "WA : Hello world"
}
[Webmethod]
public string BasicAuthHelloWorld()
{
return "BA : Hello world"
}
In IIS I turn on the checkboxes "Integrated windows authentication" and "Basic Authentication".
In my client application I wrote:
// Main is static
static void Main()
{
Console.Write(CallBasicAuthHelloWorld());
Console.WriteCallWinAuthHelloWorld());
}
private string CallBasicAuthHelloWorld()
{
NetworkCredential netCredential = new NetworkCredential("domainname\username", "password");
Uri uri = new Uri(service.Url);
ICredentials credentials = netCredential.GetCredential(uri, "Basic");
service.Credentials = credentials;
service.PreAuthenticate = true;
return service.BasicAuthHelloWorld();
}
private string CallWinAuthHelloWorld()
{
Uri uri = new Uri(service.Url);
service.Credentials = = System.Net.CredentialCache.DefaultCredentials;
return WinAuthHelloWorld();
}
In invocation BasicAuthHelloWorld function I got Error 401 : Unauthorized.
What I dismiss in my code?
Thanks
|
|
|
|
|
Hi
I have a problem with regular expressions in javascript. I wrote the following function to check matching.
function CheckMatch(Pattern,subject){
var Flag = true;
var myregexp = new RegExp(Pattern);
if ( subject.match(myregexp) ) {
Flag = true;
} else {
Flag = false;
}
return Flag;
}
and my function call is like this. I am trying to get a match of all characters in between a-z and A-Z. If any other characters entered, it should return false .
CheckMatch('/[a-zA-Z]*/',"*&^^&")
But it is not giving me the expected result. Is anything missing in javascript function or in Regular Expressions ?
|
|
|
|
|
i m creating a data adapter but is not working..is it the correct way??
OleDbDataAdapter da = new OleDbDataAdapter(strQuery, conn);
da.Fill(ds, "table name");
$h@ma!|@
|
|
|
|
|
yes it should be right.
what's the error?
|
|
|
|
|
Error 1 The best overloaded method match for 'System.Data.OleDb.OleDbDataAdapter.OleDbDataAdapter(string, string)' has some invalid arguments
Error 2 Argument '2': cannot convert from 'System.Data.SqlClient.SqlConnection' to 'string'
$h@ma!|@
|
|
|
|
|
if u provide ur data binding function.it wil be easy to rectify it.
|
|
|
|
|
OleDbDataAdapter da = new OleDbDataAdapter(strQuery, conn);
conn.Close();
DataSet ds = new DataSet();
da.Fill(ds, "table name");
searchgrid.DataSource = ds.DefaultViewManager;
$h@ma!|@
|
|
|
|
|
try this one
OleDbDataAdapter da = new OleDbDataAdapter(strQuery, conn);
conn.Close();
DataSet ds = new DataSet();
da.Fill(ds, "table name");
searchgrid.DataSource = ds;
searchgrid.databind();
|
|
|
|
|
Sonia Gupta wrote: conn.Close();
DataSet ds = new DataSet();
da.Fill(ds, "table name");
Is it possible to fill DS when connection is closed ?
|
|
|
|
|
u shd decleare the namespace System.Data.OleDb.OleDbConnection
|
|
|
|
|
$h@ma!|@ wrote: OleDbDataAdapter da = new OleDbDataAdapter(strQuery, conn);
What is the type of conn ? OledbDataAdapter is having 4 overloaded methods.
1. public OleDbDataAdapter ( System.String selectCommandText , System.Data.OleDb.OleDbConnection selectConnection )
In this you need to pass the select query and OledbConnection object as parameters
2. public OleDbDataAdapter ( System.String selectCommandText , System.String selectConnectionString )
In this pass Query and connection string
3. public OleDbDataAdapter ( System.Data.OleDb.OleDbCommand selectCommand )
This accepts OledbCommand object
and last one is with no parameters. Check your call matches with these methods ?
|
|
|
|