135 Posted Topics

Member Avatar for FaresEid

If Im not using the SQL Membership I usually call a helper class that has a few methods just for this. start here passing credentials: protected static bool LoginUser(string user, string pass) { Logger l = new Logger(); return l.IsUser(user.Trim(), pass.Trim()); } The IsUser Class: /// <summary> /// Check to …

Member Avatar for BMXDad
0
134
Member Avatar for austin.datong

I'd go for ASP.Net. The languages that you can use are varied and the security available is some of the best.

Member Avatar for spiralclick
0
115
Member Avatar for old_apache

Generally, if its part of the page or menu structure then put it in the CSS, using the background-image property. If its part of the content, then in the markup. That way you can make sure the Alt tag is filled out properly and an individual that's using an AT …

Member Avatar for old_apache
0
317
Member Avatar for firdousahmad

A very simple answer: Classic ASP is a scripting language and ASP.Net is a Compliled language. It all looks the same to the browser.

Member Avatar for BMXDad
0
373
Member Avatar for M.Waqas Aslam

Some code snips to get you going, and it includes sorting to. I'm creating a DataSet for the initial load but then creating a DataTable and storing it in ViewState for the paging. You could also, for efficiency, call only the page that is going to be shown, but thats …

Member Avatar for BMXDad
0
168
Member Avatar for virendra_sharma

Like @geniusvishal said, No ... its a new Session. However, **if they open a seperate tab**, it will still be reading the same Session. Something to be aware of.

Member Avatar for BMXDad
0
114
Member Avatar for cgull
Member Avatar for davy_yg

Your hover style is going into effect (Lines 69 - 73). I'd replace the images with text, for real text and style accordingly.

Member Avatar for davy_yg
0
219
Member Avatar for agr8lemon
Member Avatar for raajsj

Its sloppy, but works. But first you need to add an ID to the table so you can find it. After that you can loop through it and get your values. table.ID = "dataTable"; protected void btn_Click(object sender, EventArgs e) { try { HtmlTable t = new HtmlTable(); t = …

Member Avatar for raajsj
0
5K
Member Avatar for eos.paks

Only time you should redirect to a login page is if the user clicks a link to go there, or they've bookmarked a page that requires them to be authenticated. If they're just viewing public pages, then there is no reason to have a user login.

Member Avatar for BMXDad
0
136
Member Avatar for |-|x

You don't need to disable viewstate, you can bump up the allowable size in the web.config: <System.Web> <httpRuntime maxRequestLength="10000" /> </System.Web> Another thing to watch out for is HttpValueCollection Key size. This is how many data elements are allowed on a page. Out of the box its around 1000, which …

Member Avatar for BMXDad
0
1K
Member Avatar for muhammad.ibraheem_1
Member Avatar for hackoman96

Well ... you could view source and change hidden and/or disabled fields to visible and/or enabled. This in turn would allow you to post or get form information that would otherwise be unavailable. From there ... .anything is possible.

Member Avatar for BMXDad
-1
290
Member Avatar for DaniwebOS
Member Avatar for weeraa
Member Avatar for sushants
Re: HTML

MS Visual Studio can be downloaded for free, and can support almost any language with the proper plugin. [Visual Studio 2012 Express](http://www.microsoft.com/visualstudio/eng/downloads#d-2012-express)

Member Avatar for diafol
-6
415
Member Avatar for bansarisavaliya

This will export a GridView to Excel protected void btnExport_Click(object sender, EventArgs e) { Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=FileName.xls"); Response.Charset = string.Empty; // If you want the option to open the Excel file without saving then // comment out the line below // Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ContentType = "application/vnd.xls"; System.IO.StringWriter stringWrite = new System.IO.StringWriter(); …

Member Avatar for ddanbe
0
129
Member Avatar for scaiferw

This is always a problem with tabular data on a phone or tablet ... just not enough room for a big table. What you could do is have a seperate table that is only shown, after the other is hidden, using media queries. Another option is to check for a …

Member Avatar for Violet_82
0
265
Member Avatar for rms095
Member Avatar for techman41973
Member Avatar for GlenRogers

If I'm reading you correctly, you want to be able to turn a group of links on and off from an admin page. To do so you would need a way to store the information, wheather they are visible or not and then be able to read that information on …

Member Avatar for BMXDad
0
297
Member Avatar for raajsj

Concatentate them into a string. string s = c_id.toString() + " - " + C_name.toString() + " - " + C_contact.toString(); chkList1.Text = s;

Member Avatar for raajsj
0
2K
Member Avatar for while(!success)
Member Avatar for samoslook
Re: blog

[Blog Engine](http://www.dotnetblogengine.net/) Open source blog that has everything you need.

Member Avatar for geniusvishal
0
126
Member Avatar for Shierlyn

Boo on all caps ... makes it so hard to read. And beware the w3Schools, They have a **lot of incorrect information** ... alot!! Read this article ... might help you out: [Why you should not learn html](http://www.thedigitalshift.com/2013/03/roy-tennant-digital-libraries/why-you-should-not-learn-html/)

Member Avatar for RH-Calvin
0
921
Member Avatar for lysv

Are you writing the code in a script tag or in a code behind page? Looks like a dynamically added image button is not posting back?

Member Avatar for BMXDad
0
424
Member Avatar for goco17

Are you trying to add a query string to the current url, like this: http://current.website.com/index.aspx?zoom=true Try protected void Button1_Click(object sender, EventArgs e) { Response.Redirect("default.aspx?zoom=true"); }

Member Avatar for goco17
0
97
Member Avatar for JamesAtCBC

Twitter Bootstrap is one of the best Mobile ready frameworks around, in my opinion. http://twitter.github.io/bootstrap/ Customise it to your color scheme and select only jQuery plugins your actully going to use ... and your ready to go.

Member Avatar for BMXDad
0
373
Member Avatar for LegateLucius

Its a jQuery Div. Empty it like this ... $('#Somediv').empty(); You can add code to create a cookie so if they come back to the site it won't show again.

Member Avatar for iamthwee
0
121
Member Avatar for samoslook

How are you clearing the Sessions and Forms Authentication? This should help: FormsAuthentication.SignOut(); Session.Clear(); If you are simply doing a back button on the page it will still show the page as if you were logged in, but on refresh it should be ok.

Member Avatar for samoslook
0
133
Member Avatar for xxmp

Change it .... only submit the form after the input values have been validated. action="pagenamecheck.jsp" should be action="ValidateForm()" where ValidatedForm() is a function that validates the page first, then returns "pagenamecheck.jsp" if validation is good.

Member Avatar for BMXDad
0
101
Member Avatar for mohanasamala

Like JorgeM said, reasearch on your own first. Sites like this are to help other programmers. They're not a collection of free programmers to get work from.

Member Avatar for geniusvishal
0
126
Member Avatar for shivlahane

This might help you out ... [Web Site DB Connection](http://www.daniweb.com/software-development/csharp/threads/163420/creating-sql-database-connection-in-asp.net-web-application-through-c)

Member Avatar for Meir David
0
157
Member Avatar for RT00220489

Like this: HTML <form id="form1" runat="server"> <asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="True"> <asp:ListItem>One</asp:ListItem> <asp:ListItem>Two</asp:ListItem> <asp:ListItem>Three</asp:ListItem> </asp:DropDownList> <br /> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <br /> <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> </form> Code Behind: protected void Button1_Click(object sender, EventArgs e) { string sText = TextBox1.Text; TextBox1.Text = string.Empty; DropDownList1.Items.Add(new ListItem(sText,sText)); }

Member Avatar for BMXDad
0
172
Member Avatar for anupamduttabd

There are no guildlines per say. Its a framework, not a template. With that said, you would grab one of the example pages, and copy the source into your site master or master template. [Basic HTML template](http://twitter.github.io/bootstrap/getting-started.html#html-template) When creating the menu, I'd create a custom user control (ascx) file with …

Member Avatar for BMXDad
0
144
Member Avatar for coder91

This should get you started. http://www.codeproject.com/Articles/570682/PDF-File-Writer-Csharp-Class-Library ... but why a pdf file? Why not a page with a print friendly css attached to it?

Member Avatar for BMXDad
0
93
Member Avatar for dmp24

You have no handler for the RowDeleting event. This is c#, but you can convert it ... <asp:GridView ID="GridView1" runat="server" onrowdeleting="GridView1_RowDeleting"> protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { }

Member Avatar for |-|x
0
298
Member Avatar for Varunkrishna

Line 15 - 24 private void autofillyr(int incrementBy, int maxyr, int no_year) { for (int i = startYear; i < maxyr; i++) { if(i != no_year) year.Items.Add(new ListItem(i.ToString(), i.ToString())); i = i + incrementBy; } }

Member Avatar for |-|x
0
2K
Member Avatar for yaragalla_mural

If you add a padding of 1px to outside div it then has an edge to push from. <div style="width:700px;height:100px;background-color:silver; padding: 1px;"> <div id="week" style="margin:20px;border:2px solid red"> <div id="sfsf" style="margin:10px;"> Day Of The Week </div> </div> </div>

Member Avatar for BMXDad
0
150
Member Avatar for nikk8a

No, but you could use a server side link. But unless you own the server thats not going to help you much.

Member Avatar for Eng. Hadi
0
896
Member Avatar for Md.Akaash
Member Avatar for hirenpatel53

Skin and theme files are kind of antiquated nowadays. Your better off with standard CSS. But if you need some, try this site: http://www.dotnettreats.com/samplethemes/

Member Avatar for BMXDad
-1
511
Member Avatar for RekaRajagopal

A better option is to use the EntLib (Enterprise Library) collection. [EntLib Download Site](http://entlib.codeplex.com/)

Member Avatar for BMXDad
0
972
Member Avatar for webdevstudent

Is there a link to view the site, or is it local? If local could you post the page source from the browser?

Member Avatar for Troy III
0
151
Member Avatar for tom_benton

Any blogging software will do ... Wordpress, BlogEnbgine are all good, and have a lot of predefined templates. ... and if your doing this for a US or Canadian polition, I'd stay away from anything overseas. Looks bad sending jobs that can be done locally to some other country. JMO …

Member Avatar for tdjprj
0
196
Member Avatar for Ritesh_4

No ... but you could use css hacks. If your looking for diffent style sheets for each browser, then a conditional on the link is better ... IMO ` <!--[if lt IE 7]> <link rel="stylesheet" href="Content/IE7.min.css" /> <![endif]-->` But before doing that, you might want to see if you can …

Member Avatar for almostbob
0
187
Member Avatar for skliz

Try converting to SqlDateTime, and remember ... SQL Server does not recognize dates prior to 1/1/1753

Member Avatar for annaharris
0
214
Member Avatar for Dani

Isn't a non-editable div read only? Maybe put the spellchek attribute on the hidden input field?

Member Avatar for Troy III
0
196
Member Avatar for unikorndesigns

The End.