|
Respected,
I have a string like JC00123 and I am split this string from from 2th position
but it not give proper o/p. It split like this 123 only except the zeros Please help me.
Thanks
|
|
|
|
|
Please post the code you have written for splitting the string.
|
|
|
|
|
The code is :
grno = "JC00234"
Dim splitgrno As Int32 = CType(grno.Substring(2), Int32)
|
|
|
|
|
0) You're using Visual Basic.
1) You're not "splitting" the string, you're extracting part of it.
2) You're converting "000234" to an integer. The integer will be equal to 234. If you want to maintain the leading zeros, you have to leave it as (or convert it back to) a string.
3) I've noticed this leading-zeros on an integer question pop up several times this week. Will you guys please tell your instructors to give you the low-down on this particular topic BEFORE giving you your homework assignment.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Dear ALl,
What is the most appropriate way to impersonnate a user when other application are expected to e our web service.
In other word i need to provie a username and password for users who use my web service.
regards,
dghdfghdfghdfghdgh
|
|
|
|
|
There are various ways to do it.If your users are in the domain then you can deploy your web service with windows authentication.Another way when some one access to your web service method ask credential as a parameter then authenticate the request and return the result as appropriate.Also
Have a look
Cheers!!
Brij
|
|
|
|
|
Dears,
What i want is to ask for username and password when any application try to add my web service as a web reference.
regards,
dghdfghdfghdfghdgh
|
|
|
|
|
I want to compress webresource.axd file in 2008 server iis 7.
Right now I am able to compress webresource.axd file using the MbCompression.dll in 2000 server iis 6 it is working but iis 7 it is not working.
|
|
|
|
|
i hav three dropdown list country,state and city with out update panel my password will erased and if i use update panel my state ddl is not filter by country i already googled but i my organization all other sites are blocked only asp.net and cp is runnin.........
plz help..........
|
|
|
|
|
bhavnvyas wrote: i hav three dropdown list country,state and city with out update panel my password will erased and if i use update panel my state ddl is not filter by country
I didn't get your question. can you please rephrase the question ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
thnx for rep........
in my application i have user detail fields like user name password city state and country in this i hav to maintain password text even after page load. my page loades when i select Country India from India state dropdown list will bind and same for city so now INDIA>MAHARASTRA>PUNE but due to this my password field will be erased.
|
|
|
|
|
Try this:
Take 2 update panels.
Put all user details related controls in one update panel and password related controls in second one.
In this way, when you select an item from drop down list only the first update panel will refresh.
|
|
|
|
|
|
Set that function public
public void funName()
{
}
Mohammad Khansari
|
|
|
|
|
First check the scope of the methods you want to access by creating the object.
And if every thing seems to be fine then post some relevant code of the class and how you are trying to access the methods.
|
|
|
|
|
You Dont Have Rights To delete the message..!
Its very rude
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi,
How can i apply the different colors on the text of single textbox while the user is typing.
Thanks,
Sonia
modified on Saturday, December 19, 2009 2:38 AM
|
|
|
|
|
|
You should be able to assign a CSS style to textbox to control the colour of the text.
You could have a new style activated using an event handler.
|
|
|
|
|
I want to have one word in green second in red and third in black in the textbox.
How can i do this.
Sonia
|
|
|
|
|
Not sure you can do this on a live textbox.
|
|
|
|
|
Hey.
I have one table in MySql Database.
I have two field.
documentBinary LongBlob
documentContentType varchar
My code to download file.
byte[] data = (byte[])Dt.Rows[0]["documentBinary"];
System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
response.ClearHeaders();
response.ClearContent();
response.Clear();
response.ContentType = Dt.Rows[0]["documentContentType"].ToString();
response.AppendHeader("Content-Disposition",
"attachment; filename=" + Dt.Rows[0]["titel"].ToString() + ".pdf; size=" + data.Length.ToString());
response.BinaryWrite(data);
response.Flush();
response.End();
When I download file,File is downloaded successfully but not open in pdf format.
Please look at my code and tell me where I am going wrong.
Thanks
Imrankhan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Whether PDF is installed in your system.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
Yes. It is installed. When I open file it shows me that file is corrupted.
Thanks
Imrankhan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Check by check points and find can u you able to retreive the data from MYSQL.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|