hi, if u want the div to be hidden on page load, good thing will be to add style="display:none;" to the div. e.g., <div id='div1' style="display:none;">your content here.</> and later u can show it by using $('#div1').show(); Regards. Atif Ali Bhatti
Atif Ali Bhatti
Posts
-
Hiding div using jquery -
StreamReader and StreamWrite for Text filehi, I dont know which framework are u using? but if u r using framework 3.5, I recommed u to use the streamreader and streamwriter objects in using keyword e.g., using (StreamWriter sw = new StreamWriter(path)) { sw.WriteLine("This"); sw.WriteLine("is some text"); sw.WriteLine("to test"); sw.WriteLine("Reading"); } using (StreamReader sr = new StreamReader(path)) { while (sr.Peek() >= 0) { Console.WriteLine(sr.ReadLine()); } } Hope this helps. Regards, Atif Ali Bhatti.
-
change picture of image controll in gridvie in windows application???? [not solved yet...]hi, its simple... add following html in the gridview column.
<a href="javascript:void(0);" onclick="ChangePic(this);"><img src="xyz.jpg"/></a>
now add a add following javascript to your page: function ChangePic(sender) { sender.childNodes[0].src="abc.jpg"; } there are many more ways to do this. Hope It solves ur problem... Regards Atif Ali Bhatti. -
sipXtapdotnet api, help required.hi, yeah it is there but i have used my options there. atif ali bhatti.
-
sipXtapdotnet api, help required.hi, thnx for the reply but why i asked here is due the fact that sipXtapidotnet is an open souce api and has no documentation or i might not be able to find. so there would be some one could help me out. could u as well. thnx Atif Ali Bhatti.
-
sipXtapdotnet api, help required.hi, I have two issues, if u could help, would be a great assistance. - line.unregister() using sipxtapidotnet api does not work although line.register works. why? is there any bug in sipxtapi or I am missing something? - I want to register my line extensions to sip proxy server using sipXtapidotnet api, but how can i do that because there is only line.register() method which registers the line to the proxy server not the extentions. Regards Atif Ali Bhatti.
-
Does Unified communication client api works with any thing other than Office Commnication Server....like in the Unified Communication client api sdk it is written that: "Before you start, ensure the following requirements are met: Microsoft Office Communications Server 2007 is installed on the server side of all Unified Communications Client API clients." Means If I do not have or I dont want to have Microsoft Office Communication Server 2007, than i can not use Unified Communication client api. thnx
-
Does Unified communication client api works with any thing other than Office Commnication Server....hi, can any body tell me that Unified communication client api works with any server other than office communication server. Basically, i am working on an IM application using uccapi. I have heard that uccapi only work with Microsoft and with nothing else. I have tried to find out regarding this issue on the internet but so far no success. any help is highly appreciated. thnx.
-
read file from bottomhi, File.ReadAllBytes returns a byte array which can be then used the way you want to play with it. Regards. Atif Ali Bhatti.
-
What am i missing? Tables in my DataContext do not have Add or Remove optionsyeah definitely.
-
What am i missing? Tables in my DataContext do not have Add or Remove optionssorry forgot to mention that u can udpate and delete in the above mentioned manner too. Regards. Atif Ali Bhatti.
-
What am i missing? Tables in my DataContext do not have Add or Remove optionsAssalam-0-alaikum, Well for that I think u need to know how linqtosql works. then u could have a better idea how to add, update and delete tables in datacontext class. As Soon as u create a linqtosql class(.dbml) its creates a datacontext class and also creates classes for the individual tables that you add in the .dbml class later on. now to insert, you are required to get table from linqtosql class that u have created using following statement. yourDataContextClass datacontext = new yourDataContextClass() ; Table obj = datacontext.getTable(); Now create object on class that has been created for your table as follows. yourTableclass objYourClass = new yourTableclass(); Now add values for the fields. then, obj.InsertOnSubmit(objYourClass); datacontext.submitchanges(); Hope it gives u a bit of idea. Regards, Atif Ali Bhatti.
-
Select statement To display each row as colum for Gridview controlAssalam-0-alaikum, quite strange question. n e way, would u mind elaborating a bit more as the question is not clear. Regards Atif Ali Bhatti.
-
Handling Click and DoubleClick events differentlyAssalam-0-Alaikum, Well why the MouseDoubleClick event is taking 3 clicks to fire is due to the fact that you have to rollback the activity performed during the first click.. this is very important point to keep in mind. after rolling back the first click event activities, you are supposed to handle the double click event. Hope you get my point. Regards. Atif Ali Bhatti.
-
Handling Click and DoubleClick events differentlyOK. Following links can help u out. This one is Excellent and easy, http://msdn.microsoft.com/en-us/library/ms171543(VS.80).aspx[^] this one is also good. http://www.megasolutions.net/cSharp/Click-vs-DoubleClick-44615.aspx[^] Hope this solves your problem. Regards. Atif Ali Bhatti.
-
Handling Click and DoubleClick events differentlyAssalam-0-Alaikum Are you willing to do it on ClientSide or ServerSide? Regards. Atif Ali Bhatti.
-
hai problem in SMTP mail option!hi, due to shortage of time i cant write whole solution. giving u a good tutorial go through it. here u go: http://aspnet.4guysfromrolla.com/articles/072606-1.aspx[^] hope u find it helpful if still have problem do let me know at myresponsebox@live.com. Regards. Atif Ali Bhatti.
-
problem related to image upload and saveAssalam-0-alaikum, yes i would tell u. look its u who will decide where to store the file. like, fileupload1.postedfile.saveas("c:\myweb\images\image1.jpg") now save the same path in the database i.e., c:\myweb\images\image1.jpg now Question arises how to differentiate files. give them a unique name. now how to give a unique name? there are so many ways but how do i save is, i create a folder with the username, save the file and name it with the username concatenated with some other patameters to make it unique. hope u get it. Regards. Atif Ali Bhatti. Software Engineer. eSoul Consultancy Pvt. Ltd.
-
problem related to image upload and saveAssalam-0-Alaikum, hru? well in .Net 2.0 there is a file upload control. put it on ur .aspx page. In code behind file provide its id and press a dot(.). Now the real fun starts here. --- to get file name : dim fileName As String = FileUpload1.PostedFile.FileName then u can use this string fileName to save it in the database using inLine Query or Stored Procedure etc. If u have Problem Inserting data in the database, do let me know. i would write u know how to do this. -- to Save file in the specified Location: FileUpload1.PostedFile.SaveAs("Location as string") there are other properties and method for the fileupload control tht u could use but depend on the requirement. Hope it Helps. Regards. Atif Ali Bhatti. Software Engineer. Esoul Consultancy Pvt. Ltd.
-
Multiple Postback on my PageWaAlakum Assalam, every buddy here is most welcome n requested to feel free to ask n e question regarding web development is there is ne. I always would be there if i know. Regards. Atif Ali Bhatti. Software Engineer. eSoul Consultancy Pvt. Ltd.