All Forumshttp://forums.asp.net/default.aspxAll ForumsSat, 25 May 2013 08:51:32 -0400urn:uuid:00000000-0000-0000-0000-000000000000urn:uuid:00000000-0000-0000-0000-000005405020http://forums.asp.net/p/1909509/5405020.aspx/1?Getting+started+with+new+databaseGetting started with new database <p>Suppose i have one table in my database. Its about markeing purpose and data enttry kind work.</p> <p>i am importing data from MBD's into tabale...</p> <p>Table contains approx 90 miliion records, contains duplicate record..&nbsp;</p> <p>table has date of file created.&nbsp;</p> <p>Just need to select data and show in grid view... with parameters.</p> <p>Parameters can ne anything.</p> 2013-05-25T12:26:11-04:002013-05-25T12:26:11.69-04:00urn:uuid:00000000-0000-0000-0000-000005404670http://forums.asp.net/p/1909405/5404670.aspx/1?How+to+allow+float+numbers+upto+two+decimal+places+in+textbox+How to allow float numbers upto two decimal places in textbox?? <p>Hi,&nbsp;</p> <p>&nbsp; &nbsp; I want to create one textbox which can take float numbers as input &nbsp;upto two decimal places,how it can be done by javascript as i am not able to do so</p> <p>Please help me.???</p> <p></p> <p></p> <p>Thanks in advance</p> 2013-05-24T17:28:57-04:002013-05-24T17:28:57.973-04:00urn:uuid:00000000-0000-0000-0000-000005405029http://forums.asp.net/p/1909512/5405029.aspx/1?File+Download+LinkFile Download Link <p>Hi...I am using ASP.Net MVC. I want to make a file download link. i.e. when someone clicks that link, a specific file downloading should be started.</p> 2013-05-25T12:42:16-04:002013-05-25T12:42:16.273-04:00urn:uuid:00000000-0000-0000-0000-000005404925http://forums.asp.net/p/1909480/5404925.aspx/1?How+to+get+to+label1+text+the+list+of+comma+separated+valuesHow to get to label1.text the list of comma separated values <p>I have a sqldatasource displaying a list like this</p> <p>Name | Amount<br> ====|=======<br> Mr A, 30<br> Mr B, 20<br> C, 40<br> D, 60<br> etc</p> <p>How to display it in label1.text</p> <p>A=30, B=20, C=40, D=60</p> <p>... etc ?</p> <p>Just pure text is okay, I will not use it as further parameter in another query.</p> <p>Thanks</p> 2013-05-25T08:20:05-04:002013-05-25T08:20:05.127-04:00urn:uuid:00000000-0000-0000-0000-000005405027http://forums.asp.net/p/1909511/5405027.aspx/1?Reducing+server+hits+from+GridView+Reducing server hits from GridView? <p>I just started using GridView and it's pretty darn slick. &nbsp;One thing I don't like, is that every operation requires a server hit. &nbsp;I'm not worried about the load on the server, but I don't like the responsiveness from the user's point of view.</p> <p>Is there a way to use GridView such that it does all its magic client-side, and then when the user hits the form submit it sends all its edited data at once?</p> <p>Thanks,</p> <p>Chris</p> <p></p> 2013-05-25T12:39:03-04:002013-05-25T12:39:03.26-04:00urn:uuid:00000000-0000-0000-0000-000005404955http://forums.asp.net/p/1909491/5404955.aspx/1?label+font+colour+as+per+datalabel font colour as per data <p>i have two labels in my asp.net&#43;vb web page. label1 and label2</p> <p>if label1.text value is less than label2.text then label1.text font colour should be red else black&nbsp;</p> 2013-05-25T09:56:57-04:002013-05-25T09:56:57.427-04:00urn:uuid:00000000-0000-0000-0000-000005405012http://forums.asp.net/p/1909506/5405012.aspx/1?Imagebuttom+ispostbackImagebuttom ispostback <p>hi<br> I am a beginner in ASP.net</p> <p>I want to use imagebuttom<br> &nbsp; my problem as I click the image I want to change the image without reloading the page. is that you can help me</p> <p>page asp.aspx</p> <p>&nbsp;</p> <p></p> <pre class="prettyprint">&lt;asp:ImageButton ID=&quot;img1&quot; runat=&quot;server&quot; ImageUrl=&quot;/imgs/faitmain_0.PNG&quot; width=&quot;111&quot; height=&quot;111&quot; OnClientClick=&quot;img1_Click;return false;&quot; /&gt; <strong>page aspx.vb</strong> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Protected Sub img1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles img1.Click If Not Page.IsPostBack Then If img1.ImageUrl = &quot;imgs/faitmain_0.PNG&quot; Then ' img1.OnClientClick = &quot;return false;&quot;' img1.ImageUrl = imgs/faitmain_1.PNG&quot; 'img1.PostBackUrl = &quot;imgs/faitmain_1.PNG&quot; Else img1.ImageUrl = &quot;/imgs/faitmain_0.PNG&quot; End If End Sub</pre> <p></p> <p></p> <p>I made SEVERAL solutions but still same problem: the page reloads</p> <p>&nbsp;</p> 2013-05-25T12:07:43-04:002013-05-25T12:07:43.793-04:00urn:uuid:00000000-0000-0000-0000-000005405017http://forums.asp.net/p/1909507/5405017.aspx/1?How+to+Use+list+of+gridview+in+single+page+asp+netHow to Use list of gridview in single page asp.net <p>I am doing student project, here I want to view all Student Rollno based on Attendance&nbsp;</p> <p>i want to view more than 10 Gridview on same page</p> <p></p> 2013-05-25T12:22:24-04:002013-05-25T12:22:24.373-04:00urn:uuid:00000000-0000-0000-0000-000005405005http://forums.asp.net/p/1909505/5405005.aspx/1?About+RowDataboundAbout RowDatabound <p>Hi all:</p> <p>I am wondering if rowdatabaund fires only first time&nbsp; record is linked to a gridview, for example. Or every time, including postbacks.</p> <p>Thans for any help</p> 2013-05-25T11:35:29-04:002013-05-25T11:35:29.17-04:00urn:uuid:00000000-0000-0000-0000-000005404873http://forums.asp.net/p/1909464/5404873.aspx/1?Required+Column+Value+as+Column+NameRequired Column Value as Column Name <p>Please Help !!!</p> <p>I Have 3 Tables in Sql Server 2005 let say Table1, Table2, Table3 with data view as follows:-</p> <p>1) Table1</p> <p>--------------------------<br> MenuID &nbsp; &nbsp; MenuName<br> --------------------------<br> 200 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Masters<br> 201 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Transactions<br> --------------------------</p> <p>2) Table2</p> <p>--------------------------<br> UserID &nbsp; &nbsp; Uname<br> --------------------------<br> U0010 &nbsp; &nbsp; &nbsp;John<br> U0011 &nbsp; &nbsp; &nbsp;Ram<br> --------------------------</p> <p><br> 3) Table3</p> <p>------------------------------------------------------<br> RightsID &nbsp; MenuID &nbsp; &nbsp;UserID &nbsp; &nbsp;Allow<br> ------------------------------------------------------<br> 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 200 &nbsp; &nbsp; &nbsp; &nbsp; U0010 &nbsp; &nbsp; True<br> 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 201 &nbsp; &nbsp; &nbsp; &nbsp; U0010 &nbsp; &nbsp; False<br> 3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 200 &nbsp; &nbsp; &nbsp; &nbsp; U0011 &nbsp; &nbsp; True<br> 4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 201 &nbsp; &nbsp; &nbsp; &nbsp; U0011 &nbsp; &nbsp; True<br> ------------------------------------------------------</p> <p>Now my requirement is to show output as follows:-</p> <p>------------------------------------------------------<br> MenuID &nbsp; &nbsp;MenuName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;John &nbsp; &nbsp; &nbsp;Ram <br> ------------------------------------------------------<br> 200 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Masrters &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; True &nbsp; &nbsp; True<br> 201 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Transactions &nbsp; &nbsp; &nbsp; &nbsp;False &nbsp; &nbsp;True<br> ------------------------------------------------------</p> <p>Please Help !!!!!</p> <p>Thanks In advance...</p> 2013-05-25T06:25:56-04:002013-05-25T06:25:56.283-04:00urn:uuid:00000000-0000-0000-0000-000005405019http://forums.asp.net/p/1909508/5405019.aspx/1?Data+Pager+Update+Panel+Data Pager + Update Panel <p>I need help, I have a DataPager inside the update panel and <span>and working well, but when I refresh page or going on back button form some other page datapager reset always to the first page.&nbsp;</span></p> <p><span>For example if I was on the tenth page and&nbsp;refresh page, data pager reset to first.</span></p> <p><span><b>Is there any way to keep the current page on data pager?</b></span></p> <p><span>&nbsp;&nbsp;</span>&nbsp; &nbsp;</p> <p>My code is:</p> <pre class="prettyprint">&lt;asp:SqlDataSource ID=&quot;SqlDataSource1&quot; EnableCaching=&quot;True&quot; CacheDuration=&quot;4000&quot; CacheExpirationPolicy=&quot;Sliding&quot; runat=&quot;server&quot; ConnectionString=&quot;&lt;%$ ConnectionStrings:blabla %&gt;&quot; SelectCommand=&quot;&quot;&gt;&lt;/asp:SqlDataSource&gt; &lt;asp:UpdatePanel ID=&quot;UpdatePanelnajgornji&quot; runat=&quot;server&quot; &gt; &lt;ContentTemplate&gt; &lt;asp:ListView ID=&quot;ListView1&quot; runat=&quot;server&quot; ondatabound=&quot;ListView1_DataBound&quot; DataSourceID=&quot;SqlDataSource1&quot;&gt; &lt;ItemTemplate&gt; &lt;asp:HyperLink ID=&quot;HyperLink2&quot; Visible='&lt;%# !(Eval(&quot;Slika&quot;) is DBNull) %&gt;' runat=&quot;server&quot; NavigateUrl='&lt;%# Eval(&quot;Link&quot;) %&gt;' title='&lt;%# Eval(&quot;Naslov&quot;) %&gt;'&gt; &lt;asp:Image ID=&quot;Image1&quot; runat=&quot;server&quot; AlternateText='&lt;%# Eval(&quot;Naslov&quot;) %&gt;' ImageUrl='&lt;%# Eval(&quot;Slika&quot;) %&gt;' /&gt;&lt;/asp:HyperLink&gt; &lt;/ItemTemplate&gt; &lt;/asp:ListView&gt; &lt;br /&gt; &lt;asp:DataPager ID=&quot;DataPager1&quot; runat=&quot;server&quot; PagedControlID=&quot;ListView1&quot;&gt; &lt;Fields&gt; &lt;asp:NextPreviousPagerField /&gt; &lt;/Fields&gt; &lt;/asp:DataPager&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt;</pre> <p><br> <br> </p> 2013-05-25T12:25:37-04:002013-05-25T12:25:37.277-04:00urn:uuid:00000000-0000-0000-0000-000005404892http://forums.asp.net/p/1909470/5404892.aspx/1?Gridview+creation+in+asp+netGridview creation in asp .net <p>How should i assigned dattable columns name to gridview of first columns of row depending on how much i want to assign it to gridview and display values of that column name in next columns of gridview<img src="http://i42.tinypic.com/fk712v.jpg" alt="Problem description" height="423" width="835"></p> <p>Please help me for that</p> <p>I have datacolumns name as per gridview rows in first column name and i have values like AL,S,H,M any one of them for one perticular values pleasehelp me for that....!</p> <p></p> 2013-05-25T07:02:42-04:002013-05-25T07:02:42.523-04:00urn:uuid:00000000-0000-0000-0000-000005404751http://forums.asp.net/p/1909424/5404751.aspx/1?Creating+gridview+from+json+data+stringCreating gridview from json data string <p>Okay I searched and searched but I keep hitting a dead end...</p> <p>I am getting a string of json data back from an api call to a third party website. Here is an example of what it looks like:</p> <p><span>{&quot;results&quot;:[{&quot;bioguide_id&quot;:&quot;L000563&quot;,&quot;chamber&quot;:&quot;house&quot;,&quot;first_name&quot;:&quot;Daniel&quot;,&quot;last_name&quot;:&quot;Lipinski&quot;},{&quot;bioguide_id&quot;:&quot;K000360&quot;,&quot;chamber&quot;:&quot;senate&quot;,&quot;first_name&quot;:&quot;Mark&quot;,&quot;last_name&quot;:&quot;Kirk&quot;},{&quot;bioguide_id&quot;:&quot;D000563&quot;,&quot;chamber&quot;:&quot;senate&quot;,&quot;first_name&quot;:&quot;Richard&quot;,&quot;last_name&quot;:&quot;Durbin&quot;}],&quot;count&quot;:3,&quot;page&quot;:{&quot;count&quot;:3,&quot;per_page&quot;:20,&quot;page&quot;:1}}</span></p> <p><span>I want to extract the chamber, first name and last name from this json data and display it in a gridview. I have been trying to figure the json.net library and have it successfully added to my site. But for the life of me I cannot figure out how to get the array of these names out of the json and into a something I can turn into a gridview. &nbsp;All examples of using json.net are in c# and I unfortunately am working in VB... Any help and examples would be greatly appreciated.</span></p> 2013-05-24T20:01:11-04:002013-05-24T20:01:11.483-04:00urn:uuid:00000000-0000-0000-0000-000005405003http://forums.asp.net/p/1909503/5405003.aspx/1?asp+net+roles+how+to+create+manual+on+my+server+2008asp.net roles how to create manual on my server 2008 <p>Hi,<br> <br> how to create roles in sql server 2008?<br> I tried manual to insert in the table aspnet_Roles and aspnet_UsersInRoles but does not works.</p> <p>aspnet_Roles:<br> ApplicationId&nbsp;&nbsp; &nbsp;RoleId&nbsp;&nbsp; &nbsp;RoleName&nbsp;&nbsp; &nbsp;LoweredRoleName&nbsp;&nbsp; &nbsp;Description<br> E5B03A74-3514-45F1-8644-F69FE756358D&nbsp;&nbsp; &nbsp;44FAEFAC-AB48-449F-8AA7-F2050863BF36&nbsp;&nbsp; &nbsp;admin&nbsp;&nbsp; &nbsp;admin&nbsp;&nbsp; &nbsp;NULL<br> <br> aspnet_UsersInRoles:<br> UserId&nbsp;&nbsp; &nbsp;RoleId<br> EE65F09E-E20F-4EBE-A3C9-0F4A62B41545&nbsp;&nbsp; &nbsp;44FAEFAC-AB48-449F-8AA7-F2050863BF36<br> <br> aspnet_Membership:<br> ApplicationId&nbsp;&nbsp; &nbsp;UserId&nbsp;&nbsp; &nbsp;Password&nbsp;&nbsp; &nbsp;PasswordFormat&nbsp;&nbsp; &nbsp;PasswordSalt&nbsp;&nbsp; &nbsp;MobilePIN&nbsp;&nbsp; &nbsp;Email&nbsp;&nbsp; &nbsp;LoweredEmail&nbsp;&nbsp; &nbsp;PasswordQuestion&nbsp;&nbsp; &nbsp;PasswordAnswer&nbsp;&nbsp; &nbsp;IsApproved&nbsp;&nbsp; &nbsp;IsLockedOut&nbsp;&nbsp; &nbsp;CreateDate&nbsp;&nbsp; &nbsp;LastLoginDate&nbsp;&nbsp; &nbsp;LastPasswordChangedDate&nbsp;&nbsp; &nbsp;LastLockoutDate&nbsp;&nbsp; &nbsp;FailedPasswordAttemptCount&nbsp;&nbsp; &nbsp;FailedPasswordAttemptWindowStart&nbsp;&nbsp; &nbsp;FailedPasswordAnswerAttemptCount&nbsp;&nbsp; &nbsp;FailedPasswordAnswerAttemptWindowStart&nbsp;&nbsp; &nbsp;Comment<br> E5B03A74-3514-45F1-8644-F69FE756358D&nbsp;&nbsp; &nbsp;EE65F09E-E20F-4EBE-A3C9-0F4A62B41545&nbsp;&nbsp; &nbsp;I4rEmGcHzrJv58KD42Qoh9j9TZ8=&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;8VnqjKXh4&#43;UUTAUtSFel1A==&nbsp;&nbsp; &nbsp;NULL&nbsp;&nbsp; &nbsp;admin@&nbsp;&nbsp;&nbsp; admin@&nbsp;&nbsp;&nbsp; NULL&nbsp;&nbsp; &nbsp;NULL&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;0&nbsp;&nbsp; &nbsp;2013-05-25 11:13:19.000&nbsp;&nbsp; &nbsp;2013-05-25 11:21:27.003&nbsp;&nbsp; &nbsp;2013-05-25 11:13:19.000&nbsp;&nbsp; &nbsp;1754-01-01 00:00:00.000&nbsp;&nbsp; &nbsp;0&nbsp;&nbsp; &nbsp;1754-01-01 00:00:00.000&nbsp;&nbsp; &nbsp;0&nbsp;&nbsp; &nbsp;1754-01-01 00:00:00.000&nbsp;&nbsp; &nbsp;NULL</p> <p>web.config:<br> &nbsp; &lt;system.web&gt;<br> &nbsp;&nbsp;&nbsp; &lt;authorization&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;allow roles=&quot;Admin&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;deny users=&quot;*&quot; /&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/authorization&gt;<br> &nbsp; &lt;/system.web&gt;<br> <br> Localhost works but I use asp.net Configuration<br> <br> Please help<br> <br> </p> 2013-05-25T11:23:06-04:002013-05-25T11:23:06.567-04:00urn:uuid:00000000-0000-0000-0000-000005404848http://forums.asp.net/p/1909457/5404848.aspx/1?Why+validation+work+unnecessary+which+stop+form+unnecessaryWhy validation work unnecessary which stop form unnecessary <p>Hi,</p> <p>&nbsp; &nbsp; I was using validation in gridview in which i have textbox and its required field validator in each row,If i left blank textbox and i submit page by button click then validation error meassage &nbsp;is fired then if i put value in textbox and click submit button validation disappears and it don't submit the form, and then i click 3rd time it submit form,Why is it so why we can not submit form on second time,How to tackle all this???Please help me</p> <p></p> <p>Thanks</p> <p></p> 2013-05-25T04:50:39-04:002013-05-25T04:50:39.977-04:00urn:uuid:00000000-0000-0000-0000-000005404390http://forums.asp.net/p/1909334/5404390.aspx/1?How+to+read+display+Tweets+from+my+Twitter+AccountHow to read / display Tweets from my Twitter Account <p>Hi,</p> <p>Please can anyone direct me to any article or coding example of reading / displaying tweets from twitter account onto my webpage</p> <p>Don't want to use Embedded Timelines Widget from Twitter&nbsp;</p> <p>Thanks in advance</p> 2013-05-24T12:36:11-04:002013-05-24T12:36:11.837-04:00urn:uuid:00000000-0000-0000-0000-000005403332http://forums.asp.net/p/1909063/5403332.aspx/1?Fire+Javascript+event+while+closing+chrome+browserFire Javascript event while closing chrome browser <p>Hi All,</p> <p></p> <p>I tried many ways to fire the event while closing the chrome browser since my application got some security issues due to the new option &quot;Continue where is left off&quot;</p> <p>&#36;(window).unload(function () {</p> <p>&nbsp;&nbsp;&nbsp; if (event.clientY &lt; 0) {</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alert(&quot;123&quot;);</p> <p>&nbsp;&nbsp;&nbsp; }</p> <p></p> <p>noting get worked except the below but my custom event not getting fired to clear the session cookie</p> <p>window.onbeforeunload = check;</p> <p>function check()</p> <p>{</p> <p>return &quot;Are you sure you want to exit this page?&quot;;</p> <p>//or put whatever function you need to call when a user closes the web //browser.</p> <p>}</p> <p></p> <p>Please any one tell me the idea to clear session cookie by a program.</p> <p></p> <p>Thanks</p> <p></p> 2013-05-23T12:07:16-04:002013-05-23T12:07:16.653-04:00urn:uuid:00000000-0000-0000-0000-000005405004http://forums.asp.net/p/1909504/5405004.aspx/1?I+need+to+fetch+the+modified+data+in+database+from+access+every+5+min+I need to fetch the modified data in database from access, every 5 min. <p>Hai</p> <p>I need to fetch the modified data in database from access, every 5 min. in windows app.</p> <p>i.e</p> <p>I hav one mdb which having data they modfiy every min.</p> <p>i wanna to fetch those datas in my database . &nbsp;which are all modified.</p> <p></p> 2013-05-25T11:31:58-04:002013-05-25T11:31:58.887-04:00urn:uuid:00000000-0000-0000-0000-000005404972http://forums.asp.net/p/1909497/5404972.aspx/1?Jquery+Json+Saveing+data+into+file+for+autocomplete+Jquery Json.. Saveing data into file for autocomplete <p>Hi i have some diffrent requirement..</p> <p>i want to save json data for autocomplete control of Jquery..</p> <p>want to save new enrties made my user into that file.. cant use database.. its a small project based on HTML,Css and Javascript..</p> <p>only requirement is of autocomplete...</p> 2013-05-25T10:36:15-04:002013-05-25T10:36:15.37-04:00urn:uuid:00000000-0000-0000-0000-000005404978http://forums.asp.net/p/1909499/5404978.aspx/1?how+to+write+Query+in+Sqlhow to write Query in Sql <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select srno,Buildingtype,NoOfBuilding from EleBuildingGroupMst<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; current 1 10 10<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i want below result<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1, 10 Bulid-&gt;10 Floor-&gt;10&nbsp; &nbsp;<br> &nbsp;&nbsp; &nbsp;<br> &nbsp;&nbsp;&nbsp; want display dropdownlist this type record</p> 2013-05-25T10:47:56-04:002013-05-25T10:47:56.97-04:00